0.4.2 • Published 8 years ago

orgsync-api v0.4.2

Weekly downloads
77
License
MIT
Repository
github
Last release
8 years ago

OrgSync API Javascript Client

WARNING: OrgSync API V3 is currently unstable

To install, simply use Bower and add 'orgsync-api' to your bower.json. The same API is also duplicated in Node.js via the npm package with the same name. On the browser you'll need jQuery for generating XHR and JSONP requests. superagent is required for generating requests in Node.js.

// Create an API instance.
var api = new OrgSyncApi();

// Login (optionally pass {key: yourKey} to the OrgSyncApi constructor).
api.login({
  community_id: 123,
  username: 'example',
  password: 'example'
}, function (er) {

  // Use the `get` method to request data.
  api.get('/communities/2/orgs', function (er, data) {
    if (er) return alert('Failed with error: ' + er);
    alert('Everything went better than expected: ' + JSON.stringify(data));
  });

  // Or with parameters...
  api.get('/communities/2/orgs', {page: 2}, function (er, data) { ... });
});
0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.1

8 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago