Reputation: 3833
For my project course I'm thinking to develop an application in iPhone. I have some objective-c knowledge but I don't know what kind of API's Apple provide.
I've implemented RESTful web service and I was wondering if there is a way to access features of this RESTful API via iPhone. I mean, what kind of API's area available to send HTTP GET, POST, ... and to process JSON/XML data returned by web service?
Any help is very much appreciated.
Upvotes: 0
Views: 345
Reputation:
All HTTP request methods (POST, GET, PUT, DELETE, etc…) are available with NSURLConnection
.
You can parse XML with NSXMLParser
and you can parse JSON with JSON-Framework (it's really good).
Upvotes: 2
Reputation: 48398
This tutorial may be helpful: Tutorial: Simple iPhone Rest Client
Upvotes: 1
Reputation: 9820
A great and widely accepted API for HTTP requests/etc is ASIHTTPRequest, here is the link. As far as XML parsing, you might want to take at the Apple provided NSXMLParser
(note there could be external APIs for this, but I am unaware of them). Here is its class Reference
Upvotes: 0