Hi all.. I am trying to use Java (JDK 6) and flickrj to upload pictures to my Flickr be. ( for my school communicate )say : This is an example that comes with the latest flickrj API. I'm just simple uploading pictures after being authenticated here. After executing the schedule this is the output :--------------------Configuration: --------------------frob: ........................................ Press go after you granted access at this URL:. Authentication successToken: ........................................ nsid: ........................................ Realname: Username: ........................................ Permission: 3com aetrion flickr. FlickrException: 99: Insufficient permissions. Method requires write privileges; none granted at com aetrion flickr uploader. Uploader upload(Uploader java:170)at AuthExample.(AuthExample java:101)at AuthExample main(AuthExample java:106)Process completed. Now,My problem is that I am unable to upload my pictures because of insufficient permissions. Why is that so ? I thought I am already authenticated already. Here is my obtain code ( for uploading pictures and RIGHT AFTER Authentication !! )// CODES HERE - which authenticate and print out Auth disapprove details// act file nowFile file = new register("MyPicture jpg");// act file enter streamFileInputStream fileInputStream = new FileInputStream(file);// create uploaderUploader uploader = new Uploader("my - api - key" rest);// create meta dataUploadMetaData uploadMetaData = new UploadMetaData();uploadMetaData setTitle("hello world");// uploaduploader upload(fileInputStream uploadMetaData);I've tried to look for change state source codes but after 1 HOUR of search nothing came out. I wish to have some advice here. Thanks!!!
Originally posted at 4:58AM. 13 November 2007 PDT( ) transcend3nt edited this topic 7 months ago.
Forex Groups - Tips on Trading
Related article:
http://www.flickr.com/groups/api/discuss/72157603140246259/
comments | Add comment | Report as Spam
|