Skip to content

Instantly share code, notes, and snippets.

View skauk's full-sized avatar

Sergii Kauk skauk

View GitHub Profile
@skauk
skauk / gist:3306363
Created August 9, 2012 17:43
Update Twitter avatar with Apps Script
function oAuthConfig() {
var oAuthConfig = UrlFetchApp.addOAuthService("twitter");
oAuthConfig.setAccessTokenUrl("http://api.twitter.com/oauth/access_token");
oAuthConfig.setRequestTokenUrl("http://api.twitter.com/oauth/request_token");
oAuthConfig.setAuthorizationUrl("http://api.twitter.com/oauth/authorize");
// Register an app at https://dev.twitter.com/apps/new to get the following key and secret
oAuthConfig.setConsumerKey("PUT CONSUMER KEY HERE");
oAuthConfig.setConsumerSecret("PUT CONSUMER SECRET HERE");
}
@skauk
skauk / gist:1043690
Created June 23, 2011 21:34
Quick add event to Calendar using GData
// Set the feed URL
var EVENT_FEED_URL = 'http://www.google.com/calendar/feeds/default/private/full';
// Create a calendar object
var calendarService = new google.gdata.calendar.CalendarEventEntry();
// Create a new event handler
var quickEvent = new google.gdata.calendar.CalendarEventEntry();
// Create a new property handler and set it to true