Skip to content

Instantly share code, notes, and snippets.

@mattlanham
mattlanham / parse.js
Created August 29, 2011 17:42 — forked from kwhinnery/parse.js
A Parse client for Titanium Mobile - sneak peek
//Public client interface
function Client(applicationId, masterKey) {
this.applicationId = applicationId;
this.masterKey = masterKey;
}
exports.Client = Client;
//Parse API endpoint
var ENDPOINT = 'https://api.parse.com/1/classes/';
/*
Copyright 2010 Kevin Whinnery
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
// This JS file will hold all functions relating to people
Ti.include('includes/phpjs.js');
function Person() {
// Class variables
this.table = 'PEOPLE';
this.db = 'gifterapp';
this.className = 'Person';
this.columns = ['id', 'name', 'budget', 'created', 'updated'];
this.row = [];
// This JS file will hold all functions relating to people
Ti.include('includes/phpjs.js');
function Person() {
// Class variables
this.id = '';
this.name = '';
this.budget = '';
this.created = '';
this.updated = '';