A Meteor wrapper for the oDesk API.
- Meteor v0.7.1+
meteor-odesk-api exposes the oDesk API to your Meteor application.
Further information on the oDesk API and its features is available at http://developers.odesk.com/API-Documentation.
Install using Meteorite - Installer & smart package manager for Meteor:
$ mrt add odesk-api
oDesk exposes the following methods both on the server and the client:
Perform an outbound HTTP request
Send an HTTP GET request
Send an HTTP POST request
Send an HTTP PUT request
Send an HTTP DELETE request
method
The HTTP method to use: "GET", "POST", "PUT", or "DELETE"url
The URL to retrieveparams
Parameters to pass to the API methodasyncCallback
Callback function for returned data or errors with two parameters. The first one being an error object which is null when no error occured, the second one an object with all information retrieved as long as no error occured.
Example:
try {
var odesk = new oDesk();
} catch ( error ) {
console.log( error.message );
}
odesk.get( 'https://www.odesk.com/api/profiles/v2/search/jobs.json', { q: 'meteor' }, function ( error, result ) {
if ( error )
console.log( error.message );
else
console.log( JSON.stringify( result ) ); // Do something with your data!
});
- Initial release
Copyright © 2014 Miroslav Hibler
meteor-odesk-api is licensed under the MIT license.