Skip to content

Commit

Permalink
Send query params for /lists/{list_id}/merge-fields endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonB committed Sep 13, 2017
1 parent 5f3e084 commit 862a818
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lists.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,15 @@ type MergeFieldsParams struct {
Required bool `json:"required"`
}

func (p MergeFieldsParams) Params() map[string]string {
m := p.ExtendedQueryParams.Params()
m["type"] = p.Type
if p.Required {
m["required"] = "true"
}
return m
}

type MergeFieldParams struct {
BasicQueryParams

Expand Down

0 comments on commit 862a818

Please sign in to comment.