##Preview
See here and here for the gists that inspired/provided most of the code for this widget.
Display your Android App Rating info, using the google play store.
##Usage
To use this widget, copy googleplay.html
, googleplay.coffee
, and googleplay.scss
into the /widgets/googleplay
directory. Put the google_play.rb
file in your /jobs
folder.
You'll also need the Google play store logo. Download it, and put it in your /assets/images
folder.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="google_play_store_rating" data-view="Googleplay" data-title="Instagram - Android"></div>
</li>
##Settings
The main piece of data you need to provide here is the ID for your app in the google play store. It's relatively easy to find, simply lookup your app via https://play.google.com/store, click the link, and copy the text in the URL after "?id=". So for this example, we search for Instagram, find the URL:
https://play.google.com/store/apps/details?id=com.instagram.android
And set appId to...
appId = ENV['GOOGLE_PLAY_ID'] || 'com.instagram.android'