A Parse.com and Parse-Server plugin for Corona SDK development.

Release 0.2.7

Welcome

Important

Read through the Parse REST API guide at Parse.com to understand how the Parse REST API works.

Quick Start

When you build using the Corona Simulator, the server automatically takes care of integrating the plugin into your project.

All you need to do is add an entry into a plugins table of your build.settings. The following is an example of a minimal build.settings file:

settings =
{
    plugins =
    {
        -- key is the name passed to Lua's 'require()'
        ["plugin.parse"] =
        {
            -- required
            publisherId = "com.develephant",
        },
    },      
}

Create a main.lua and fill it like so:

local parse = require('plugin.parse')
--== Using self-hosted Parse-Server (optional)
parse.config:cloudAddress("https://your.parse.server:PORT/API_PREFIX")
--== Application Keys
parse.config:applicationId("PARSE_APP_ID")
parse.config:restApiKey("PARSE_REST_KEY")

--create an Object
parse.request( parse.Object.create, "Blocks" )
:data( { color = "Red", round = false } )
:response(function(ok, res)
  if ok then
    parse.trace( res ) --prints pretty table
  end
end)

If you have :debugEnabled, you can leave out the callback while your testing.

...
parse.config:debugEnabled( true )
...
parse.request( parse.Object.query, "Blocks" )
:where({ color = "red" })
:response()

The response data will print out into the terminal.

Using the Plugin

Click Here to Read the Developer Guide


API Directory

Parse API

Objects

Users

Sessions

Roles

Files

Analytics

Push

Installations

Config

Cloud

Schemas

Apps

Hooks

Triggers

Extended API

Batches

Config/Debug

Macros

Tools