Easy HTTP Requests in Swift in 4 Steps (Alamofire/SwiftyJSON)

Опубликовано: 06 Август 2019
на канале: Michael Miles
4,600
74

In this tutorial, I show you how to use 2 popular frameworks (Alamofire & SwiftyJSON) to easily retrieve data from a REST API and display it in your app, as well as posting data to a server.

Steps:
1) Get API keys from RapidAPI & Pastebin
2) Add SwiftyJSON & Alamofire to project via Cocoapods
3) HTTP GET requests
4) HTTP POST requests

Download the starter project here (download as a zip instead of cloning): https://github.com/mgm720/alamo/tree/...

Finished project: https://github.com/mgm720/alamo/tree/...

Twitter:   / milesoftweets  
Instagram:   / michaelmilestv  
Swift Life Podcast: https://anchor.fm/michael-miles04