gpt4 book ai didi

ios - MailChimp中的电子邮件,名称和自定义属性(快速3)

转载 作者:行者123 更新时间:2023-12-01 18:39:57 24 4
gpt4 key购买 nike

这是我目前对Mail Chimp的了解。这是创建新电子邮件地址的代码:

let mailToSubscribe: [String: AnyObject] = ["email": "testing1234@gmail.com" as AnyObject]

let params: [String: AnyObject] = ["id": "ee08eac412" as AnyObject, "email": mailToSubscribe as AnyObject, "double_optin": false as AnyObject]

ChimpKit.shared().callApiMethod("lists/subscribe", withParams: params, andCompletionHandler: {(response, data, error) -> Void in
if let httpResponse = response as? HTTPURLResponse {

NSLog("Reponse status code: %d", httpResponse.statusCode)
let datastring = NSString(data: data!, encoding: String.Encoding.utf8.rawValue)
print(datastring!) // printing result of response
}
})

我想用电子邮件创建名字和姓氏。我尝试添加像这样的字典值:[“name”:“Test”]为! NSObject。其他自定义属性(例如电话号码,地址等)又如何呢?

Problem 1

最佳答案

let mailToSubscribe: [String: AnyObject] = ["email": "testing1234@gmail.com", "merge_vars" : [ "FNAME" : "Test" , "LNAME" : "Test"]]

关于ios - MailChimp中的电子邮件,名称和自定义属性(快速3),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44834543/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com