Error: invalid_request device_id and device_name are required for private IP

An alternative to editing a hosts file is to use the “Magic DNS” service http://xip.io/ or http://nip.io/ (see edit) xip.io is a magic domain name that provides wildcard DNS for any IP address.Say your LAN IP address is 10.0.0.1. Using xip.io, 10.0.0.1.xip.io resolves to 10.0.0.1 www.10.0.0.1.xip.io resolves to 10.0.0.1 mysite.10.0.0.1.xip.io resolves to 10.0.0.1 foo.bar.10.0.0.1.xip.io resolves … Read more

Google Calendar API v3 – authenticate with hardcoded credentials

I have found a solution that I think that is “the official” for what you want to do. First, you have to activate a Google API “Client ID for installed applications”. Go to the Google API console and create the project. Then, activate the calendar. Go to the “API access” option, and use the “Create … Read more

How to specify the scope of Google API to get the birthday

I just used and tested it using Try It. I tested it with all of the different scopes. https://www.googleapis.com/auth/plus.login Know your basic profile info and list of people in your circles. https://www.googleapis.com/auth/plus.me Know who you are on Google https://www.googleapis.com/auth/userinfo.email View your email address https://www.googleapis.com/auth/userinfo.profile View basic information about your account It doesn’t appear to matter … Read more

How Google API V 3.0 .Net library and Google OAuth2 Handling refresh token

Spent the last two days figuring this out myself. The library does not refresh the tokens automatically unless you specify “access_type=offline”. https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth I’m gonna paste the code I’m using and if there is anything you don’t understand, just ask. I have read so many posts and I litteraly got this working right now so there … Read more

How to correctly use Google Plus Sign In with multiple activities?

Reconnecting for each activity is absolutely fine. Broadly there are 3 ways I’ve seen of people implementing this: Implement mostly in a baseactivity, and have the others extend that. This is connect/disconnect in each activity, but with code in only one place. Implement connect/disconnect in a fragment, and include that in activities where auth is … Read more

How can I verify a Google authentication API access token?

For user check, just post get the access token as accessToken and post it and get the response https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=accessToken you can try in address bar in browsers too, use httppost and response in java also response will be like { “issued_to”: “xxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com”, “audience”: “xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com”, “user_id”: “xxxxxxxxxxxxxxxxxxxxxxx”, “scope”: “https://www.googleapis.com/auth/userinfo.profile https://gdata.youtube.com”, “expires_in”: 3340, “access_type”: “offline” } The … Read more