!!! Google play リンクの作成 [Google Apps Script|https://script.google.com]を使用して、 [Google Play のアプリ情報|https://play.google.com/store/apps]を JSON形式(別ドメインなのでJSONP)で情報を返すWebアプリを作成しました。 あとは、Layoutテンプレートで呼び出し側のスクリプトを作成し、 取得したJSONデータを加工して表示しています。 {{ilayout googleplay,id:com.google.android.apps.maps}} {{ilayout googleplay,id:com.google.android.gm}} {{ilayout googleplay,id:com.google.android.apps.plus}} 取得するJSONデータは以下のようなデータ形式になります。 { "url":"https://play.google.com/store/apps/details?id=com.google.android.apps.maps" "image":"https://lh4.ggpht.com/CBVyqn7L_QLMdOK7Bc8Gqym3NvF7zSU1qqoYI6yFRu8KNIxt-s-YIDIJyaFbWNU8FhQ=w300" ,"title":"マップ" ,"author":"Google Inc." ,"author_link":"/store/apps/developer?id=Google+Inc." ,"subtitle":"- 2013年7月30日" ,"category":"旅行&地域" ,"category_link":"/store/apps/category/TRAVEL_AND_LOCAL" ,"score":"4.3" ,"rating":"86.68564796447754%" ,"reviews":"2,636,173" } 公開時期未定です。。。 ---- *scriptタグで呼び出しているから非同期に出来ていないような・・・。非同期で表示できるようにするには script タグを timer で出力するのかなぁ? - KG (2013/08/06-02:22:54) *よし、非同期で実装できた。 - KG (2013/08/07-10:50:32) *後は、星画像データとレビュー画像データだな。 - KG (2013/08/07-10:51:30) *いつの間にか取得できなくなっていたので APIスクリプトを修正しました。ついでにアップデート属性追加です。 - KG (2015/12/25-20:46:21) {{comment}} |