Gallery Remote API documentaion

kbeen

Joined: 2003-04-23
Posts: 15
Posted: Tue, 2003-06-03 03:52

Hi I'm trying to connect to gallery via a perl script, using LWP to automate the upload.
I have searched all over but can't find any instructions on how to use gallery_remote.php API.

Where is there a list of parameters that it takes? and should I just be sending them via a regular POST query? Or should it be some xml

<params>
       <param><value><string>password</string></value></param>
       <param><value><string>username</string></value></param>
       <param><value><string>galleryid</string></value></param>
       <param><value><string>imagename</string></value></param>
       <param><value><boolean>1</boolean></value></param> 
   </params>

etc...?

Any help or direction to a current post about this would be appreciated.
Kbeen.

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Tue, 2003-06-03 08:22

I'm going to move this to the Gallery Remote forum, since most of us in this forum don't know much about the innards of Gallery Remote...

 
joel558
joel558's picture

Joined: 2003-04-10
Posts: 93
Posted: Wed, 2003-06-04 06:33
 
kbeen

Joined: 2003-04-23
Posts: 15
Posted: Thu, 2003-06-05 03:08

Thanks! Those links above are exactly what I was looking for!!

If anyone is interested, I'm adding Gallery support to Mfop, a service that allows you to post images to blogs (and soon Gallery) via mobile phone.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2003-06-05 08:10

Hey, that sounds great. I should create a new page in the Wiki that lists all the applications that can be used to upload to Gallery, besides Gallery Remote.

I'll personally be interested in using Mfop to post from mobile phones that have a built-in camera.

 
kbeen

Joined: 2003-04-23
Posts: 15
Posted: Sun, 2003-06-22 08:30

Hi.

I have added the Gallery support to Mfop some time ago, and it works great with the latest Galleryu release, however, I have a user who is using an older version of Gallery (reluctant to upgrade because of all the work he put into customizing his) and it doesnt work with his gallery_remote2.php

The request I send is

[ "cmd" => 'add-item',
 "protocol_version" => '2.0',
"set_albumName" => "kevin",
"force_filename" => '1',
"caption" => "",
"userfile"   => ["/tmp/octolefton.jpg", "octolefton.jpg"],

The error I am getting is

#__GR2PROTO__
status=301
status_text=Command 'add-item' unknown.

However, he sent me his gallery_remote2.php file, and there is an add-item command in there of course.

Any ideas? Is there still some way to do this using gallery remote without upgrading his gallery?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2003-06-26 10:41

I've added a link to Mfop from the Gallery Wiki.

Congratulations on a really great product. And all with no help from us whatsoever...

http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Other%20methods