Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-18T21:24:23.000Z (over 11 years ago)
- Last Synced: 2024-06-23T20:46:10.990Z (5 months ago)
- Language: ActionScript
- Size: 156 KB
- Stars: 19
- Watchers: 6
- 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.htmlLanguage Version
=====================
ActionScript 3.0Runtime Version
=====================
Flash Player 11, AIR 3.0Usage
=====================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);
}
);
```