Skip to content

xxx Drive API

Elias Issa edited this page Aug 9, 2018 · 3 revisions

https://developers.google.com/drive/api/v3/quickstart/js This walks you through the steps of turning on the drive api through the developer console To set up client ID & app key

https://console.developers.google.com/apis/credentials?project=sandbox-ce2c5

wrap with new_jsonp_callback and use .json extension

new_jsonp_callback({ "Weight":0.350, "Species":"marmoset", "Homecage":1, "Separated":1, "Liquid":1, "Tablet":"pixelc", "Pump":6, "RewardPer1000Trials":19, "PunishTimeOut":3000, "ChoiceTimeOut":10000, "NGridPoints":3, "GridScale":0.5, "StaticFixationGridIndex":5, "SampleGridIndex":4, "TestGridIndex":[2,8], "ObjectGridIndex":[], "RewardStage": 1, "NFixations":1, "FixationDuration":0, "FixationMove":0, "SampleON":100, "SampleOFF":500, "KeepSampleON":1, "HideTestDistractors":0, "NStickyResponse":3, "ConsecutiveHitsITI":8000, "NConsecutiveHitsforBonus":3, "NRewardMax":4, "FixationUsesSample":0, "FixationScale":0.5, "SampleScale":0.5, "TestScale":0.5, "Automator":0, "CurrentAutomatorStage":0, "AutomatorFilePath":"touch_m2s_objectome.txt", "ImageBagsSample": [ "1XS-gqnag8YfazWL9mRvRL4YBh-Mxl6OV", "1sC_kYSE3F8_XWRkBmdN6fBZLrsKmoRgv" ], "ImageBagsTest": [ "1XS-gqnag8YfazWL9mRvRL4YBh-Mxl6OV", "1sC_kYSE3F8_XWRkBmdN6fBZLrsKmoRgv" ] })

"message": "User Rate Limit Exceeded. Rate of requests for user exceed configured project quota. You may consider re-evaluating expected per-user traffic to the API and adjust project quota limits accordingly. You may monitor aggregate quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/drive.googleapis.com/quotas?project=1003719887944", "extendedHelp": "https://console.developers.google.com/apis/api/drive.googleapis.com/quotas?project=1003719887944"

"reason": "userRateLimitExceeded", "message": "User Rate Limit Exceeded. Rate of requests for user exceed configured project quota. You may consider re-evaluating expected per-user traffic to the API and adjust project quota limits accordingly. You may monitor aggregate quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/drive.googleapis.com/quotas?project=1003719887944", "extendedHelp": "https://console.developers.google.com/apis/api/drive.googleapis.com/quotas?project=1003719887944"

error 403 userratelimitexceeded https://developers.google.com/drive/api/v3/handle-errors#403_user_rate_limit_exceeded