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.
Posts: 3474
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...
Posts: 93
check out:
[url]http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/gallery/gallery_remote/gal_remote_proto-1.html?rev=HEAD&content-type=text/html[/url] for gallery_remote.php.
[url]http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/gallery/gallery_remote/gal_remote_proto-2.html?rev=HEAD&content-type=text/html[/url] for gallery_remote2.php.
I'm guessing this would give the info you are looking for.
joel
Posts: 15
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.
Posts: 1479
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.
Posts: 15
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
The error I am getting is
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?
Posts: 1479
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