Closed msbt closed 6 years ago
Hi @msbt. It's been a very long time indeed :smile:
In order to support private galleries, the functions pwm_curl_get
, pwm_curl_post
might need to accept optional arguments for authentication. Either that or a session cookie, retrieved by some other means, must be passed during requests to Piwigo API.
At the moment I don't have the time do look at this but you're more than welcome to fork and pull request :smile: I'll do my best to test and review it
Hey @joaoubaldo, thanks for getting back to me, I've found another solution which does somewhat work, cheers!
Hi there! I'm trying to use piwigo as an external image source for a blog to save space on the main server, This already works great, but I would also like to "hide" the albums on the second server, I can't have people snooping around in the whole image database. When using piwigos web api to show an image of a private album, you get
<rsp stat="fail"><err code="401" msg="Access denied"/></rsp>
But when you invoke a pwg.session.login with username/password first, which results in
<rsp stat="ok">1</rsp>
you get all the image information. Any chance you could give me some pointers where or how to invoke that session.login and grab even private albums, that would be much appreciated. I've tried to implement that by myself, but it never shows any images.I know it's been a long time, but maybe you could take a look at that.
Best regards, M