google-api-client

Using Postman to access OAuth 2.0 Google APIs

删除回忆录丶 提交于 2019-11-27 10:31:50
I am trying to access Proximity Google API using Postman chrome app . I have followed tutorials on postman and google dev website but I'm still getting 401 error message. What am I doing? Step 1 - Enable Proximity API: In order to use Proximity API, it has to be first enabled in Google Dev console. Using this tutorial I have enabled support for Proximity API for my project Step 2 - Get the credentials: According to this tutorial, I need to get client ID and secret. This is where I am confused. Credentials->Add credentials->OAuth2.0 client ID->select Chrome App radio button (since I am using

Failed sending mail through google api with javascript

◇◆丶佛笑我妖孽 提交于 2019-11-27 09:07:34
I'm trying to send an email through Google API with JavaScript. My issue is that when I try to send a simple mail with no attachments, I get the following error: 'raw' RFC822 payload message string or uploading message via /upload/* URL required` My code function sendMessage() { gapi.client.load('gmail', 'v1', function() { // Web-safe base64 var to = 'someone@someone.nl', subject = 'Hello World', content = 'send a Gmail.' var base64EncodedEmail = btoa( "Content-Type: text/plain; charset=\"UTF-8\"\n" + "Content-length: 5000\n" + "Content-Transfer-Encoding: message/rfc2822\n" + "to: someone

Is it possible to be able to correctly select any available Google account to use when using authorisation via the JS client library for Drive?

余生颓废 提交于 2019-11-27 07:07:24
I've got an existing Google Drive enabled application that's using the Google Java client library and server flow auth. If you're not logged into the application and navigate to the URL AND you have logged into more than one google account on that browser (only one personal Google account is possible, any additional ones have to be Google business accounts) the OAuth callback offers the options to select which Google Account to use. However, whilst testing a switch to using the JavaScript client library I'm not able to activate the multiple account selection screen using gapi.auth.authorize.

Get person details in new google sign in Play Services 8.3

▼魔方 西西 提交于 2019-11-27 04:54:57
I'm trying to get a user's profile using the new Google Sign In API introduced in play services 8.3. Other than Display Name, Email and Id, I also need user's gender. Plus.PeopleApi.getCurrentPerson() is deprecated as per play services 8.3 and also returns null for me even though mGoogleApiClient.hasConnectedApi(Plus.API) returns true. GoogleSignInAccount.getGrantedScopes returns https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.login profile email openid Google Developer Console doesn't show any hits on the Google+ API. I have placed the correct google-services.json

using enableAutoManage() in fragment

浪尽此生 提交于 2019-11-27 04:04:25
Is there another way to connect Google API client? I use auto complete places and I have to use this code some where in MYFRAGMENT mGoogleApiClient = new GoogleApiClient.Builder(MainActivity.this) .addApi(Places.GEO_DATA_API) .enableAutoManage(this, GOOGLE_API_CLIENT_ID, this) .addConnectionCallbacks(this).build(); My problem with enableAutoManage(this, GOOGLE_API_CLIENT_ID, this) .addConnectionCallbacks(this).build(); I can't deal with it because when I replace this with getActivity() I have many problem with casting thanks for help and sorry if this question is silly. Matthew Pape If you

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

吃可爱长大的小学妹 提交于 2019-11-27 03:30:20
I am getting the following error while accessing Google Play Developer API using a service account: The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console. The service account email and .p12 file were generated using the service account option in APIs&Auth -> Credentials . The Application in the Google Play Developer API was linked to the project using the project id as mentioned in google's docs. However, I am still getting this error when I try to use the Publishing API. I am looking for a solution to this error and a step by step

Send location updates to IntentService

≯℡__Kan透↙ 提交于 2019-11-27 02:47:36
问题 How can location updates be sent directly to Intent Service? The following approach does not work. OnConnected function is called but then the intent is never received in the service: ... private PendingIntent getLocationPendingIntent(boolean shouldCreate) { Intent broadcast = new Intent(m_context,LocationUpdateService.class); int flags = shouldCreate ? 0 : PendingIntent.FLAG_NO_CREATE; return PendingIntent.getService(m_context, 0, broadcast, flags); } @Override public void onConnected(Bundle

Google Sheets API: How to “publish to web” for embeddable sheet?

有些话、适合烂在心里 提交于 2019-11-26 23:04:36
问题 If I wanted to publish a Google Sheets spreadsheet so I could embed it on a page within an iframe, I would manually do the following: Navigate to Google Drive Open a spreadsheet File > Publish To Web > Embed > Copy the generated iframe link into an html file How would I programmatically achieve the above through the Google Sheets API using JavaScript on the front end? I'm generating spreadsheets on the fly in my application and want to immediately embed them on the page once created. Once the

Retrieving information about a contact with Google People API (Java)

女生的网名这么多〃 提交于 2019-11-26 21:01:02
问题 I am using an example of recently released Google's People API from here. I have extended a sample a bit to display additional information about the contact such as an email address and a phone number. The code that should do the job is presented below. public class PeopleQuickstart { ... public static void getPersonInfo(Person person){ // Get names List<Name> names = person.getNames(); if(names != null && names.size() > 0) { for(Name personName: names) { System.out.println("Name: " +

Google Places AutoComplete on iOS - Can't Load Search Results - Try Again

对着背影说爱祢 提交于 2019-11-26 20:58:43
问题 I am posting this here because I don't know where else to post this. Today, our application is no longer returning results for Google Places API. We are seeing the request go through on the Google Developers Console, but all phones are returning no results. This number is climbing for today and each one of these users are stuck in the login / onboarding flow of my app. Update (Closer Image for the last hour): Here is an example flow of what I am seeing on all iPhones we are testing and