change fields url param to fields[]

This commit is contained in:
Seth Erickson
2021-03-30 15:19:25 -04:00
parent ef8f9308a7
commit ecf743424d

View File

@@ -29,7 +29,7 @@ func (t *Table) GetRecords() *GetRecordsConfig {
// ReturnFields set returning field names // ReturnFields set returning field names
func (grc *GetRecordsConfig) ReturnFields(fieldNames ...string) *GetRecordsConfig { func (grc *GetRecordsConfig) ReturnFields(fieldNames ...string) *GetRecordsConfig {
for _, fieldName := range fieldNames { for _, fieldName := range fieldNames {
grc.params.Add("fields", fieldName) grc.params.Add("fields[]", fieldName)
} }
return grc return grc
} }