gdata

GData Youtube : obtaining thumbnails

早过忘川 提交于 2019-12-11 02:31:38
问题 I have a bunch of youtube VideoIDs (the alfanumeric string in the param watch/v=? of the youtube.com url) and I have to obtain the thumbnails for each video; Now, for each videoid I make up an HTTP GET request like the following: http://gdata.youtube.com/feeds/api/videos/VIDEOID?v=2&alt=json (s/VIDEOID/actualVideoID/) And I parse/play around with the json returned; But this approach is quite expensive in terms of performance (everything would be running on a mobile device): is there a way to

ContactsRequest.Insert(feedUri, newEntry) sometimes fails with System.Net.ProtocolViolationException

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:06:43
问题 I have this piece of code for adding a contact in a test gmail account I created: public class SomeClass { private const string ClientId = "someclientid" private const string CliendSecret = "muchsecretwow"; private const string ApplicationName = "such app"; private const string RedirectUri = "http://localhost"; private const string Scopes = "https://www.google.com/m8/feeds/"; private OAuth2Parameters _parameters; private string _accessToken, _refreshToken; public void GoogleApiCallAddContact(

Problem updating Google Contact Picture in Ruby

天涯浪子 提交于 2019-12-10 22:45:50
问题 I am trying to write a ruby app to update Google Contact Photos but I cant get the upload working. Im not sure if I have misunderstood the Google API but this is what I have so far: Net::HTTP.start(URI.parse(image_element.attributes['href']).host) do |http| response, body = http.put(URI.parse(image_element.attributes['href']).path, data, {'If-Match' => '*', 'content-type'=>'image/*'}) end The Google Data API says: Every contact has a photo link element. It has the form: href='https://www

How to create a ContactsService using Google Contact API v3 with OAuth v2 UserCredentials

梦想的初衷 提交于 2019-12-10 20:27:10
问题 My application is using Google API Calendar V3 with the OAuth and this works great. It will ask the user for their consent the first time. It is easy to use the Calendar Service to create, modify and delete calendar events. So far so good! Now I want to ask the user permission for adding and modifying contact data. By adding the following string "https://www.google.com/m8/feeds/" the user is also asked for Contact access approval. This seems to work. However, I can’t find a way to create a

Progress bar for YouTube direct uploads with data?

北城余情 提交于 2019-12-10 19:04:04
问题 I would like to display a progress bar for direct youtube uploads using the gdata api. I have the uploads getting kicked off in by an ajax call to an uploader.php script, and when it completes, I update the status on the page the user sees. I would really like to set a timer to update a progress bar every 5 seconds or so, so the user doesn't get impatient and cancel a perfectly good upload in progress. I've seen many posts with people trying to find a way to get progress info back from their

Remove dependency from pod

孤人 提交于 2019-12-10 17:48:36
问题 How do I remove dependency from a pod? I have a podfile with pod 'GData' which seems to be broken, because it generates 163 duplicate symbols errors. I think I know what it is. While installing this can be observed: Installing GTMHTTPFetcher (1.141) Installing gtm-http-fetcher (1.0.141) [!] GTMHTTPFetcher has been deprecated in favor of gtm-http-fetcher One of these is not needed. So to remove it I try to modify podfile to use custom, local podspec file: podspec :path => '~/GData.podspec.json

Google GData .Net OAuthUtil.GetAccessToken 400 Bad Request

为君一笑 提交于 2019-12-10 13:59:48
问题 I'm trying generate an OAuth access token via the Google .Net GData Client Library. I've been using the instructions in http://code.google.com/apis/gdata/docs/auth/oauth.html as a guide and everything's been working up until I attempt calling OAuthUtil.GetAccessToken( parameters ) at which point I receive a "(400) Bad Request" web exception. Unfortunately, it's not telling me anything about why it's a bad request. So, I'm kinda baffled about this. The only idea I have is that, because I'm

YouTube GData API - Query for videos with a specific duration

情到浓时终转凉″ 提交于 2019-12-10 12:12:55
问题 Is there a YouTube GData API parameter for a query that will only return entries with a minimum and/or a maximum given duration? I've found the "duration" parameter but it only accepts the values "short", "medium", and "long". 回答1: Ok, found it! You need to integrate such query conditions into the fields parameter, which operates on a syntax similar to xpath: http://gdata.youtube.com/feeds/api/videos?fields=entry[*videoVariable* operator *value*] So for what I was looking for, the fields

(PHP) How to parse URLs in google search results?

…衆ロ難τιáo~ 提交于 2019-12-10 10:52:06
问题 How get google search results url? (I use Zend_Gdata_Gbase for get search google results and not DomDocument/htmlsimpleparser because its looks to me that Zend_Gdata_Gbase done specially for parsing google results. if I wrong in my selection, please write.) My function to get google search results for 'yahoo' or other query search string: (the function get a feed that should have search result for word 'yahoo', but when i use prin_t($feed) I don't see url for each result) <?php function

youtube inbox problem

守給你的承諾、 提交于 2019-12-10 10:44:08
问题 I'm trying to programmatically (using gdata api) retrieve incoming messages from youtube account. My request: NSURL *url = [NSURL URLWithString:@"http://gdata.youtube.com/feeds/api/users/my_nick/inbox"]; NSMutableURLRequest *inboxRequest = [NSMutableURLRequest requestWithURL:url]; NSString *authStr = [NSString stringWithFormat:@"GoogleLogin auth=%@", authMarker]; [inboxRequest setValue:authStr forHTTPHeaderField:@"Authorization"]; [inboxRequest addValue:@"Content-Type" forHTTPHeaderField:@