Skip to content

Instantly share code, notes, and snippets.

View entaq's full-sized avatar

Arun Nagarajan entaq

  • Evolve
  • New York, NY
  • X @entaq
View GitHub Profile
@entaq
entaq / Google_OAuth2.js
Created December 20, 2012 21:43
Simple Google+ OAuth 2.0 calls in Apps Script
/**
reference -
https://developers.google.com/accounts/docs/OAuth2WebServer
https://code.google.com/apis/console/
https://developers.google.com/+/api/latest/
**/
////handle all requests here
function doGet(e) {
@entaq
entaq / Google_oAuth.js
Created November 15, 2012 17:18
Google oAuth 2.0 sample
/**
reference -
https://developers.google.com/accounts/docs/OAuth2WebServer
https://code.google.com/apis/console/
https://developers.google.com/+/api/latest/
**/
////handle all requests here
function doGet(e) {
@entaq
entaq / SalesForce_oAuth.js
Created November 13, 2012 17:17
Simple SalesForce oAuth Flow
/**
reference -
http://wiki.developerforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com
http://www.salesforce.com/us/developer/docs/api_rest/index.htm
**/
////handle all requests here
function doGet(e) {
var HTMLToOutput;
if(e.parameters.code){//if we get "code" as a parameter in, then this is a callback. we can make this more explicit