Easy to use ActiveRecord-like interface to make RESTful API calls
ASIHTTPRequest: allseeing-i.com/ASIHTTPRequest/
SBJson: stig.github.com/json-framework/
Tutorial: randbyte.com/article/restful-api-access-ios5/
Below is a summary of the most available methods.
(id)initWithBaseURL:(NSString*)aBaseUrl;
(void)findAll;
(void)findOne:(NSString*)anId;
(void)create:(NSDictionary*)params;
(void)update:(NSString*)anId params:(NSDictionary*)params;
(void)destroy:(NSString*)anId;
(void)actionOnResource:(NSString*)anId action:(NSString*)anAction postParams:(NSDictionary*)params;
(void)get:(NSString*)url;
(void)post:(NSString*)url postParams:(NSDictionary*)postParams;
(void)setCompletionBlock:(RemoteModelBasicBlock)aCompletionBlock;
(void)setFailedBlock:(RemoteModelBasicBlock)aFailedBlock;
(void)signWithApiToken:(NSString*)anApiToken;
Automatic Reference Counting (ARC) needs to be enabled.
Install ASIHTTPRequest allseeing-i.com/ASIHTTPRequest/Setup-instructions
Install SBJson stig.github.com/json-framework/
Drag & Drop the two files into your Xcode project.
Enjoy
Simple RESTful methods for the basic stuff (findOne, findAll, create, update, delete).
Built on top of ASIHTTPRequest & SBJson.
Response is automatically parsed with SBJson.
Callbacks using blocks - no need for tons of extra methods.
Method to sign all requests with an API token for authentication.