我正在尝试转换此curl命令(有效的 ):
class test
{
test: {test: string[]}
}
class so extends test
{
test = {test: []}
}
迅速。
我已经拥有了,但是我不知道如何传递我的appID和appPassword:
any[]
祝您有美好的一天,并在此先感谢您的答复。
答案 0 :(得分:0)
首先将数据解析为dictionary
,使用.updateValue()
函数然后将其解析回params,
var params : [String:String] = ["grant_type":"password",
"scope":"read",
"format":"json"]
params.updateValue("myPassword", forKey: "grant_type")
如果找不到该密钥,它将使用该值创建一个新密钥。