Google Play Developer API – “The current user has insufficient permissions to perform the requested operation.”

There is a very important thing about receipt validation using Google Play Android Developer API. If you added your in-app product BEFORE granting permission or linking to your service account, you need to open “In-app products” and perform some update. You can for example edit description of your product and save. You should instantly get … Read more

Google image search says api no longer available

The answer I found was using Google’s Custom Search Engine (CSE) API. Note that this is limited to 100 free requests per day. Creating cx and modifying it to search for images Create custom search engine at https://cse.google.com/cse/create/new based on your search criteria. Choose sites to search (leave this blank if you want to search … Read more

How do I authorise an app (web or installed) without user intervention?

NB June 2022. It seems that Google have updated their verification requirements which adds additional steps (or negates the approach – depending on your point of view). See recent comments for more detail This can be done with the Oauth2 Playground at https://developers.google.com/oauthplayground Steps:- Create the Google Account (eg. my.drive.app@gmail.com) – Or skip this step … 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

Restrict Login Email with Google OAuth2.0 to Specific Domain Name

So I’ve got an answer for you. In the OAuth request you can add hd=example.com and it will restrict authentication to users from that domain (I don’t know if you can do multiple domains). You can find hd parameter documented here I’m using the Google API libraries from here: http://code.google.com/p/google-api-php-client/wiki/OAuth2 so I had to manually … Read more

Getting Google+ profile picture url with user_id

Google had changed their policy so the old way for getting the Google profile image will not work now, which was https://plus.google.com/s2/photos/profile/(user_id)?sz=150 New Way for doing this is Request URL https://www.googleapis.com/plus/v1/people/115950284…320?fields=image&key={YOUR_API_KEY} That will give the Google profile image url in json format as given below Response : { “image”: { “url”: “https://lh3.googleusercontent.com/-OkM…AANA/ltpH4BFZ2as/photo.jpg?sz=50” } } More … Read more

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