Swift salesforce api通过Alamofire集成?

Swift salesforce api通过Alamofire集成?,swift,salesforce,alamofire,swift4,Swift,Salesforce,Alamofire,Swift4,在通过Alamofire集成AuthAPI时,它给出了错误消息 参数:client_id=3MVG9e2mBbZnmM6lFmND2Ju7xFYp.iaixywq7tudzkws4jqs9pxj3kenjwaqhg28ywavide9wkchzfabcmo&client_secret=8967652660758155787&grant_type=password&password=qwerty%4012&username=xxxx%40yahoo.com 答复: error=“unsuppor

在通过Alamofire集成AuthAPI时,它给出了错误消息

参数:client_id=3MVG9e2mBbZnmM6lFmND2Ju7xFYp.iaixywq7tudzkws4jqs9pxj3kenjwaqhg28ywavide9wkchzfabcmo&client_secret=8967652660758155787&grant_type=password&password=qwerty%4012&username=xxxx%40yahoo.com

答复:

error=“unsupported\u grant\u type”; “错误描述”=“不支持授予类型”


我通过邮递员得到了回复,所以我缺少什么吗?

Salesforce在访问令牌请求中不支持JSON

内容类型设置为“application/x-www-form-urlencoded”
Optional(["Content-Type": "application/x-www-form-urlencoded"])