Time for action – storing custom objects using Parse
We are going to show
how you can store a custom object in the cloud via REST API
using Parse. We will once again use the forex app for this example. It is a repeat of the last example in that we will be storing the forex commentary again. The only difference is the REST web service used to make the calls. We will store the currency pair, entry price, stop loss, and take profit values.
If you have not already done so, sign up for an account with Parse.
Create a new application. Each application has its own application and API key application ID and API key that are used to authenticate our REST requests. Navigate to the new app then select Overview from the menu bar. The Application ID and REST API key values will be listed on the left. Stay on this screen, we will be using these key values in a couple of steps' time.
Create a new CommonJS-based file in your project root to store our
PARSE REST API
functionality. In this case call itparseCommentary...