0
I need to develop an application in Swift I’m trying to consume a API to log in and when to log in Token, but this Token is already existing in the API, would you like to know how I send it? It’s kind of Request
Response
?
0
I need to develop an application in Swift I’m trying to consume a API to log in and when to log in Token, but this Token is already existing in the API, would you like to know how I send it? It’s kind of Request
Response
?
Browser other questions tagged api swift rest post get
You are not signed in. Login or sign up in order to post.
With the information you’re providing, there’s no one to help you. It is necessary that you either post the api link or the json result (date) that you receive as the server response. To convert the JSON response (data) to string use
print(String(data: data, encoding: .utf8) ?? "")
– Leo Dabus
I’ve already solved the problem, thank you.
– Junior Sanches