HOW TO USE
var Twitter = require("cloud/Twitter.parse.js");
// a user that has logged in with twitter
var user = Parse.User.current();
// Works with that object if colledted otherwise :)
var authData = {
consumer_key: "",
consumer_secret: "",
auth_token: "",
auth_token_secret:"",
};
var twitter = new Twitter(user);
// query parameters for the API
var params = {};
// body of the request
var body = {status: "I'm using Twitter API on Cloud Code!"}
twitter.post("/statuses/update.json", params, body)
.then(function(httpResponse){
// YAY!
}, function(error){
// OOPs
});