Loading Google API Javascript Client Library into Chrome Extension

So far the only solution I’ve found is to first inject the script into the background html page like I did: background.js (excerpt) var head = document.getElementsByTagName(‘head’)[0]; var script = document.createElement(‘script’); script.type=”text/javascript”; script.src = “https://apis.google.com/js/client.js?onload=callbackFunction”; head.appendChild(script); And then to bypass the security warning, edit the manifest file (source): manifest.json (excerpt) “content_security_policy”: “script-src ‘self’ https://apis.google.com; object-src … Read more

Access to Google API – GoogleAccountCredential.usingOAuth2 vs GoogleAuthUtil.getToken()

The Google APIs Client Library for Java is as the name suggests a library for accessing Google APIs and it is available for several platforms such as Java (in general) and Android while the Google Play Services and GoogleAuthUtil is only available on Android. By looking at the wiki page of the project it is … Read more

What is “We’ve detected that your app is using an old version of the Google Play developer API” warning in Google Developer Console?

The problem is that your project on Google Cloud Platform is using an old version of Developer Web API. It was automatically set up for you when you enabled developer services intentionally/unintentionally from Google Play Console’s API Access section in Developer Settings. Web API for subscriptions and purchases is actually part of Android Developer API: … Read more

OAuth2 and Google API: access token expiration time?

You shouldn’t design your application based on specific lifetimes of access tokens. Just assume they are (very) short lived. However, after a successful completion of the OAuth2 installed application flow, you will get back a refresh token. This refresh token never expires, and you can use it to exchange it for an access token as … Read more

Error: ‘The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.’

I understand you. Google confuses you with changing service names and workflows. Their documents aren’t updated enough to match their newest API workflows. I was using the Google Play Developer Service API v2 on the server-side with an alpha-version APK, and had the same error as you: “The project id used to call the Google … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)