After experiments, It is not possible to mix differents API (calendar, drive, ...) in the same batch. So each API has its own limit. And, for google calendar, there is another limitation : Cannot perform operations on different calendars in the same batch request. (error "400 Bad Request", reason "cannotOperateOnDifferentCalendarsInBatch")...
android,google-app-engine,google-api,google-api-java-client
I have tried same code and its working fine! So, just ensure two things: 1)Register your digitally signed .apk file's public certificate in the Google APIs Console.Link below: https://developers.google.com/+/mobile/android/getting-started#step_1_enable_the_google_api 2)Make sure you have added the google+ api access and have client key created with SHA1. Rest is fine....
curl,google-api,google-spreadsheet,google-spreadsheet-api,google-form
For this you have to construct the curl command first and then execute it in Shell. The curl command can be as: curl https://docs.google.com/forms/d//formResponse -d ifq -d = -d submit=Submit Here is the link to explain how it can be done. Hope that helps!...
javascript,google-maps-api-3,google-api
Unfortunately you can not see the statics on a custom web page.
This should be the same in jQuery, but you have to adapt it yourself. You require also the underscore.js library. Hope this helps. window.setTimeout(function() { // Find google places div _.findIndex($(document.querySelectorAll('.pac-container')), function(container) { // disable ionic data tab container.setAttribute('data-tap-disabled', 'true'); // leave input field if google-address-entry is selected container.onclick =...
android,android-studio,google-api,dependencies
remove one Parse.jar (Android studio does not know which version to prefer) compile 'com.google.android.gms:play-services:7.5.0' instead of compile files('libs/google-play-services.jar') as google services contain res files, therefore they cannot be imported only through a .jar remove compile fileTree(dir: 'libs', include: ['*.jar']) as you dont want to compile all, what is in...
google-api,licensing,google-geocoding-api
Usage Limits The Google Geocoding API has the following limits in place: Users of the free API: 2,500 requests per 24 hour period. 5 requests per second. Google Maps API for Work customers: 100,000 requests per 24 hour period. 10 requests per second. ...
javascript,google-api,google-visualization
I find a solution to my question, i just post it here if someone else try to do the same. Maybe there's better solution but this one do what i want so that's ok. Instead of using google.visualization.events.addListener(chart, 'rangechange', feed_with_chartMap); I use $('#chart_AnnotationChart_rangeControlContainer g[transform]').click(feed_with_chartMap); It calls my function when the...
android,google-api,google-calendar
You can use: reminders.overrides[].method It returns the type of reminder: email, sms or popup You can see the documentation here: Google Docs...
php,mysql,json,google-api,google-visualization
I just tried the following code: <?php $rows = array(); $table = array(); $table['cols'] = array( // Labels for your chart, these represent the column titles. array('label' => 'Date Time', 'type' => 'date'), array('label' => 'Sensor Value', 'type' => 'number'), array('type' => 'string', 'role' => 'tooltip', 'p' => array('html' =>...
If you're using SSL, you won't be able to call the non-encrypted version of Google Fonts. To fix, locate this line on your HTML page (or template): <link href='http://fonts.googleapis.com/css?family=Whatever:400,600' rel='stylesheet' type='text/css'> and change it to this: <link href='//fonts.googleapis.com/css?family=Whatever:400,600' rel='stylesheet' type='text/css'> This will allow the browser to choose the appropriate page....
oauth,google-api,prolog,swi-prolog
Okay finally worked this step out. If anyone is interested: Using status_code(_ErrorCode) seemed to resolve the problem with streampair and I needed to set redirect_uri='postmessage' for the request to work. I also used http_open rather than http_post. :- use_module(library(http/thread_httpd)). :- use_module(library(http/http_dispatch)). :- use_module(library(http/http_error)). :- use_module(library(http/html_write)). :- use_module(library(http/http_session)). :- use_module(library(http/js_write)). :-...
google-api,google-analytics-api,google-api-python-client
I found the solution after tweaking with the segment code and reading more about segments in the segments dev guide. I was having issues with the dateOfsession parameter where i should have used '<>' instead of '=' for the date. So this is what i should have done: dateOfsession<>2015-04-30_2015-04-30 Somehow...
android,google-api,google-api-client,android-googleapiclient
The problem is that in your stopLocationUpdates() method, you are not waiting for the API to be connected before you call removeLocationUpdates(). One simple way to fix this would be to set a boolean flag when you need to remove location callbacks, but the API is not connected. Add a...
php,authentication,google-api,google-oauth
setPrompt to 'select_account'. Google will ask to select account each time authentication request is made . I do not think your users are happy with being logged out after logging out your page... They can change their account within the Google page. This is the url for logging out: accounts.google.com/logout...
google-api,google-oauth,google-openid
If you get an ID Token from Google, the user's email will always be verified, and this value will be true. In the rare case where the user had yet to verify their account's email address and attempts to use OpenID Connect, they will see an error message informing them...
google-apps-script,google-api,google-calendar
I did this in google script using freebusy api like this var resource = { timeMin: timeMin, timeMax: timeMax, items: [ { id: calendarId } ] }; var response = Calendar.Freebusy.query(resource); return response.calendars[calendarId]['busy'].length == 0; ...
google-api,playframework-2.0,sbt,google-api-java-client,google-api-client
Everything looks correct. I think you just need to run reload in your sbt shell to pick up the dependencies in your build.sbt. Or just re-start sbt.
The problem was that i was not enclosing the client_id etc... within " " in the array. Curl was not sending the request properly.
c#,.net,google-api,youtube-api,google-api-dotnet-client
Your code is doing is doing everything correctly. The YouTube API doesn't allow for pure server authentication (Service Account). The only option available to you to upload files will be to use Oauth2 and authenticate your code the first time. I just sugest you make one small change add filedatastore....
c#,asp.net,google-api,google-analytics-api,google-api-dotnet-client
I don't think a web service will work. The user needs to be prompted for authentication with the web browser. You cant really do that from a web service and return the proper authentication. The Google .net client lib uses the newest DLLs you may want to look into upgrading...
python,google-api,google-analytics-api
It can take between 24 and 48 hours for Google Analytics to finish processing data. Data that is available before that time will not be 100% correct as it is not completed processing. There is also no guarantee that all of the data will be there until its at least...
google-api,google-cloud-platform,google-cloud-logging
The Cloud Logging API currently only officially supports Google resources, so the best course of action is to continue to use "compute.googleapis.com" as the service and supply the labels "compute.googleapis.com/resource_type" and "compute.googleapis.com/resource_id", which are used for indexing and visible in the UI drop-downs. We also currently permit the service name...
php,google-apps-script,google-api,google-apps,google-api-php-client
I ended up using CURL request directly passing the "Authorization" header with the token_type and the access_token and it worked as expected. I didn't find any way to do this using the Google APIs Client Library for PHP POST Authorization: Bearer [your_auth_token] Content-Length: 0 ...
javascript,google-maps,datetime,google-api,google-maps-timezone
You haven't considered the Daylight Savings Time offset, which is why certain cities are off by an hour. calcTime(rawOffset+dstOffset); Timestamp contains both the date and time for as DST is only occurs in certain periods of the year. http://stackoverflow.com/a/10428184/3583980...
c#,google-api,google-bigquery,google-api-dotnet-client,service-accounts
I manage to found the root cause and solution for my problem. Actual Error: Table Schema getting Mismatched. Reason: In Big Query table Field Mode is REQUIRED. I am getting table schema from Response of this query "Select * From Table-name Limit 1" because not able to build new schema....
java,google-api,google-spreadsheet,gmail-api
I finally with help from here managed to create such connection. Everything is working as before. Steps You have to do is: Register at https://console.developers.google.com Create new project Under APIs & Auth -> Credential -> Create New Client ID for Service Account When the Client ID is generated You have...
google-maps,google-api,python-requests,google-places-api
Place Autocomplete Address Form uses the Google Places API, it also uses the Google Places JavaScript library. That being said if you check the Usage Limits and billing for the Google places api web service you will notice at the top it states. These limits do not apply to the...
Keep in mind that the list of users is on the client side, as you are using a federated login method (i.e. you are not storing usernames/passwords and authenticating within your app), and is not specific to your application. So, logging out is revoking the authentication of the current user...
java,oauth,google-api,glassfish
Solved it by the answer on this post: Invalid grant when accessing Google API The problem was that the server's clock was not synchronized with NTP. That was it......
Answer for your question is below The google API includes ->Maps and other Google-specific libraries. The Android one only includes ->core android libraries. ...
I found the solution on this MSDN forum post. Basically I needed to set X509KeyStorageFlags.Exportable | X509KeyStorageFlags.MachineKeySet as I read in the first SO post I mentioned and then I needed Flags = CspProviderFlags.UseMachineKeyStore in my CspParamaters.
java,android,google-api,google-api-java-client,google-login
play-services-identity:7.5.0, play-services-plus:7.5.0 and google-play-services.jar may cause the multiply libs conflict
c#,youtube,google-api,youtube-api,google-api-dotnet-client
You cant use Login and password anymore. You need to use Oauth2 to authenticate a user. The code is the same if it is a web or a console application. /// <summary> /// Authenticate to Google Using Oauth2 /// Documentation https://developers.google.com/accounts/docs/OAuth2 /// </summary> /// <param name="clientId">From Google Developer console https://console.developers.google.com</param>...
email,google-api,gmail,gmail-api,incoming-mail
You could specify that you don't want mails coming from you, or mails having your sent label etc. q = CompanyName filename:pdf AND -from:me AND -in:sent AND -is:chat AND -in:draft AND -in:trash Which would result in the following request: GET https://www.googleapis.com/gmail/v1/users/me/messages?q=CompanyName+filename%3Apdf+AND+-from%3Ame+AND+-in%3Asent+AND+-is%3Achat+AND+-in%3Adraft+AND+-in%3Atrash&key={YOUR_API_KEY} ...
Here's how you can accomplish this transformation using a (slightly non-optimal :)) Perl oneliner: perl -ne "if(s/^(.+?)\s+(..:..:..:..:..:..)\s+(.+?)\s*$/https:\/\/maps.googleapis.com\/maps\/api\/browserlocation\/json?browser=firefox&sensor=true&wifi=mac:\2|ssid:\1|ss:\3&\n/g){print;}" ...
javascript,api,google-api,cross-domain,referrer
Why your PHP script is failing: If you take a look at your error response from PHP: PHP Warning: file_get_contents(https://translate.google.com/translate_tts?ie=utf-8&q=the+brown+fox+jumped+over+the+lazy+dog) You'll notice that the url file_get_contents is requesting does not contain a tl parameter. This is causing a 404 to be returned. You can visit the page directly in your...
java,google-api,authorization,google-oauth,google-api-java-client
Without calling setServiceAccountUser() my code just worked perfectly fine. But you just will have an impersonated account (service_account_mail) not your personal contacts. Another possible source for a "401 Unauthorized" exception is leaving the credential.refreshToken() away. The call is necessary to write the access-code into the reference. Below the finished class:...
java,android,google-api,desktop-application
Yes, there is: https://github.com/gillesdemey/google-speech-v2/ You need to enable this API in google programmer console, to do that you need to add your self to chromium devel list, because in other case this option is hiddden. Then you need to acquire the API key. To encode files to desired flac format...
google-api,google-api-php-client
GAM does not use service accounts for email settings API, it uses standard OAuth 2.0 for installed apps. Be sure you used a super administrator to authorize GAM access to the email settings API. If you didn't, run gam oauth revoke And then another command like: gam all users show...
You should pass the variable to state. In the callback argument, you can parse your variable from state argument. For example, https://accounts.google.com/o/oauth2/auth?scope=email profile&state={"user_id": 1}&redirect_uri=http://localhost&response_type=code&client_id=xxxxxxxx.apps.googleusercontent.com&approval_prompt=force The callback url will be http://localhost/code?state={"user_id": 1}&code=4/P7q7W91a-oMsCeLvIaQm6bTrgtp7...
Remove the sub-sub-domain, or the encryption: This is an encrypted version of the image at https://books.google.com, and This is an unencrypted version at http://bk1.books.google.com Their certificate covers wildcard.google.com but not wildcard.wildcard.google.com. Just speculating I'd guess that bks1 is one of a pool of servers behind books....
android,google-api,sha1,android-googleapiclient
You can create a new debug certificate, which is then used on several computers and use SHA1 of that one. You would then use it like this in your gradle config, note use your own paths, this is for demo only signingConfigs { release { ..... } debug { storeFile...
Figured out from this post, that the app has to be published first for the functionality to work. However, we can emulate this with the following adb shell command adb shell am start -a com.google.android.gms.actions.SEARCH_ACTION -e query 'search for xyz on..' packagename ...
put it in lib and make build path settings in case of normal standalone app or inside WEB-INF/lib folder for webapp
c#,c#-4.0,google-api,google-drive-sdk
I don't think you are seeing deleted files. Deleted files are permanently deleted. I think you are seeing trashed files which are like putting files in the trash can on windows, they are removed but not really gone. You want to add a search parameter to your files.list request. you...
c#,oauth,google-api,google-cloud-print
I had the same problem and I came to the same conclusion as you: the service account does not own the printers. I found a solution here: http://stackoverflow.com/a/19951913/3122797 Basically, what you have to do is share your printers account with your service account. The problem is that the service account...
url,google-api,subdomain,favicon
That domain doesn't have a favicon at its root. Since the s2 service does not support lookups for specific paths, there is nothing you can do. (also note that this URL is not a public API, and there are no guarantees that it will continue to exist)...
php,google-api,google-api-php-client,google-identity-toolkit
This documentation on the Google API PHP client shows you how to get an OAuth token for your app. However, you will probably find it easier to use the Identity Toolkit specific PHP client. To generate the forgot-password link, all you need to do is call the getOobResults() method on...
Turned out that I had an empty row in the sheet and the API won't read new rows after that.
javascript,email,google-api,google-api-client
After days i had found the answer by my own. The problem was that the 'message' in the body only can be used when you send an attachment in the email. If you have no attachment the query looks like I wrote down here var mail= base64EncodedEmail; console.log(mail); var request...
ios,objective-c,google-api,youtube-api,integration
Oh buddy.... welcome welcome to the world of parsing JSON files and putting up with BADLY documented APIs :) Well I was looking into this a few months ago and I managed to get it working. Here are the things you have to do: Step 1 - OAuth 2.0 Integration...
java,javascript,google-api,google-api-js-client
Turns out everything is working as expected. I need to look at the refresh of tokens, as the access_token I was using was not valid, hence the "Invalid Credentials" message. I tested the access_token by putting the following in postman: https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=<access_token> When using the incorrect access_token I was getting the...
facebook,google-api,share,opengraph
You'd need to do something on your side to detect which crawler (Google / Facebook) is accessing the URL and provide different metadata to each - it should work fine provided the metadata given to each crawler is consistent, but requires you to keep track of different User Agent headers,...
ruby,cron,google-api,web-crawler,google-api-client
Solved thanks to Ruby google_drive gem oAuth2 saving I needed to get a refresh token and make my code use it like below. CLIENT_ID = '!!!' CLIENT_SECRET = '!!!' OAUTH_SCOPE = 'https://www.googleapis.com/auth/drive' REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob' REFRESH_TOKEN = '!!!' client = Google::APIClient.new client.authorization.client_id = CLIENT_ID client.authorization.client_secret = CLIENT_SECRET client.authorization.scope = OAUTH_SCOPE...
javascript,google-api,gmail-api,vertx.io
In case of GMail, you are accessing a particular user's data, so when creating the JWT, you need to specify the user whom you are trying to impersonate, i.e. the user whose mailbox you want to access. You can do this using the sub:"User's email address parameter" when forming the...
php,email,google-api,gmail,gmail-api
You need 'https://www.googleapis.com/auth/gmail.compose' to create a draft. So what happens if you $client->setScopes(array( 'https://mail.google.com/', 'https://www.googleapis.com/auth/gmail.compose' )); or if you want to get more formal define('SCOPES', implode(' ', array( Google_Service_Gmail::MAIL_GOOGLE_COM, Google_Service_Gmail::GMAIL_COMPOSE) )); $client->setScopes(SCOPES) or whatever the valid php might be (I haven't done php for a while). Note that if you...
ios,objective-c,uitableview,autocomplete,google-api
NSURLSessionDataTask *dataTask = [session dataTaskWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&q=%@",searchText]] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; if(!json){ // is a valid json ? return; } NSDictionary * jsonDict = [json objectForKey:@"responseData"]; _suggestionArray = = [jsonDict objectForKey:@"results"] [_tableView...
api,google-api,weather,weather-api
This is too broad to answer you should better check the tutorial or documentation present online. EDIT : Your script can look like this: import pywapi import string weather_com_result = pywapi.get_weather_from_weather_com('10001') yahoo_result = pywapi.get_weather_from_yahoo('10001') noaa_result = pywapi.get_weather_from_noaa('KJFK') print "Weather.com says: It is " + string.lower(weather_com_result['current_conditions']['text']) + " and " +...
ruby-on-rails,ruby,oauth,google-api
I managed to get an answer on Reddit. You need a Service Account and to share the document with your service app's email. The p12 key has to be stored somewhere as well. @email = "[email protected]" @key = "path/to/key.p12" key = Google::APIClient::KeyUtils.load_from_pkcs12(@key, 'notasecret') auth = Signet::OAuth2::Client.new( token_credential_uri: 'https://accounts.google.com/o/oauth2/token', audience: 'https://accounts.google.com/o/oauth2/token',...
You can use encodeURIComponent(yourComponentHere) to encode strings for use in URLs. UTF8 characters are not allowed in URLs and need to be encoded. Your browser does this as well, but it hides it from you so you can still read the URL. ...
You can use the Google Sheets API. But you are probably better off using Apps Script to access Calendar and Sheets.
javascript,security,google-api,google-calendar
Solved! According to events.delete it is not possible to modify events without authorization....
google-api,google-drive-sdk,quota
userRateLimitExceeded is flood protection basically. Its used to prevent people from sending to many requests to fast. Indicates that the user rate limit has been exceeded. The maximum rate limit is 10 qps per IP address. The default value set in Google Developers Console is 1 qps per IP address....
python,google-app-engine,google-api,google-custom-search
Besides the fact that you indeed should use an API Server Key as Alex indicated, the error message is telling you that the API request is coming from and unauthorized IP/Domain because the IP/Domain hasn't been whitelisted on the API key. I would set a new Server key up with...
javascript,angularjs,autocomplete,google-api,google-suggest
Updated Version (Custom Directive ngGoogleSuggest) click Plunker Directive performs much better because on keyup performs a http call to GoogleSuggest API elem.bind('keyup', scope.search); Markup: <div data-ng-google-suggest ng-model="Search"></div> Note: I plan to make a GitHub repo for ngGoogleSuggest after it has been tested a bit more Screen Shots Calling Google Search...
php,google-api,google-calendar
Check that you have correctly set the Redirect URI in the script and on the Google developer console you may have forgotten to change it from the tutorial you copied.
The reason that it is not working is that Authentication is linked to the client id and client secret. When a user authenticates they are authenticating that client id / client secret pair. You cant just take the Refresh token or the Authentication code and use it with a different...
I do not have any experience with what you are doing, but might it be the case that the PlusBaseActivity class has to implement ConnectionCallbacks in order to 'be' a callback? Like: public class PlusBaseActivity extends Activity implements ConnectionCallbacks{ // add ConnectionCallBack methods } ...
google-api,google-oauth,google-analytics-api
Embeded API uses Oauth2 to authenticate. Oauth2 requires that a user give you access to their Google Analytics data. You want to show your person Google Analytics data to other users. Normally I would say you should use a Service account, a service account gives the application direct access to...
google-app-engine,google-apps-script,google-api,google-docs
As you already found out, apps script is currently the only one that can access an api to modify google docs. All other ways cannot do it unless you export to another format (like pdf or .doc) then use libraries that can modify those, then reupload the new file asking...
php,google-app-engine,google-api,google-cloud-datastore,google-php-sdk
Solution: I did need to use the $query->setKinds() method as Ed Davisson suggested, however it cannot just take a string. You need to give it the Google_Service_Datastore_KindExpression Object Example: $views_kind= new Google_Service_Datastore_KindExpression; $views_kind->setName("views"); $query->setKinds(array($views_kind)); ...
After you have logged in and acquired tokens, you create service instances and then attach an "authorizer." Google's Objective-C client supports quite a few services: https://code.google.com/p/google-api-objectivec-client/ Here is a sample using Google+: Obj-C (with ARC enabled) GTLServicePlus* plusService = [[GTLServicePlus alloc] init]; plusService.retryEnabled = YES; # set an authorizer with...
python,google-app-engine,google-api
For this, you can add in a FieldExpression: query_string = 'distance(LocationCoord, geopoint(35.2, 40.5)) < 1000' expression = search.FieldExpression(name='distance', expression='distance(LocationCoord, geopoint(35.2, 40.5))') query_options = search.QueryOptions( returned_fields=['ID', 'GUID', 'LocationCoord'] returned_expressions=[expression], ) query = search.Query(query_string=query_string, options=query_options) res = index.search(query) ...
google-api,google-analytics-api
While Matthew is correct, I have another possibility for you. Google analytics API cashes your requests to some extent. Let me try and explain. I have a customer / site that I request data from. While testing I noticed some strange things. the first million rows results would come back...
google-api,google-oauth,google-api-client
You can't change the service account email address, nor can you supply a real world user name to it. The service account email address is created by Google in the Google Developer console. The only way to change the email address would be to delete it and create a new...
According to Search request metadata, there should be a nextPage value returned next to items when there are additional results. However it always says Note: This API returns up to the first 100 results only. so it looks like you are already getting the maximum number of results.
java,google-api,google-spreadsheet,gmail-api
Try adding access_type with the value offline to your auth request. I had a very similar error to this not 2 days ago and this fixed the problem. Also, just to confirm the clientID value should be similar to @developer.gserviceaccount.com They basically expect the email_address value from the console api...
google-api,google-analytics-api
I found this option Embed API - Component Reference from this link which solved my issue: I just needed to set the access_token: gapi.analytics.auth.authorize({ serverAuth: { access_token: 'XXXXXX' } }); ...
They are there. They are just available in two different flavors: Google APIs (x86 System Image) and Google APIs (ARM System Image)
android,google-api,google-calendar,android-gradle,build.gradle
When you add the multidex:true don't forget to make an Application class in your project that extends from the MultiDexApplication or a lot of bad stuff will happen public class YourApplication extends MultiDexApplication { .......... } And don't forget this either (the version may change over time, if you read...
google-api,google-drive-sdk,google-api-php-client,google-api-client
This error was due to a bug in the Drive API. Here's the canonical issue report: https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3862 In the future please file issues there instead of posting on Stack Overflow. The bug should now be fixed....
php,google-api,google-oauth,google-analytics-api,google-api-php-client
If you want to access your own account, then I suggest you look into using a service account. Once you have created the service account on the Google Developer console, remember to go to your Google Analytics account and give the service account email address access to your Google Analytics...
javascript,google-api,text-to-speech,http-status-code-403,google-translate
That resource is dated. Google deprecated free access to the language translate api. Now an API key is needed. The api is also now in V2. Without an api key you will receive the 403 forbidden error. More information here: https://cloud.google.com/translate/docs...
c#,oauth,google-api,service-accounts
As I've commented, the article "Using Google Drive API with C#" part 1 and part 2, shows how to store the refresh token and use it to authenticate in the name of app. It's also warning about the limitations of the service account, in many cases "useless" as you said....
laravel,google-api,laravel-5,laravel-socialite
It turns out that these extra permission requests only showed up while the API was disabled in my Google Dev console. It doesn't make sense as to why the scope request would change, but the request wont work anyway without the API being enabled. Enabling the Google Plus API simply...
php,google-api,google-oauth,google-api-php-client,gmail-api
Ok, basically i was approaching wrongly. Following this instructions is enough to get the tokens: https://developers.google.com/gmail/api/quickstart/php The main point is to access the file from the command line and not from the app....
php,google-api,google-oauth,google-api-php-client,gmail-api
I think you are close! Try assigning the access token to the client like this: $client = new Google_Client(); $client->setApplicationName('Gmail API test'); $client->setDeveloperKey('MY_KEY'); $client->setClientSecret('MY_CLIENT_SECRET'); $client->SetClientId('MY_CLIENT_ID'); $client->setScopes(array('https://www.googleapis.com/auth/gmail.readonly')); $client->setAccessToken('{"access_token":"MY_ACCESS_TOKEN", "token_type":"Bearer","expires_in":3600, "refresh_token":"MY_REFRESH...
c#,google-api,google-calendar,google-api-dotnet-client
The page you are refrenceing is from August 13, 2012 .net client library. It will not work with the current version of the Google .net client library nor will it work with the current version of the Google Calendar API. It is not possible to access Google Calendar using a...
java,google-api,google-http-java-client
To parse cookies use java.net.HttpCookie.parse(String header) Still need to store parsed cookies and send them with Cookie header. There are plenty solutions for cookie handling over internet though it's odd that Google doesn't provide it with their library....
google-api,google-admin-sdk,google-reseller-api
This should work. When you implement the real thing, make sure you have retry with exponential back off. public void retrieveAll() throws IOException, InterruptedException { GoogleCredential credentials = GoogleApiUtil.getCredentials(); Reseller service = new Reseller.Builder(HTTP_TRANSPORT, JSON_FACTORY, credentials) .setApplicationName("ResellerDemo").build(); String nextPageToken = null; do { Subscriptions subsList = service.subscriptions().list().setMaxResults(Long.valueOf(100)).setPageToken(nextPageToken) .execute();...
You can create an iframe and set the src to the DownloadURL value. You may need to set a timeout... function downloadFile() { gapi.client.load('drive', 'v2', makeRequest); } function makeRequest() { var request = gapi.client.request({ 'path': '/drive/v2/files', 'method': 'GET', 'params': {'q': 'title contains "This"'} // retrieve all files with a filename...
node.js,oauth-2.0,google-api,google-analytics-api
After digging through the code for the PHP and Node.js API libs, I've found my answer. The PHP API Client automatically checks if the token is invalid and then renews it without telling you (from what I can see). My stored token was invalid and I therefore just need to...
google-api,google-drive-sdk,google-oauth,service-accounts
You cant. A service account is a sudo user type thing. Yes it has a Google drive account, Google calendar ... but you cant log in to the web interface for Service accounts. Option / work around / Tip: There is a slight workaround. You could have the service account...
php,google-apps-script,google-api,google-drive-sdk,xampp
This is what I came up with, thanks to the help of the above code and some other code I found, put the two together and it does what I need. It may be useful for some one else. Thanks function listFilesInFolder() { var MAX_FILES = 2000; //use a safe...
google-api,google-admin-sdk,google-directory-api
I logged a case with Google Support a while back regarding this. This behavior actually became an issue we noticed with the latest version of GADS - as it uses the Directory API now. Essentially, this is expected behavior. Google don't want groups owning groups. Previously, the Provisioning API overruled...
google-api,google-authentication,google-qpx-express-api
I am pretty sure you are trying to use the QPX Express API, this API requires that you send Key. or an access token from the OAuth2 authentication process. The reason these keys are required even for the free quota is that Google needs to know who is hitting there...
android,oauth-2.0,google-api,youtube-api,android-youtube-api
According to the Google docs, "String representing the authentication scope. To specify multiple scopes, separate them with a space (for example, "oauth2:scope1 scope2 scope3")." Also that such method is deprecated and you should use the "getTokenWithNotification" version....