17

Alamofire [SUBSCRIBER]

 4 years ago
source link: https://www.raywenderlich.com/9261385-alamofire
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
This course is available as part of the raywenderlich.com Professional subscription. To learn more clickhere

Alamofire

Pro

May 5 2020 · Video Course (45 mins) · Intermediate

Learn the ins and outs of Alamofire from making requests to uploading files and how to pin certificates. This course uses Alamofire 5.

Start Watching for Free

Version

  • Swift 5.1, iOS 13.3, Xcode 11.3

Networking Tools & Libraries iOS & Swift Tutorials

a9d39134-8dc1-412f-8b8d-40adfc6974d0.pngc840014a-98c5-40a2-bcf3-7f4cc8907401.png

Learn how to add Alamofire to your iOS project using Swift Package Manager, then use Alamofire to make a request and decode JSON.

Use Alamofire to send POST requests with data in the request body.

Learn how to handle errors and failed requests, then use Alamofire's validation to set expectations for successful requests.

Send requests to protected endpoints with both HTTP Basic authentication and bearer authentication with a token.

Use Alamofire to upload files to an endpoint from your iOS device using multipart form data.

Use Alamofire to download files and images from the internet and either save them locally or use them for outgoing requests.

Write Swiftier code for working with Alamofire and endpoints. Stop using Strings when working with Alamofire and make it type-safe.

Learn the basics of certificate pinning, what it is and why to use it. Use OpenSSL to get the TLS certificates used by your app.

Learn how to leverage Alamofire to implement certificate pinning to prevent man-in-the-middle-attacks.

Use Alamofire to retry requests when needed, such as hitting an API limit or using an access token that's expired.

Who is this for?

iOS developers who can write simple iOS applications but want to make apps that need more complex API calls. The course expects you to be familar with Xcode, Swift, and building iOS applications. Familiarity with URLSession would be helpful but is not required.

Covered concepts

  • Installing Alamofire with Swift Package Manager
  • Sending requests for POST and GET
  • Encoding and decoding JSON in requests and responses
  • Error handling
  • Authenticated requests and certificate pinning
  • Caching
  • Retrying requests

Contributors

Tim Condon

Server-side Swift team lead @ raywenderlich.com Vapor expert and mobile developer who has dabbled in everything from reverse...

Instructor

Adriana Kutenko

Graphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...

Illustrator


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK