English 中文(简体)
403 被禁止使用简单的Pianasa相册。
原标题:403 forbidden with simple Android Picasa album list request

我有很可怕的时间从安伯斯到皮卡。 经过数小时的研究,我最后确定, 谷歌山 API客户图书馆是我应当使用的。 几个小时后,我用“Mecurial”和“Maven”下载并建造一个sample/67/,以便我能够获得某些秘密图书馆,这些图书馆已列入

因此,在遇到很多麻烦之后,我使用抽样客户的代码,制作简便的URL,并试图为用户填写小册子:

PicasaUrl url = PicasaUrl.relativeToRoot("feed/api/user/someuser");
UserFeed userFeed = client.executeGetUserFeed(url);

如今,这造成了这样的情况:

https://picasaweb.google.com/data/feed/api/user/someuser?prettyprint=true

如果我把这一点放在我的浏览器上的话,它就会被罚款。 然而,在我的服务对象中,它给我带来了一笔403所禁止的错误。 没有,我甚至可以管理抽样客户,因为它没有给我一个APK档案。 (“扩大”源码有文件记载,如间谍网,使用折旧方法。)

在转而进行礼宾一级的伐木之后,它发现,这是向吉大港山区发出的要求:

GET https://picasaweb.google.com/data/feed/api/user/someuser?fields=author/name,entry(@gd:etag,category(@scheme,@term),gphoto:access,gphoto:numphotos,link(@href,@rel),summary,title,updated),link(@href,@rel),openSearch:totalResults&kinds=album&max-results=3&prettyprint=false
Accept-Encoding: gzip
Authorization: GoogleLogin auth=null
User-Agent: MyApp/1.0 Google-HTTP-Java-Client/1.6.0-beta (gzip)
GData-Version: 2

在Sam Hill,所有强奸都来自何处? 但你们知道什么? URL仍在我的浏览器中工作。 这必须涉及授权:主人。

在经历了更多的痛苦之后,我设法从样本中修改认证,以便通知能够出现,并使用户能够认证账目。 现在,我能够编造册。

但我仍然不理解:我如何在没有认证的情况下列出公共名称?

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签