gdata-api

How to convert from gid to od* (worksheet id) in new Google spreadsheets

别来无恙 提交于 2019-12-01 07:13:56
问题 I am using Gdata api to update Google spreadsheet cell. Now New Google spreadsheet has been released and it seems the gid has over 8 digits. The following is sample new sheets and the gid of sheet2 is 1794189920. https://docs.google.com/spreadsheets/d/1S6mvGGoOJa8JF6Qt6GGH5QT-X0HD4EjZhKNbihAwFuE/edit?usp=sharing I tried to convert them with the following method, but doesn't work. How to convert Google spreadsheet's worksheet string id to integer index (GID)? Thanks to anyone who can help shed

Get complete playlist listing for a YouTube User via API

醉酒当歌 提交于 2019-12-01 05:51:11
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->getPlaylistVideoFeedUrl()); foreach ($playlistVideoFeed as $videoEntry) { $playlist_assignment['youtube_id'] = substr(

Batch Update to Spreadsheet with Google GData API Using 2 Legged OAUTH / OPEN ID Domain Account

这一生的挚爱 提交于 2019-12-01 05:42:16
问题 Ok, weekend is shot on this - here is my last ditch sunday night call for help. Google Marketplace app that must use 2 Legged OAUTH aproach needs to write 50K records to a Google Doc Spreadsheet. I'm able to create, resize, rename and write records to a spreadsheet. It takes up to a minute to write 100 rows individually, so I have to use a batch update. Can't get batch update to work. The below code is my best attempt - I keep getting "Token invalid - Invalid token 401". All of the sample

Using YouTube Data Api in Android

隐身守侯 提交于 2019-12-01 00:44:43
Am trying to use YouTube Data Api in my android app. When i try to run it as a java project, it runs fine without any errors. But when i try to do the same thing in my android application , the application force closes. Here is the output from logcat and my code. OUTPUT FROM LOGCAT 01-05 00:13:17.198: E/AndroidRuntime(627): FATAL EXCEPTION: main 01-05 00:13:17.198: E/AndroidRuntime(627): java.lang.ExceptionInInitializerError 01-05 00:13:17.198: E/AndroidRuntime(627): at com.example.allinonedata.YouTubeManager.retrieveVideos(YouTubeManager.java:29) ... 01-05 00:13:17.198: E/AndroidRuntime(627):

How do I authenticate a Google user on the iPhone using GData?

北慕城南 提交于 2019-12-01 00:33:06
I am new in iphone application. I want to make a simple application in which User can login from google and facebook. I have integrate API's for both of them. I have also completed the facebook connection but I dont know how to validate the Google user with its API (Gdata). Can anybody please help me for authentication of google account using iphone application.I just want to check wether user is valid google user or not that's it. Please help me for that. Thanks in advance.. Google supports OpenID , though that is typically just used by websites. There is also authentication for Google

Youtube Playlist shown in ListView

瘦欲@ 提交于 2019-11-30 21:49:26
I have a GDATA link that I want to use in my App. This link contains a playlist and I want that playlist to be displayed in a ListView . The user will then select the video he/she wants and will then be able to play it in side the app using the local Youtube App. Please point me to a tutorial that is intuitive. I know that the YouTube API page contains all the info, but I can make heads or tails of it. I hope this will give you an idea try this (just a sample) and if you have better solutions pls let me know too. package com.test.utubevdo; import java.io.BufferedReader; import java.io

How do I authenticate a Google user on the iPhone using GData?

戏子无情 提交于 2019-11-30 19:55:52
问题 I am new in iphone application. I want to make a simple application in which User can login from google and facebook. I have integrate API's for both of them. I have also completed the facebook connection but I dont know how to validate the Google user with its API (Gdata). Can anybody please help me for authentication of google account using iphone application.I just want to check wether user is valid google user or not that's it. Please help me for that. Thanks in advance.. 回答1: Google

Using YouTube Data Api in Android

为君一笑 提交于 2019-11-30 19:27:24
问题 Am trying to use YouTube Data Api in my android app. When i try to run it as a java project, it runs fine without any errors. But when i try to do the same thing in my android application , the application force closes. Here is the output from logcat and my code. OUTPUT FROM LOGCAT 01-05 00:13:17.198: E/AndroidRuntime(627): FATAL EXCEPTION: main 01-05 00:13:17.198: E/AndroidRuntime(627): java.lang.ExceptionInInitializerError 01-05 00:13:17.198: E/AndroidRuntime(627): at com.example

How do I authorize a gdata client without using the gdata oauth2 workflow?

点点圈 提交于 2019-11-30 15:55:37
I already have an access_token and refresh_token, but I can't figure out a way to create an authorized gdata client without going through the entire token generation workflow in gdata. So I got this working finally. Here's how I did it: client = gdata.contacts.client.ContactsClient() credentials = gdata.gauth.OAuth2Token(client_id = 'client_id', client_secret = 'client_secret', scope = 'https://www.google.com/m8/feeds/', user_agent = auth.user_agent, # This is from the headers sent to google when getting your access token (they don't return it) access_token = auth.access_token, refresh_token =

how to work with spreadsheets using Google Drive API on iOS

早过忘川 提交于 2019-11-30 13:56:09
问题 I'm trying to write an iPhone app that stores its database in a Google spreadsheet. I followed the DrEdit example here which uses the Drive API to read/write plain text files to Google Drive. I'm trying to modify the example app to work with spreadsheets instead. I was able to upload a csv file and ask Google to convert it. However, what I really want is to directly work with mimeType: "application/vnd.google-apps.spreadsheet". I'm very new at this and it would be extremely helpful if someone