You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw that in write-your-own-api-clients-swift.md you're establishing parameters by using percent escapes. Consider modifying it to include NSURLQueryItem. It can reduce the cargo cult programming that a lot of developers (myself included) encounter when trying to format a URL.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion @dpfannenstiel! I agree, NSURLQueryItem is probably the proper way to go about things. I'll look into adding it into the post - though it's really just a template for the client itself, the format for the request body will vary from provider to provider.
If you want to submit a PR with how you'd do it, I'd happily include it with attribution.
I saw that in write-your-own-api-clients-swift.md you're establishing parameters by using percent escapes. Consider modifying it to include NSURLQueryItem. It can reduce the cargo cult programming that a lot of developers (myself included) encounter when trying to format a URL.
The text was updated successfully, but these errors were encountered: