google-api-client

Restore deleted (?) Google OAuth client app for production system

我是研究僧i 提交于 2019-12-08 15:29:40
问题 we are getting a 401 Error from Google API: 401. That’s an error. Error: deleted_client The OAuth client was deleted. It seems that the Google-OAuth-API Client was deleted. Maybe on firebase? Whould be really strange when we delete a firebase project that it is also deleted on Google API... Is there any way to restore this?! Thanks a lot for your help! Best 回答1: For everyone who has this problem too. Found the solution: Project owners can restore a deleted project within the 30-day recovery

Does YouTube Data API V3 support custom developer categories/tags (like in V2)?

故事扮演 提交于 2019-12-08 13:35:12
问题 Follow up to: youtube api v3 search by developer tag which indicates that you can a use valid pre-existing categoryIds but it does not answer anything about how to use custom Developer Categories/Tags. In YouTube API V2, custom Developer Categories/Tags are described here: https://developers.google.com/youtube/2.0/developers_guide_protocol_uploading_videos#Assigning_Developer_Tags 回答1: Youtube's migration document lists the following alternative: Set or retrieve developer tags – The v2 API

Specifying a Date Range in Google Custom Search api

冷暖自知 提交于 2019-12-08 10:10:39
问题 Its trivial to search a set of keywords in a certain website in a specific date range -> in the google search box you enter: desired-kewords site:desired-website then from the Tools menu you pick the date range. e.g. here "arab spring" search term in www.cnn.com between 1th Jan 2011 and 31th Dec 2013: As you can see in the second picture there are about 773 results! the search URI looks like this : https://www.google.co.nz/search?tbs=cdr%3A1%2Ccd_min%3A1%2F1%2F2011%2Ccd_max%3A12%2F31%2F2013

Steps Data receive from History api is not matched with google fit

天涯浪子 提交于 2019-12-08 08:53:26
I want google fit steps count in my application, for that I am using History api, provided by google. I found that steps receive from history api is not matched with google fit even if i used same code provided by google. Below is my code. Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); long endTime = cal.getTimeInMillis(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); long startTime = cal.getTimeInMillis(); DataSource ESTIMATED_STEP_DELTAS = new DataSource.Builder() .setDataType(DataType.TYPE_STEP_COUNT_DELTA)

Multiple GoogleApiClient not firing connect()

痞子三分冷 提交于 2019-12-08 05:22:23
问题 TL;DR; GoogleFit Api client does not connect if is signed in with Google+ So... I'm facing a problem when using GoogleFit and Google+ api together. I am using Google+ to sign in a user and using GoogleFit to retrieve fitness. Besides Google+ I have several other login options such as Facebook and Twitter. My problem is that if a user is signed in with Google+ the user can no longer connect to the Google Fit client. Basically when the button to connect to GoogleFit is pressed nothing happens.

Auth.GOOGLE_SIGN_IN_API cannot be used with Games.API

懵懂的女人 提交于 2019-12-08 03:53:03
问题 I'm trying to connect GoogleApiClient with Games.API and Auth.GOOGLE_SIGN_IN_API (for getting User Profile Information). Getting this Error: java.lang.IllegalStateException: Auth.GOOGLE_SIGN_IN_API cannot be used with Games.API Code: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestProfile() .build(); googleApiClient = new GoogleApiClient.Builder(activity) .addConnectionCallbacks(connectionCallbacks) .addOnConnectionFailedListener

How to get all users in one organization unit using Google Directory API

℡╲_俬逩灬. 提交于 2019-12-08 03:11:47
问题 In the new released Google Directory API, I cannot find a method to get all users in a specific organization unit of Google Apps. Is it possible? And how? Based on the Google Directory API document, programmers can get all the organization units, or all the users for the whole domain, but there is no description on how to get users of one organization unit. This feature is crucial important to construct the organizations/users hierarchical tree. Please help, thanks. 回答1: There is no way to

FusedLocationApi with PendingIntent is fired only once and its null

爱⌒轻易说出口 提交于 2019-12-08 00:20:44
Am working on an app that needs location update frequently even when its in the background. Following the documentation here , am working with pending intent not locationlistener. My code is below /** * Created by philip on 7/30/16. */ public class LocationService extends Service implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener{ private GoogleApiClient mGoogleApiClient; private LocationRequest mLocationRequest; public static final long UPDATE_INTERVAL_IN_MILLISECONDS = 1000 * 30; //1 minute; /** * The fastest rate for active location updates. Exact.

setAssertionCredentials on google-api-php-client 2.0

本小妞迷上赌 提交于 2019-12-07 19:37:00
问题 I updated from 1.1.5 to 2.0 and I cannot get it to login. I followed the UPGRADE.md instructions, on how to upgrade from using "setAssertionCredentials", but I can't get it to work. BEFORE: $client = new Google_Client(); $client->setApplicationName('API Project'); $client->setAssertionCredentials( new Google_Auth_AssertionCredentials( GAPI_SERVICE_ACCOUNT, array($service), file_get_contents(GAPI_KEYFILE) ) ); if ($client->getAuth()->isAccessTokenExpired()) { $client->getAuth()-

iOS Upload file to Google Cloud Storage - getting 401: 'Login Required'

核能气质少年 提交于 2019-12-07 17:35:21
问题 I am having trouble figuring out how to upload a file to a Public Access bucket to Cloud Storage. I have set up a bucket and set it's ACLs to READ and WRITE for all users. I have enabled the Cloud Storage JSON API and the Cloud Storage API. I have created an API key for browser applications that allows any referrer. Here is my code in Swift: private lazy var googleServiceStorage:GTLServiceStorage = { var storage = GTLServiceStorage() storage.APIKey = "AIzaSy**********m8TPCM" storage