Opensocial Host
第 1 版(2009-10-31 10:26:28 · akkun_choi)を表示しています。 最新版に戻る
すぐにmixiアプリが作成できる。すごい!!
http://opensocialhost.com/
opensocial-jqueryでdeffered化する
var appKey = '...';
function getValue(res){
var json = $.evalJSON(res);
if (json.data && json.data[0]){
return json.data[0].value;
}else{
return null;
}
}
function getOne(key){
var data = { application_key: appKey, key1: key };
return $.post('http://opensocialhost.com/data/select signed', data)
.next(getValue);
};
getOne('mykey').next(function(value){
alert(value) // myvalue!
});履歴
- 第 2 版akkun_choi2009-10-31 10:32:55
- 第 1 版akkun_choi2009-10-31 10:26:28