This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function getInstance(service) { | |
return new HatenaBookmark_(service); | |
} | |
var HatenaBookmark_ = (function() { | |
var root = 'http://api.b.hatena.ne.jp'; | |
var validates = { | |
url: function(value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function getInstance(consumer_key, consumer_secret, scope) { | |
return new HatenaWebService_(consumer_key, consumer_secret, scope); | |
} | |
var HatenaWebService_ = function (consumer_key, consumer_secret, scope) { | |
this.consumer_key = consumer_key; | |
this.consumer_secret = consumer_secret; | |
this.scope = scope; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function getInstance(consumer_key, consumer_secret, scope) { | |
return new HatenaBookmark_(consumer_key, consumer_secret, scope); | |
} | |
var HatenaBookmark_ = (function() { | |
var root = 'http://api.b.hatena.ne.jp'; | |
var validates = { | |
url: function(value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var factory = { | |
video: function() { | |
var setQuery = function (q) { | |
this.q = q; | |
} | |
var setToken = function (results) { | |
this.token = results.nextPageToken; | |
} | |
var setResults = function (results) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script> | |
<script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'></script> | |
<script src='//cdnjs.cloudflare.com/ajax/libs/marked/0.3.5/marked.js'></script> | |
<script> | |
marked.setOptions({ | |
renderer: new marked.Renderer(), | |
gfm: true, | |
tables: true, | |
breaks: false, | |
pedantic: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Feedly library for Google Apps Script | |
* @author Yoshiyuki Hirano <[email protected]> | |
* | |
*/ | |
/* constructs an Feedly service | |
* | |
* @constructor | |
* @param {string} url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Observe MailBox | |
* | |
* @param {string} condition メール検索条件(require) | |
* @param {function} onSuccess 条件合致時のコールバック(optional) | |
* @param {function} onFailure 例外発生時のコールバック(optional) | |
**/ | |
function observe(condition, onSuccess, onFailure) { | |
try { | |
var observer = new GmailObserver(condition), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* DejizoJp - library to get a description from デ辞蔵Webサービス for Apps Script | |
* author: yoshiyuki hirano | |
* | |
* @doc http://dejizo.jp/dev/rest.html | |
*/ | |
/** | |
* Get description by EJDict英和辞典 in Japanese from English | |
* |
NewerOlder