google-api

keyInvalid Error when calling Google Calendar API

倾然丶 夕夏残阳落幕 提交于 2019-12-24 09:59:54
问题 I'm writing a Lambda function that queries Google Calendar events. Although I successfully created a credential (client ID, and client secret) on Google Developers Console, I cannot access the events. Error: { "error": { "errors": [{ "domain": "usageLimits", "reason": "keyInvalid", "message": "Bad Request" } ], "code": 400, "message": "Bad Request" } } My http request looks like this: https://www.googleapis.com/calendar/v3/calendars/MY_CLIENT_ID/events?key=MY_CLIENT_SECRET What went wrong?

Is it possible to create google API KEY programmatically?

ⅰ亾dé卋堺 提交于 2019-12-24 09:51:40
问题 I'm trying to automate the process of creating and managing my projects on Google Cloud Platform. I want to create new project and generate API keys for it and use them. I am unable to find any API to create API KEYS. Is there any solution ? Thanks 回答1: From My little experience you can't . You have to use Google API Console 回答2: You may not be able to create API keys programmatically, but you can create service accounts. Service accounts can do all the things on API keys can, and are much

How to I search using Google Drive API using Javascript?

一曲冷凌霜 提交于 2019-12-24 09:08:26
问题 I am currently working with Google Drive API and search files. var test = false; gapi.client.drive.files.list({ pageSize: x, q: "starred = test and viewedByMeTime > '2016-06-01T12:00:00-08:00', and not 'testemail@gmail.com' in writers", orderBy: 'viewedByMeTime desc', spaces: 'drive', fields: "nextPageToken, files(id, name, viewedByMeTime, mimeType)", } ) The issue I am having is that I want to be able to set var test = to false or true depending on whats the user selected. However, I can't

Google API for Google Services

放肆的年华 提交于 2019-12-24 08:50:13
问题 Normally I can find just about anything using a serach engine. But this time I seemed to have failed I wanted to know if it is possible to get a list of services that are enabled and disabled such as GMail, Google+, YouTube, ect. I know I can do this through the Services tab on the Organizations and Users page. However I want to create an application that will allow me to enable and disable services from the app and not have to login to a webpage. I have been poking around in the google apis

Google Analytics Management API 500 Internal Server Error

删除回忆录丶 提交于 2019-12-24 08:46:16
问题 I have an application which gets Google Analytics metadata and statistics for a couple dozens google users from Management and Reporting API. Everything was ok for a long period (several month), but yesterday around 21:00 pm UTC one of them (user) started getting this error: 500, Backend Error or sometimes InternalError His Management API requests: get all Accounts response is 200 with with 360 items get all WebProperties response is 200 with 170 items get all Profiles response is 200 with

Maps direction Quota limits

可紊 提交于 2019-12-24 08:42:46
问题 Hi i have written a google script that takes out the distance for the specific start point and endpoint. I have read a lot of articles online but they don't include the limits for google map script. I want to know for how many number of start points and end points (how many calls) will i be able to take out using a normal gmail and a business gmail id. EDIT: I'm using Maps.newDirectionFinder().getDirections(); 回答1: https://developers.google.com/maps/documentation/directions/#Limits Usage

Maps direction Quota limits

戏子无情 提交于 2019-12-24 08:42:43
问题 Hi i have written a google script that takes out the distance for the specific start point and endpoint. I have read a lot of articles online but they don't include the limits for google map script. I want to know for how many number of start points and end points (how many calls) will i be able to take out using a normal gmail and a business gmail id. EDIT: I'm using Maps.newDirectionFinder().getDirections(); 回答1: https://developers.google.com/maps/documentation/directions/#Limits Usage

Why Google Calendar API returns timeZone=UTC although it's incorrect?

巧了我就是萌 提交于 2019-12-24 08:31:37
问题 Most of our customers are American, but after connecting their google calendar with our service we read timeZone=UTC: https://www.googleapis.com/calendar/v3/users/me/calendarList?minAccessRole=owner&access_token=<ACCSES TOKEN> response: { "kind": "calendar#calendarList", "etag": "\"1407366566837000\"", "nextSyncToken": "00001407366566837000", "items": [ { "kind": "calendar#calendarListEntry", "etag": "\"1407184723757000\"", "id": "sampleemail@gmail.com", "summary": "sampleemail@gmail.com",

JSON Parsing Google API Custom Search Error

折月煮酒 提交于 2019-12-24 08:28:08
问题 I have the following code: require 'rubygems' require 'httparty' require 'pp' require 'json' class Search include HTTParty format :json end x = Search.get('https://www.googleapis.com/customsearch/v1key=AI...&cx=013...=flowers&alt=json') x = x.to_s result = JSON.parse(x) And every time I run it on the google search results that come back I get the following: FlowerPlaces.com Delivers Fresh <b>Flowers</b> To Your Place! <br> Order <b>Flowers</b> Online or Call 800-411-9049 for Same Day <b

Default Value in the Search Box of the Google Custom Search

微笑、不失礼 提交于 2019-12-24 08:05:10
问题 I am using the standard copy and paste code for the Google Custom Search (free with ads). I want to have some text in the search field when the page is loaded is that possible? If so, how? Here's the code: <div id="cse" style="width: 100%;">Loading</div> <script src="//www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1', {language : 'en'}); google.setOnLoadCallback(function() { var customSearchControl = new google.search