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 = {
var FacebookAPI = function(app_id, app_secret) { | |
return { | |
auth_url : "https://graph.facebook.com/oauth/access_token?"+ | |
"client_id=" + app_id + | |
"&client_secret=" + app_secret + | |
"&grant_type=client_credentials", | |
setAppToken: function(app_token){ | |
this.app_token = app_token; |
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 = {
function isMobile() { | |
var ua = navigator.userAgent.toLowerCase(); | |
var isAndroid = ua.indexOf("android") > -1; | |
var isiPhone = ua.indexOf("iphone") > -1; | |
var isiPod = ua.indexOf("ipod") > -1; | |
return (isAndroid || isiPhone || isiPod); | |
} | |
// In the callback | |
if(isMobile()) { |
var self = this; | |
var async = {}; | |
// global on the server, window in the browser | |
var root = this, | |
previous_async = root.async; | |
async.noConflict = function () { | |
root.async = previous_async; | |
return async; |
runtime: nodejs | |
vm: true | |
api_version: 1 | |
env_variables: | |
PORT: '8080' | |
# The parsre configuration for parse-anywhere | |
PARSE_APPLICATION_ID: PLACEHOLDER_FILL_ME | |
PARSE_JAVASCRIPT_KEY: PLACEHOLDER_FILL_ME | |
PARSE_MASTER_KEY: PLACEHOLDER_FILL_ME | |
# optional |
# Dockerfile extending the google appengine Node image with application files for a | |
# single application. | |
FROM gcr.io/google_appengine/nodejs | |
# Check to see if the the version included in the base runtime satisfies \ | |
# ~0.12.0, if not then do an npm install of the latest available \ | |
# version that satisfies it. \ | |
RUN npm install https://storage.googleapis.com/gae_node_packages/semver.tar.gz && \ | |
(node -e 'var semver = require("semver"); \ | |
if (!semver.satisfies(process.version, "~0.12.0")) \ | |
process.exit(1);' || \ |
node_modules | |
.dockerignore | |
Dockerfile | |
npm-debug.log | |
.git | |
.hg | |
.svn |
// PushStatus contains information about a push that was sent by an app. Its | |
// BSON format is stored directly in Mongo. Its JSON format is the REST format | |
// exposed to external developers, e.g. "_id" is mapped to "objectId", | |
// "_created_at" is mapped to "createdAt", etc. | |
type PushStatus struct { | |
// ObjectID is a string matching the standard Parse object id format. | |
ObjectID string `bson:"_id" json:"objectId"` | |
// CreatedAt contains the current modification time for this object. | |
CreatedAt TimeString `bson:"_created_at" json:"createdAt"` |