sst89 / as3flickrlib

Automatically exported from code.google.com/p/as3flickrlib
0 stars 0 forks source link

Bug with addPhotos and remotePhotos #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I think that I found a little bug with the
com.adobe.webapis.flickr.methodgroups.PhotoSets.addPhotos and removePhotos
methods.  Flickr needs you to pass on the auth_token in your call.

If you add a "token" string parameter and then pass along the nameValuePair
of auth_token, it works beautifully.

com.adobe.webapis.flickr.methodgroups.PhotoSets Line 272

        public function addPhoto( photoset_id:String, photo_id:String,
token:String ):void {
            // Let the Helper do the work to invoke the method           
            MethodGroupHelper.invokeMethod( _service, addPhoto_result,
                                   "flickr.photosets.addPhoto",
                                   true,
                                   new NameValuePair( "photoset_id",
photoset_id ),
                                   new NameValuePair( "photo_id", photo_id ),
                                   new NameValuePair( "auth_token", token ) )
        }

Original issue reported on code.google.com by darron.schall on 13 Dec 2006 at 9:35