gdata-api

HTTP/1.1 401 Token invalid - AuthSub token has wrong scope

时光总嘲笑我的痴心妄想 提交于 2019-12-04 18:24:19
I get this error when trying to get a feed from Google Analytics API. However, using the same token I get successful feeds from Google Calendar. The code between the two is exactly the same except for the feed url. So it must have something to do with Analytics being https and Calendar just http. I have successfully created a non-secure, long-lived token. The scope parameter while requesting the initial token: scope=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F%20https%3A%2F%2Fwww.google.com%2Fanalytics%2Ffeeds My request for the long-lived token: GET /accounts/AuthSubSessionToken HTTP/1.1

Google Analytics API in C# -Execution of request failed: https://www.google.com/analytics/feeds/accounts/default

末鹿安然 提交于 2019-12-04 15:49:48
问题 i want to access Google analytic data and i got samples from Google data API SDK. but these coding does not working and throws exception Execution of request failed: https://www.google.com/analytics/feeds/accounts/default so i found the reason for this is Google updated it's to v3.0. i searched updated coding for the C#, but i couldn't find solution for this. i have same problem as this, but with C#. Exception thrown when using GData .NET Analytics API i tried coding with doing changes as

Using Android AccountManager to get authtoken for gdata

*爱你&永不变心* 提交于 2019-12-04 13:49:19
问题 So I am trying to sync to google docs, without having to ask the user for his credentials. I use this code to get an auth-token: AccountManager mgr = AccountManager.get(activity); authToken = mgr.blockingGetAuthToken(account, DocsService.DOCS_SERVICE, true); This returns a auth-token that looks well-formated. So on my DocsService I run: service.setAuthSubToken(authToken); However, when I try to use the API I just get a AuthenticationException. Any ideas on how to approach this error? edit: I

Using Python gdata to clear the rows in worksheet before adding data

蓝咒 提交于 2019-12-04 09:27:20
I have a Google Spreadsheet which I'm populating with values using a python script and the gdata library. If i run the script more than once, it appends new rows to the worksheet, I'd like the script to first clear all the data from the rows before populating it, that way I have a fresh set of data every time I run the script. I've tried using: UpdateCell(row, col, value, spreadsheet_key, worksheet_id) but short of running a two for loops like this, is there a cleaner way? Also this loop seems to be horrendously slow: for x in range(2, 45): for i in range(1, 5): self.GetGDataClient()

Youtube Upload Quality

☆樱花仙子☆ 提交于 2019-12-04 06:48:58
I am using google's GData API in order to upload a video to youtube from my app. The upload works fine however the quality of the video uploaded is only 360p whereas the quality of the original video is 720p. Is this working as intended? If so is there any way around this video compression that will allow my app to upload HQ movies? Here's the code I'm using to achieve the video upload if that's any help. GDataYouTubeMediaGroup *mediaGroup = [GDataYouTubeMediaGroup mediaGroup]; [mediaGroup setMediaTitle:title]; [mediaGroup setMediaDescription:desc]; [mediaGroup addMediaCategory:category];

Could not find class error when trying to upload a video to YouTube using the gdata API

孤者浪人 提交于 2019-12-04 06:39:09
I am currently writing part of an Android application to upload a video to YouTube using the Google Data API. I have the latest version of the API from Google Code, and I have basically copied the example from their Developer's Guide for the time being. Everything compiles with no warnings or errors, and the app runs fine. But when I call service.insert(...) I get the following stack trace: ERROR/dalvikvm(19489): Could not find class 'com.google.gdata.data.media.MediaBodyPart$MediaSourceDataHandler', referenced from method com.google.gdata.data.media.MediaBodyPart.initMediaDataHandler ERROR

GData static library: exclude files from ARC with -fno-objc-arc?

有些话、适合烂在心里 提交于 2019-12-04 02:15:21
问题 I am using the GData static library in my app that uses ARC. Google's instructions say to link the header files from the library to the project target. The problem is that when I do so I get compiler errors as the GData library is not compatible with ARC. Google states that: ARC Compatibility When the library source files are compiled directly into a project that uses ARC, then ARC must be disabled specifically for the library sources. To disable ARC for source files in Xcode 4, select the

Alternative to ClientLogin for authentication

ぐ巨炮叔叔 提交于 2019-12-04 01:38:48
Since Google lists the ClientLogin API as deprecated what is the recommended alternative? In my case I need a server to authenticate and post things using credentials which I own. Alternatives like OAuth won't work in this context The authentication method varies based on the scenario of your application. The scenarios reported by Google documentation are: Login Web Server Applications Client-side Applications Installed Applications Devices Service Accounts In your case, the Web Server Application scenario might be useful (if you give more details about what do you mean for "In my case I need

Get complete playlist listing for a YouTube User via API

不羁岁月 提交于 2019-12-04 01:28:54
问题 So, here's my code for getting a youtube user's public playlists: function getyoutubeplaylists($userName) { $yt = connectyoutube(); $yt->setMajorProtocolVersion(2); $playlistListFeed = $yt->getPlaylistListFeed($userName); foreach ($playlistListFeed as $playlistListEntry) { $playlist['title'] = $playlistListEntry->title->text; $playlist['id'] = $playlistListEntry->getPlaylistID(); $playlists[] = $playlist; $playlistVideoFeed = $yt->getPlaylistVideoFeed($playlistListEntry-

YouTube and OAuth 2.0 in .Net

Deadly 提交于 2019-12-03 20:57:47
Does anyone know how to properly authenticate an account using OAuth 2.0 and then use that auth token to access the user's YouTube account? At the end of http://code.google.com/apis/youtube/2.0/developers_guide_protocol_oauth2.html it says The Google Data client libraries that support the YouTube Data API do not currently support OAuth 2.0. However, a newer set of Google API client libraries, which do not support the YouTube Data API, do provide OAuth 2.0 support. As such, it is an option to use these newer libraries, which are listed below, for their OAuth 2.0 capabilities and then force the