-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用RESTful API的时候怎么拼接参数 #37
Comments
在-methodname里面可以使用self.paramSource获取参数然后拼接 |
在 |
无所谓的,paramSource的内容是只会放入body的,你现在的做法就是再挂到URL上而已 |
我debug看了一下,发送get请求的时候,是会把 |
这个request generator里面你是可以随便改的
发自我的 iPhone
在 2017年9月22日,下午1:15,WangMinjun <notifications@github.com<mailto:notifications@github.com>> 写道:
我debug看了一下,发送get请求的时候,是会把-reformParams方法返回的字典生成string作为query挂到URL后面的
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#37 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA9Y1W4G7be9ka0cIUlDcxFvlHUFIbQEks5sk0JlgaJpZM4PdSKl>.
|
好的,非常感谢,问题已经解决。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,我现在在项目中使用CTNetworking进行接口调用,目前采取的还是传统的方式,调用方提供参数字典,将参数字典按键值对的形式拼接在
methodName
的后面用问号分隔作为query
,组成完整的url。现在项目改造,统一采用RESTful API,想请教一下这种情况下该怎么去构造url。
The text was updated successfully, but these errors were encountered: