CloudPlugs REST Client for Objective-C is a library to perform HTTP requests to CloudPlugs servers. The official repository is: https://github.com/cloudplugs/rest-objc
Cloudplugs is a cloud based IoT platform to enable the fast prototyping, connection, deployment and management of smart "Things" (sensors, smartphones, home appliances, etc.). Different objects can interact with each other by publishing and/or reading any type of data on shared channels through simple communication protocols. You can learn more at http://www.cloudplugs.com/how-it-works/ and you can sign-up on http://www.cloudplugs.com/register to start connecting your Things.
To use the library within your project follow this steps:
After executing the compile script a framework will be be created in the 'project_dir/build/'
directory.
Include Cloudplugs class:
Create a new session and initialize the data required:
Now you are ready to configure the library and invoke functions to perform REST requests to the server!
There are a few configuration parameters available for customization (if needed) before invoking any request. This parameters are:
After completing the configuration, you can execute HTTP requests to the server by invoking any of the request functions. All the requests are asynchronous and are executed per the Cloudplugs Rest API documentation. For example: