google-api

Invalid credentials: Google API calendar

痴心易碎 提交于 2020-01-10 05:49:05
问题 I am new to using Google APIs. I followed steps to setup Google Calendar sample code in eclipse using Google client library. I deployed the code to app engine using the cmd command- mvn appengine:update (when tried to deploy through eclipse it gave me an error saying the project is not an App Engine project). Deploying through command line worked and I could launch my web application. Suddenly, after few API request calls, started getting invalid credentials error: error:401 domain:global

How to parse malformed JSONP with hex-encoded characters using JSON.NET?

和自甴很熟 提交于 2020-01-10 05:23:28
问题 I make a call to google's dictionary api like this: var json = new WebClient().DownloadString(string.Format(@"http://www.google.com/dictionary/json?callback=dict_api.callbacks.id100&q={0}&sl=en&tl=en", "bar")); However I get a response that this code fails to parse correctly: json = json.Replace("dict_api.callbacks.id100(", "").Replace(",200,null)", ""); JObject o = JObject.Parse(json); The parse dies at encountering this: "entries":[{"type":"example","terms":[{"type":"text","text":"\x3cem

Error in Google finance API

假如想象 提交于 2020-01-10 04:31:30
问题 I want to convert currencies using google finance api. But its not working in my local machine(India). It works fine when I hit from one server located in USA and provides proper result. Url : https://finance.google.com/finance/converter?a=1&from=ZAR&to=USD&meta=53336452-3e60-4fa1-9740-9ef8ea9e9118 Can anyone please help me to work this api properly in my local machine? Any help will be appriciated Thanks. 回答1: I was facing the similar issue ( Google Converter API suddenly not working ) As

How to stop watch on entire channel of Google calendar events?

浪尽此生 提交于 2020-01-10 04:31:07
问题 How do I stop watching the entire channel? The API reference reproduced below requires a resourceId , seemingly implying that it only stops watching the event specific to the resourceId . For my purposes, I would think that a channelId is enough and therefore uncertain what to put for resourceId . The field is not optional. POST https://www.googleapis.com/calendar/v3/channels/stop Authorization: Bearer {auth_token_for_current_user} Content-Type: application/json { "id": "4ba78bf0-6a47-11e2

Handling in-app purchases / consumable products across sessions/devices?

人盡茶涼 提交于 2020-01-10 04:16:11
问题 My question is centered around handling in-app purchases for consumables with Google's In-App Billing API. (https://developer.android.com/google/play/billing/api.html#consumetypes) Their documentation describes consumables as: Consumable products In contrast, you can implement consumption for products that can be made available for purchase multiple times. Typically, these products provide certain temporary effects. For example, the user's in-game character might gain life points or gain

Google Calendar api v3 re-update issue

对着背影说爱祢 提交于 2020-01-10 04:04:25
问题 I'm working on google calendar and having problem with syncing data between my Calendar app on Iphone to Google Calendar. (I use google api v3) The problem is: I can update an event by code just 1 time after i created it. The next time when i try to update it, i get message code 400: bad request. We can use google calendar explore to test this (https://code.google.com/apis/explorer/#_s=calendar&_v=v3&_m=calendars.update) by creating an event then update it 2 time. Does any one meet this

Migrate off Global HTTP Batch Endpoints - indirect usage

给你一囗甜甜゛ 提交于 2020-01-10 03:18:26
问题 I have received an email from Google stating "We are writing to let you know that the JSON-RPC and Global HTTP batch endpoints will be deprecated on March 26, 2018", and that the "HTTP Global batch endpoint" is in use in one of my projects. However I have no code in that project which directly uses the http batch endpoint. I presume some google library I am using is calling it indirectly, so my question is: how can I figure out which library needs updating, and how can I know when I have

How do I retrieve step count data from Google Fitness REST api?

╄→尐↘猪︶ㄣ 提交于 2020-01-10 02:48:12
问题 Since I installed the Google Fit app on my Nexus 5 it has been tracking my step count and time spent walking. I'd like to retrieve this info via the Google Fitness REST api (docs) but I can't work out how to get any of that data from the REST api. I've used the OAuth 2.0 playground to successfully list dataSources but none of the examples I have tried have returned any fitness data whatsoever. I feel like I need to use something similar to a DataReadRequest from the (Android SDK) but I'm not

pre-register app on google play [closed]

感情迁移 提交于 2020-01-09 19:04:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am working on a product, and have plans to launch in next 4-5 weeks, i have read so many blogs post about a new features of google play console i.e Pre-Register-App before launch.so i am also thinking to do the same, i dig google and found many blogs, which explain what is Pre-registering , but haven't found

Google Analytics API: “User does not have sufficient permissions for this account.”

最后都变了- 提交于 2020-01-09 06:53:01
问题 I'm writing a Ruby app that accesses the Google Analytics API to pull down some experiment information. The app connects and authenticates using a Google Service Account via the following function: def connect ... @@client = Google::APIClient.new(:application_name => 'My Service App', :application_version => '1.0.0') key_file = Rails.root.join('config', 'privatekey.p12').to_s key_secret = 'somesecret' key = Google::APIClient::PKCS12.load_key(key_file, key_secret) asserter = Google::APIClient: