Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone REST client [closed]

Tags:

Does anybody know is there any good library for iPhone SDK to call REST web service. I want to have something simple like Heroku rest client


Thx everybody for help.

My server side is on Rails so looks like ObjectiveResource feet best of my needs.

like image 971
Aler Avatar asked Mar 10 '09 14:03

Aler


People also ask

What does rest Client mean?

REST Client is a method or a tool to invoke a REST service API that is exposed for communication by any system or service provider. For example: if an API is exposed to get real time traffic information about a route from Google, the software/tool that invokes the Google traffic API is called the REST client.

What is REST client library?

Go Up to DataSnap REST. The Embarcadero REST Library is a framework for accessing REST-based web services (REST stands for Representational State Transfer). The library is available for all platforms that are supported by Delphi. The framework focuses on JSON as the representation format.

What is REST Client API?

Overview. A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.


2 Answers

I suggest using the excellent ASIHTTPRequest source from All-Seeing Interactive: http://allseeing-i.com/ASIHTTPRequest. I'm doing this, and so are several released iPhone apps, so you can be sure the code is pretty solid.

This is a wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier. It is written in Objective-C and works in both Mac OS X and iPhone applications.

It is suitable for performing basic HTTP requests and interacting with REST-based services (GET / POST / PUT / DELETE). The ASIFormDataRequest subclass makes it easy to submit POST data and files using multipart/form-data.

like image 132
Jane Sales Avatar answered Sep 28 '22 11:09

Jane Sales


Hope Andrian Kosmaczewski's work can save your time from reinventing the wheels:

http://github.com/akosma/iphonerestwrapper/tree/master

And, it's Public Domain.

like image 39
digdog Avatar answered Sep 28 '22 13:09

digdog