Find Jobs
Hire Freelancers

Post method of Alamofire request response is “token_not_provided” Swift

$10-30 USD

已取消
已发布超过 5 年前

$10-30 USD

货到付款
I get response with token and post this token with Alamofire on response of the request. I test that token is received and sent, also I tried to send random number as token and received same error on resposen - "token_not_provided". API does not require header or token into header. Request code is below: [login to view URL](userRegURL, method: .post, parameters: parameters, encoding: [login to view URL]).responseJSON { response in if let result = [login to view URL] { let jsonData = result as! NSDictionary tokenFromAPI = [login to view URL](forKey: "token") as! String let phoneParameters: Parameters = [ "token" : tokenFromAPI, "phone" : [login to view URL]! ] let sendCodeURL = "https://aabbcc/member/send-code" [login to view URL](sendCodeURL, method: .post, parameters: phoneParameters).responseJSON { response in if let result = [login to view URL] { let jsonData2 = result as! NSDictionary print(phoneParameters) print(jsonData2) } } } } API documentation is shown below Please make bids if you really know the problem with the code.
项目 ID: 18067591

关于此项目

远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

AZERBAIJAN的国旗
BAKU, Azerbaijan
5.0
4
付款方式已验证
会员自8月 13, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。