antonyraja antonyraja - 21 days ago 8
Swift Question

How to send data to the server(api) using swift

Hi all am developing a app using swift2 am having api key in Json format i can able to work with that and it provides some data such as success:1,error:0 if i get the value success 1 means i want to send the entered data or saved data to a server(api key).How to do that??

Thanks in advance

Answer

you can send data to server by using Alamofire API. It's documention and implemention all the stuff are mentioned in the following link.

https://github.com/Alamofire/Alamofire

Just install it using Pods and it's very easy to implement.