CPG Remote Access API V 0.3 CPG Remote Access API V 0.3
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CPG Remote Access API V 0.3

Started by Aditya Mooley, April 19, 2005, 08:24:37 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Aditya Mooley

To satisfy the demand of desktop client writers we have hacked a Remote Access API for Coppermine 1.4.x which is very loosely modeled on the Flickr API (in terms of responses etc).

Currently only two methods have been implemented to
#1 Upload a picture
#2 Get Category and Album list with IDs

A PHP client is provided as an example for the devs BUT it is expected that we will soon see desktop clients which can post to pictures directly to your Coppermine install

Read the README to get started :)

[Edit]
We have released a new version with some minor bug fixes.
[/Edit]

[Edit April 20, 2006]
Version 0.4
There was a bug in the debugging module of API. It is now fixed in this version.
[/Edit]

[Edit April 18, 2006]
More changes: Version 0.3
* Allows normal users to upload photos. Reads the User Galleries properly while listing the categories and albums.
* User uploads respects the quotas allocated to them.
[/Edit]
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

willdenniss

Thanks for adding this feature, I can see how it works and it is certainly possible to utilise this in Gallery Mage.

Before I commit the time to adding this feature, are there plans to add information about these tools in the Coppermine documentation?  I'm willing to author some text if that is all that's needed.  I ask because currently there are few Gallery Mage users who are using Coppermine.  Adding this feature will make Gallery Mage much more useful to Coppermine users than it currently is, but unless Coppermine users know about the existance of the tool, there is little point in me improving it for them.

Cheers,

Will.
Gallery Mage - Photo gallery processing tool

Aditya Mooley

This is an add-on atleast for CPG 1.4.x but if you author a few paragraph we will add it in the documentation as appropriate.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

Tarique Sani

and like we have said in the README your code will me more or less future proof even for later version - So you can code and be free of worries :)
SANIsoft PHP applications for E Biz

willdenniss

ok, sounds good.

I've found an API that should make the task of submitting data via post fairly easy.  It's then just a matter getting a list of galleries so the user can pick which one to upload to.

I'll put this on my TODO list.  If there are people now who want this support, make sure you let me know and I'll bump it up the list.

Thanks,

Will.
Gallery Mage - Photo gallery processing tool

Tarique Sani

Most people do not know what Gallery mage will do for their Coppermine when used in addition with the new API... Seems like a chicken and egg situation.

Some of the uses of new API can be

#1 Desktop Upload Client (obvious)
#2 Replicate and keep in Sync a Coppermine Installation with your desktop archieve (the Categories can Albums can be folders in the local system)
#3 Create funky screen savers showing latest pictures from a Coppermine install.
#4 Create Flash based frontends...
#5 Create all kinds of remote access Kool stuff - eg: cpmFetch based on a single API - this frees the application developer from maintaining / writing the access libraries
SANIsoft PHP applications for E Biz

sigepjedi

have any updates been made to this, or the available methods"?

Tarique Sani

Interest has been very low on this one, hence no further work was done - what methods would you like to see?
SANIsoft PHP applications for E Biz

r_f_o_t

Hello,

Silly question. Where does the API get installed? There is no README in the tarball.

Thanks

Chuck

r_f_o_t

OK, after some trial and error, figured it out. Just install it someplace in cpg directory, then point koppemine to that directory.

Chuck

eric.com.my

Quote from: r_f_o_t on April 24, 2006, 02:44:08 AM
OK, after some trial and error, figured it out. Just install it someplace in cpg directory, then point koppemine to that directory.

Chuck

May I know how can I do that?

Thank you.

Aditya Mooley

Download the tarball from the first post, untar in your Coppermine's root directory.
Now, in Koppermine's Host URL use this format -> http://mydomain.com/cpgIntallation/api/index.php
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

ve.ru

Is there an ongoing development on this feature? I am just interested if it is possible to create a new album via this API.

jonplqs

Quote from: Aditya Mooley on May 16, 2006, 07:14:27 AM
Download the tarball from the first post, untar in your Coppermine's root directory.
Now, in Koppermine's Host URL use this format -> http://mydomain.com/cpgIntallation/api/index.php

Hi when i try to install I got this error. 

<?xml version="1.0" encoding="utf-8" ?>
- <cpg>
  <status>fail</status>
  <error>100</error>
  <verbose>Invalid function name passed</verbose>
  </cpg>

Thanks

Aditya Mooley

Quote from: ve.ru on June 08, 2006, 10:14:56 PM
Is there an ongoing development on this feature? I am just interested if it is possible to create a new album via this API.
Currently it is not possible to create new albums via API. But we are considering this option and you may see it in next release.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

Aditya Mooley

@jonplqs
Are you trying to access the API through your browser? API's cannnot be accessed directly. You need API client like Koppermine which allows you to upload/rotate/resize your image directly from your desktop.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

jonplqs


pax

Quote from: Aditya Mooley on July 25, 2006, 07:01:16 AM
Currently it is not possible to create new albums via API. But we are considering this option and you may see it in next release.

I'll add my vote to that suggestion :)

gmichels

I really don't know what's wrong, but I can't have Koppermine working. My settings and the error after trying to refresh the album list.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fi16.tinypic.com%2F2uygd3s.png&hash=d67d87590b082a31289e0958f292eb57bcb4a5f3)

I'm using Coppermine 1.4.9. Any ideas?

Thanks!

Aditya Mooley

Please post all the Koppermine related problems on Koppermine's support forum sf.net
Also provide more details like which KDE version are you using and flavor of Linux.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter