Announcement

#1 2017-10-29 08:32:10

hjg
Member
2017-10-29
3

API: Get non-public images

Hello,

the API call pwg.categories.getImages allows to insert (random) images into arbitrary websites. This works fine for me, but - as far as I see - only if the images are publicly accessible.

What do I have to do for this scenario: I want to decorate a choir website with 3 or 4 randomly changing images from our Piwigo photo gallery, but I do not want to give access for everybody to all of the thousands images in one go. In Piwigo I therefore set the access right to the images to "private" and allow only a certain technical user.

pwg.session.login and pwg.session.getStatus create a pwg_token, but how can I use this in pwg.categories.getImages?

Piwigo version: 2.9.2
PHP version: 5.5.9-1ubuntu4.22
MySQL version: 5.5.58-0ubuntu0.14.04.1

Thank you very much for the work you have already spent for Piwigo and for the work you will spend in future!
Till

Offline

 

#2 2017-11-10 19:28:44

hjg
Member
2017-10-29
3

Re: API: Get non-public images

Hello again,

no answers ...? Does this mean there is no way to get the private images? Or does it mean somebody is thinking? Or does it mean I should give more information?

Best regards,
Till

Offline

 

#3 2018-05-23 10:04:23

anni194
Member
2018-05-23
1

Re: API: Get non-public images

Hello,

I have the same problem as you described... Did you find a solution for this in the meantime?

Best regards!

Offline

 

#4 2018-05-23 19:02:37

hjg
Member
2017-10-29
3

Re: API: Get non-public images

Hello anni194,

unfortunately I do not have a solution, but I am still interested.

Regards,
Till

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact