google-data-api

Twitter oauth problem with frindship/create in api

放肆的年华 提交于 2020-01-06 06:49:08
问题 I am using Google Data API sample touch application, which is available at code.google.... I am having a problem can any one help. Please tell me if I am doing some thing wrong. The user who has loged in has to follow some person XYZ (just using XYZ for security purpose). I am using the URL urlStr = @"http://api.twitter.com/1/friendships/create/XYZ.xml"; NSURL *url = [NSURL URLWithString:urlStr]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; //made post as requested

Google Analytics API: filter by URI?

瘦欲@ 提交于 2019-12-31 08:45:24
问题 My site has user profiles that are accessible via URLs that look like this: www.domain.com/profile/123/... . I want to show users page view statistics of their profiles, but need to be able to do wildcards. For example, this works: filters=ga:pagePath==/profile/123/ The problem is that there are potentially other URI segments that follow /profile/123/ . I want to do something like this (does not work): filters=ga:pagePath==/profile/123/* Suggestions? 回答1: Use the 'Contains a match for the

Google translator toolkit API - google-api-java-client Client login 403 Forbidden

浪子不回头ぞ 提交于 2019-12-25 16:08:46
问题 I just implemented Google translator toolkit API using google-api-java-client library. The problem is, that I can authenticate using clientLogin with the old "gdata" client library, but I can't manage to do that with google-api-java-client. It's quite straightforward, but I'm still getting 403 forbidden response. The requests (old / new) are almost the same, but only the auth tokens differ. Google just sends me a token that I cannot authenticate with... Please anybody help, I spent an hour

Change acl of pdf and non-google documents (EDU domain)

依然范特西╮ 提交于 2019-12-25 06:01:18
问题 I'm receiving this error when trying to change file ownership from Google Apps Script (Google Apps for Education): GData ServiceException You can't yet change the owner of this item. (We're working on it.) The same code works on a Google Apps for Business domain. Is there a limitation for EDU domains? 回答1: Ok, found the answer in the Google Drive support pages: Only Google Apps customers in Premier and Government domains can transfer ownership of a synced or uploaded file (such as a PDF or

Reading a document's content from the gdata API?

走远了吗. 提交于 2019-12-24 19:46:45
问题 I'm using the java library to access the gdata api. I just want to be able to print the contents of a document. I setup my project to list all the docs in my feed, now that I have a document listing, I want to print its contents: for (DocumentListEntry entry : feed.getEntries()) { // Ok, how do we print the doc's contents now? entry.getContents(); } It looks like we're supposed to get the URL from the entry, then read the contents at the URL ourselves. I found a post stating that this is how

OAuthGetRequestToken:signature_invalid error

倾然丶 夕夏残阳落幕 提交于 2019-12-24 07:38:17
问题 I try to use google data api and met difficulty at OAuthGetRequestToken. I follow the instruction: requestToken I use GET and add query parameters after the url. I create the base string for signature in this way: GET&request url &query parameters(without oauth_signature) ordered by alphabetically As I use HMAC-SHA1, I use the "consumer secret" value to create the signature. Finally, I use the url+query parameters, and the browser always returns : signature_invalid base_string:GET&https%3A%2*

Google Data Api library for Blackberry

耗尽温柔 提交于 2019-12-24 07:27:21
问题 I want to get google contacts in my Blackberry Application. Is there any public libraries availabile for blackberry to do this? I try to use Oauth-SignPost. But the libraies used in it not supported by blackberry.Then I try the following code public static String requestToken(){ String url = C.REQUEST_URL; String header = oauth_header(url, HttpProtocolConstants.HTTP_METHOD_GET); String requestTokenUrl = concatURL(url, header); HttpConnection httpConn = null; InputStream input = null; try{

AUTH_TOKEN_TYPE for Google API's

Deadly 提交于 2019-12-21 21:29:48
问题 Okay, so I know how to get a list of accounts so that I can let the user authenticate my app to use with their Google Data, however, I am confused on what to use for my AUTH_TOKEN_TYPE . Here is the current code that I have: AccountManager.get(this).getAuthTokenByFeatures("com.google", AUTH_TOKEN_TYPE, null, this, null,null) I don't know where to find the AUTH_TOKEN_TYPE for the Picasa API that I want to use (along with all the other Google API's). Any help? 回答1: AUTH_TOKEN_TYPE is the OAuth

How to get consumer key and and consumer secret for gmail api?

这一生的挚爱 提交于 2019-12-20 10:27:09
问题 I am trying to use Gmail php xoath php samples, however it requires to enter consumer key and consumer secret which I could not find how to obtain in Gmail api documentation. Does any one know how to obtain them or know of any related documentation? 回答1: Use anonymous / anonymous and HMAC-SHA1 signature for applications that are not registered with Google. For applications registered with Google, you should use the application domain as consumer key and the consumer secret depends on the

How to upload Video to youtube using Google.Apis.YouTube.v3 and C#?

落爺英雄遲暮 提交于 2019-12-18 14:48:28
问题 I have created console application using C# . Which will upload Video from local drive to youtube . I have created new app in google api using this link. I have also installed all required packages using nuget . When I run my application I am getting error as " Access Denied " I am not able to find the issue. I am getting error in Task Run() method. using System; using System.IO; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Google.Apis.Auth.OAuth2;