google-api-client

GoogleApiClient onConnected never called on Wearable device

好久不见. 提交于 2019-11-29 02:48:51
I have a wearable device that I'm trying to connect to the GoogleApiClient but the callbacks are never called (onConnected, onConnectionSuspended or onConnectionFailed). Everything else is working fine, the DataLayerListenerService is able to receive messages from the handheld and the onPeerConnected is being called when it connects. I've tried in on both the emulator and a Samsung Gear Live device. This is the code that I have in the Activity where I'm trying to connect to the GoogleApiClient. public class WearReaderActivity extends Activity implements GoogleApiClient.ConnectionCallbacks,

Is there an URL to open the Gmail compose window with a specific message ID in full-screen (pop-out)

自作多情 提交于 2019-11-29 02:19:34
问题 I use the new Gmail API to create a draft for my user. The API response provides the newly created message ID. I can then open the compose window with the URL https://mail.google.com/mail/#drafts?compose=[message-id] . However I would like to open a full-screen (popped-out) compose window. Is there an URL for that ? This URL must of course be parameterised with the message id. To be more precise, this is what I get, and this is what I want. 回答1: Try this: https://mail.google.com/mail?authuser

Using OAuth2 with service account on gdata in python

梦想与她 提交于 2019-11-28 21:40:41
问题 I want to use data.photos.service.PhotosService to push and pull photos from Picasa. I got a service key file XXXXXXXX-privatekey.p12 from Google console and am now trying to authenticate using said key with google. The documentation for OAUTH2 using appengine has led me to believe that using the following would be of use: f = file(settings.SITE_ROOT + '/aurora/' + settings.PRIVATE_KEY, 'rb') key = f.read() f.close() credentials = SignedJwtAssertionCredentials(settings.SERVICE_ACCOUNT_NAME,

How can developers edit a Google Doc programmatically? Is there a Docs API?

耗尽温柔 提交于 2019-11-28 21:34:19
问题 There doesn't seem to be (to my knowledge) an API to edit Google Docs (not spreadsheets, their HTML based documents). Has anyone done something like the? Maybe by downloading the HTML version, editing and uploading the changes? 回答1: Not really sure if this is what you're looking for exactly but have you taken a look here http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html It looks like it allows editing for content (v3.0 anyway). 回答2: UPDATE (May 2019) The Google

Automated use of google-api-dotnet-client with OAuth 2.0

家住魔仙堡 提交于 2019-11-28 14:16:25
I have a bunch of keys : client id, client secret, api key But all the documentation show authentication using human interaction. How do I use the dot net libraries for interacting with the Google API v3 and the AnalyticsService without user interaction? If I just use the API Key, I get "Google.Apis.Requests.RequestError Login Required" There are no samples that I can find anywhere that do this. EDIT : this is for one Google Analytics account, I have full access to it, username, password, client id, client secret, api/developer key, everything. I just want to have the utility download data

Send location updates to IntentService

 ̄綄美尐妖づ 提交于 2019-11-28 09:16:32
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 arg0) { PendingIntent locationPendingIntent = getLocationPendingIntent(true); LocationRequest

Failed to crunch file - Android studio (app:mergeDebugResources)

放肆的年华 提交于 2019-11-28 06:11:52
i am currentyl trying to implement Google ActivityRecognitionApi. However i get following errors: Error:Failed to crunch file C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-cast-framework\10.0.1\res\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png into C:\Users\marschall\Desktop\googlesamples-android-play-location-2ed2964\ActivityProject\app\build\intermediates\res\merged\debug\drawable-xxhdpi-v4\quantum_ic_forward_30_grey600_36.png Error:Execution failed for task ':app

Error consuming customerLicense App Marketplace with Service Account OAuth2

蓝咒 提交于 2019-11-28 06:02:15
问题 SOLUTION I figured out how to solve this problem. First of all here is my implementation with Service Account: // Build service account credential. GoogleCredential credential = new GoogleCredential.Builder().setTransport(httpTransport) .setJsonFactory(JSON_FACTORY) .setServiceAccountId(SERVICE_ACCOUNT_EMAIL) .setServiceAccountScopes(Collections.singleton("https://www.googleapis.com/auth/appsmarketplace.license")) .setServiceAccountPrivateKeyFromP12File(new File("/path/to/mykey/key.p12")) //

How to access google developer api in android app

依然范特西╮ 提交于 2019-11-28 05:19:18
问题 I am trying to develop an app which needs to access google developer API by using developer email.I have gone through official documentation.I don't understand much.I created client id by following this instructions.https://developers.google.com/android-publisher/authorization But for generating token they mentioned to call this API "https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/androidpublisher&response_type=code&access_type=offline&redirect_uri=...&client

How can I format a Google Sheets spreadsheet cell with the API?

不问归期 提交于 2019-11-28 01:28:44
问题 My application generates a table of data and creates a new spreadsheet document in a user's Google Drive. How can I add formatting (color, font-weight, width, etc.) to individual cells? I can't seem to find any documentation, much less how I could implement this through the google-api-ruby-client. Most of my findings date back to Google API mailing lists that state it isn't supported. However, I found that another application accomplishes my desired result. An example of "Smartsheet"