Today we are going to discuss “how to retry a request using Alamofire, an HTTP networking library written in Swift. In this tutorial, we will use Petfinder API on “” so you need to create an account on this website to get your personal “API Key” and “Secret” if you want to use this website API for your API calls. When you logged in, you have access to your “API Key” and “Secret” on the developer section of your account.

“API Key” and “Secret”

You can also find a comprehensive description of how to use this API on “”.

Could you tell me “Where the problem exactly lies!”?

Okay, here we go. In…

Alireza Alemi

iOS developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store