/GITHUB_node_generate_refresh_token_for_iab

Generate refresh token for Android Publisher

Primary LanguageJavaScript

Generate refresh token for Android Publisher

https://developers.google.com/android-publisher/authorization

According to official proceduce, Refresh Token is required in which is used to generate access token to verify the receipt of IAB...


Prerequisite

  • install node.js > 8.x
  • create your project on Google API console
    • create your OAuth 2.0 client ID under APIs & Services > Credentials > Create creditials > OAuth client ID > Web application
      • pass your client id and secret as arguments

How to use

git clone ${PROJECT}
cd ${PROJECT}
npm install
node get_refresh_token --client-id ${CLIENT_ID} --client-secret ${CLIENT_SECRET}

Caution

once everything is fine, the program will try to open a browse page which is required to login your google account, make sure that account have right to access your financial report of Google Play (since it is necessary permission to verify the recept of iab)