Giter Club home page Giter Club logo

node-appcelerator's Introduction

#Appcelerator ACS API Node.js Module A Node.js module that is a simple port of the Appcelerator ACS Javascript SDK to Node

##Setup Install the module

$ npm install appcelerator

Include it in package.json

"dependencies": {
	  "appcelerator": "*"
},

##Usage Here are a couple of example routes for reading and setting a users status

// get a user's statuses
app.get('/status', function(req, res){

	// login details
    var app_key  = '1234';
    var email    = '[email protected]';
    var password = '12345678';

    // require the module
    var appcelerator = require('appcelerator')(app_key, email, password);

    // data to pass to the API
    var data = {'user_id': '4f9eb57a0020440def0056d3'};

    // let's do this
    var output = appcelerator.sendRequest('statuses/query.json', 'GET', data, false, function(res){
      
      console.log(res.body);

    });

  });

  // create a new status
  app.get('/create_status', function(req, res){

    // login details
    var app_key  = '1234';
    var email    = '[email protected]';
    var password = '12345678';

    // require the module
    var appcelerator = require('appcelerator')(app_key, email, password);

    // data to pass to the API
    var data = {'message': 'node.js test message'};

    // let's do this
    var output = appcelerator.sendRequest('statuses/create.json', 'POST', data, false, function(res){
      
      console.log(res.body);

    });

  });

See the Appcelerator documentation for API details.

Module created by Ben Edmunds for DblTap Labs.

node-appcelerator's People

Contributors

danielmahon avatar benedmunds avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.