Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Not Writing First Name #21

Open
Matt2218 opened this issue Nov 8, 2016 · 0 comments
Open

Not Writing First Name #21

Matt2218 opened this issue Nov 8, 2016 · 0 comments

Comments

@Matt2218
Copy link

Matt2218 commented Nov 8, 2016

Hi,

Currently, I am using the following code:

ChimpKit.sharedKit().apiKey = "******************"
let merge_vars = [
"FNAME" : "Test",
"LNAME" : "Name"
]
let params:[NSObject : AnyObject] = ["id": "
", "email": ["email": "[email protected]"], "merge_vars": merge_vars, "double_optin": false]
ChimpKit.sharedKit().callApiMethod("lists/subscribe", withParams: params, andCompletionHandler: {(response, data, error) -> Void in
if let httpResponse = response as? NSHTTPURLResponse {
ALPLogInfo("MailChimp reponse status code: (httpResponse.statusCode)")
}
})

It works as desired, except that the first name is being left blank. The last name and email are writing ok, any thoughts on why the first name is being left blank?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant