gdata

Using Zend GData, How do i get a worksheet cell index by looking for its value?

两盒软妹~` 提交于 2019-12-11 19:32:20
问题 suppose i have a cell in a worksheet that has a value of "last data cell" is this the correct way to get the index of this cell (i.e A5) using Zend GData ? $query = new Zend_Gdata_Spreadsheets_CellQuery(); $query->setSpreadsheetKey($this->_spreadsheetKey); $query->setWorksheetId($worksheet); $cellFeed = $this->_spreadsheetService->getCellFeed($query); foreach($cellFeed as $cellEntry) { $row = $cellEntry->getCell()->getRow(); $col = $cellEntry->getCell()->getColumn(); $val = $cellEntry-

Accessing Google Map Listing From GData

余生颓废 提交于 2019-12-11 09:48:04
问题 Im trying to create a "search nearby" shops on iphone, but i can not find any solution on how to get the data from Gdata Libraries. http://code.google.com/p/gdata-objectivec-client/ They only support the following Google services provides a Google data API, but not google maps?! Google Base Blogger Book Search Calendar Code Search Contacts Documents List Finance Health Picasa Web Albums Spreadsheets Webmaster Tools YouTube Any solution or idea where i should look for would be much appreciated

gData: get account(self contact) first and last name

主宰稳场 提交于 2019-12-11 08:24:51
问题 I want to get first and last name of a google account using gdata library. I have the auth token(I take it from android device - send it to my java servlet- then should add an insert into a mysql db with first, last, display name and provider_uid(provider_uid is the form of https://www.google.com/accounts/o8/id?id=AItOawmyn...)). I used Contacts feed like this(without success): public String tryGoogleAuthentication(String auth_token){ ContactsService contactsService = new ContactsService("...

Socket error when using gdata Youtube API in Python

大城市里の小女人 提交于 2019-12-11 08:09:31
问题 I'm using gdata to map YouTube URLs to video titles, using the following code: import gdata.youtube.service as youtube import re import queue import urlparse ytservice = youtube.YouTubeService() ytservice.ssl = True ytservice.developer_key = '' # snip class youtube(mediaplugin): def __init__(self, parsed_url): self.url = parsed_url self.video_id = urlparse.parse_qs(parsed_url.query)['v'][0] self.ytdata = ytservice.GetYouTubeVideoEntry(self.video_id) print self.ytdata I get the following

Exception in thread “main” java.lang.NoSuchMethodError: scala.collection.JavaConversions$.asMap(Ljava/util/Map;)Lscala/collection/mutable/Map;

断了今生、忘了曾经 提交于 2019-12-11 07:51:39
问题 I am trying to use "gdata-scala-client" import google contacts using scala. I followed the instructions here, This is my sample code import com.google.gdata.Service import com.google.gdata.data.StdAtomFeed object Con extends App { println("hey") val s = new Service("comp-test-1.0", "cp") {} s.setUserCredentials("scalaprogrammer1@gmail.com", "xxxxxxxx") val atomFeed = new StdAtomFeed val f = s.query("http://www.google.com/m8/feeds/contacts/scalaprogrammer1%40gmail.com/base", atomFeed

How to insert data cells to a google spreadsheet using Google gdata-client API

China☆狼群 提交于 2019-12-11 06:27:52
问题 I've got a requirement to populate a google spreadsheet with some records using JAVA. For this, I've used Google gdata client APIs to connect to the appropriate google spreadsheet and query data. However, although I managed to retrieve the data from the spreadsheet, I'm still struggling to find a way to insert some data cells to the google spreadsheet programmatically. I've tried a several methods and samples with no success. Appreciate if somebody who is much familiar with the gdata client

YouTube API: Private Video Access

♀尐吖头ヾ 提交于 2019-12-11 05:56:31
问题 I know that controlling a video's privacy setting (public, private, unlisted) is done through setting the yt:private or yt:accessControl tags. However with a YouTube video, when it is set to private the access to the video can be allowed through a list of email addresses or YouTube usernames. Is there a way to set this allowed list through the API? If there is someone who knows of a solution using the Zend Gdata libraries this would be welcomed as this is the library I am using to interact

Zend Google Calendar API - How to Change DateTime Format?

☆樱花仙子☆ 提交于 2019-12-11 05:39:16
问题 I am using the Zend Framework Gdata for the Google Calendar API and the datetime outputs in RFC3339 (which looks like this: 2012-01-19T22:00:00.000-08:00). What php code do I need to add in order to convert that to UTC so that it looks like this: January 19, 2012 8pm-11pm ? I have found php code that converts RFC dates to string, but I don't know enough about php to be able to alter the code to work with the Zend Gdata formulas... as you will see in my code below, the "date" is referred to as

how to get access token using gdata in java

假如想象 提交于 2019-12-11 05:05:02
问题 I am developing a Java Application where I am implementing 3-legged OAuth using google gdata in Java. This application is registered on Google App Engine. At the first stage, I am getting the unauthorized request-token successfully. I am storing that token in session and create a link using createUserAuthorizationUrl(oauthParameters). Then on clicking the link, it redirect me to "Grant Access Page". Now, even though I grant access, it doesn't show me this page. But, it redirects me to my

How to upload video on YouTube with Ruby

五迷三道 提交于 2019-12-11 04:19:30
问题 I am trying to upload a youtube video using the GData gem (I have seen the youtube_g gem but would like to make it work with pure GData if possible), but I keep getting this error: GData::Client::BadRequestError in 'MyProject::Google::YouTube should upload the actual video to youtube (once it does, mock this test out)' request error 400: No file found in upload request. I am using this code: def metadata data = <<-EOF <?xml version="1.0"?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns