We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func (mg *MailgunImpl) CreateMemberList(s *bool, addr string, newMembers []interface{}) error { r := simplehttp.NewHTTPRequest(generateMemberApiUrl(listsEndpoint, addr) + ".json") r.SetBasicAuth(basicAuthUser, mg.ApiKey()) p := simplehttp.NewFormDataPayload() if s != nil { p.AddValue("subscribed", yesNo(*s)) } bs, err := json.Marshal(newMembers) if err != nil { return err } fmt.Println(string(bs)) p.AddValue("members", string(bs)) _, err = makePostRequest(r, p) return err }
in the api document, no subscribed form value, you should change to same the api docuemnt. change subscribed to upsert。
p.AddValue("subscribed", yesNo(*s)) => p.AddValue("upsert", yesNo(s))
The text was updated successfully, but these errors were encountered:
It looks like this has changed in the API and the library should be updated accordingly.
Sorry, something went wrong.
ea85006
mbanzon
No branches or pull requests
in the api document, no subscribed form value, you should change to same the api docuemnt. change subscribed to upsert。
p.AddValue("subscribed", yesNo(*s))
=>
p.AddValue("upsert", yesNo(s))
The text was updated successfully, but these errors were encountered: