https://github.com/camdagr8/AS3-Parse-Class
  
  
    This is a static ActionScript 3.0 Class for interacting with the Parse REST API 
    https://github.com/camdagr8/AS3-Parse-Class
  
        Last synced: 6 months ago 
        JSON representation
    
This is a static ActionScript 3.0 Class for interacting with the Parse REST API
- Host: GitHub
- URL: https://github.com/camdagr8/AS3-Parse-Class
- Owner: camdagr8
- Created: 2013-05-14T07:31:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-18T21:24:23.000Z (over 12 years ago)
- Last Synced: 2025-04-12T10:40:05.737Z (7 months ago)
- Language: ActionScript
- Size: 156 KB
- Stars: 19
- Watchers: 5
- Forks: 3
- Open Issues: 1
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
- awesome-actionscript-sorted - AS3-Parse-Class - This is a static ActionScript 3.0 Class for interacting with the Parse REST API (API / Other API)
README
          AS3 Parse Class
=====================
This is a static ActionScript 3.0 Class for interacting with the Parse REST API. It's primary usage is via an AIR application. 
Dependencies
=====================
This class requires the top level JSON Class http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/JSON.html 
Language Version
=====================
ActionScript 3.0
Runtime Version 
=====================
Flash Player 11, AIR 3.0
Usage
=====================
Using this class is fairly straight forward but I've included a few usage examples to help you on your way. Crack open the source and look at each static method to get a better understanding of the parameters required for usage. 
```actionscript
/**
 * Parse.Post(className:String, parameters:Object, success:Function, error:Function);
 */
Parse.Post('Scores', {gamerId: 'camdagr8', score: 1337},
	function (resp) {
		trace(JSON.stringify(resp));
	},
	function (err) {
		trace(err); 
	}
);
/**
 * Parse.Get(className:String, parameters:Object, where:Object, success:Function, error:Function);
 */
Parse.Get('Scores', {count: 1}, {gamerId: 'camdagr8'},
	function (resp) {
		trace(JSON.stringify(resp));
	},
	function (err) {
		trace(err);
	}
);
/**
 * Parse.User.Get(objectId:String, success:Function, error:Function);
 */
Parse.User.Get('cAKgPVSYpD',
	function (resp) {
		trace(JSON.stringify(resp));
	},
	function (err) {
		trace(err);
	}
);
/**
 * Parse.SignIn(userName:String, password:String, success:Function, error:Function);
 */
Parse.SignIn('camdagr8', 'Pwnzj004LYF',
	function (resp) {
		trace(JSON.stringify(resp));
	},
	function (err) {
		trace(err);
	}
);
```