将CURL令牌请求转换为Swift

时间:2020-08-07 19:54:02

标签: swift curl urlsession

我正在尝试将以下CURL转换为Swift,但似乎无法完全获得它。使用this堆栈溢出帖子是一个有用的指导,但是我不知道-d是request.http正文还是elswhere的一部分?

curl -d "client=SomeAppName&accountType=HOSTED_OR_GOOGLE&service=software&Email=test@example.com&Password=..." https://samplewebsite.com/accounts/Login 

谢谢!

0 个答案:

没有答案