Skip to content

Instantly share code, notes, and snippets.

@supersupermomonga
supersupermomonga / HatenaBlog.gs
Created October 12, 2015 06:20
My7DzK_6fJTPmyz1FbJKEpMLo7O4tWOsV
'use strict';
function getInstance(service, hatenaId, blogId) {
return new HatenaBlog_(service, hatenaId, blogId);
}
var HatenaBlog_ = (function() {
var validates = {
entryId: function(value) {
if (value == null) throw new Error('Missing required parameter');
'use strict';
function getInstance(consumer_key, consumer_secret) {
return new TwitterWebService_(consumer_key, consumer_secret);
}
var TwitterWebService_ = function (consumer_key, consumer_secret) {
this.consumer_key = consumer_key;
this.consumer_secret = consumer_secret;
}