lildude / phpSmug

:camera: phpSmug is a simple object orientated wrapper for the new SmugMug API v2, written in PHP.
https://lildude.github.io/phpSmug
MIT License
42 stars 19 forks source link

Keywords not showing up? #54

Closed riddlemd closed 6 years ago

riddlemd commented 6 years ago

I've contacted smugmug about this, but I think it could be related to using phpSmug so I figured I'd ask about it here.

This request: https://www.smugmug.com/api/v2/image!search?_shorturis=1&_verbosity=3&APIKey=gGQr6mjMgCCrSWv5q3HxMzzKbF8NjkSM&_expand=ImageSizes&_expandmethod=inline&Scope=album%2FfhvMbR&Keywords=&count=100&_accept=application%2Fjson

when performed directly from the browser returns correctly, However; when the same request is sent through phpSmug the results all have empty Keyword and KeywordArray properties.

I've debugged the phpSmug Client as best I can and it appears the raw results from the Guzzle Client are even returning results missing Keywords...

Anyone have any idea what's going on?

riddlemd commented 6 years ago

Literally right after posting this I figured it out -- it's related to permissions on smugmug. If you're logged into smugmug the api requests send different information than they do to anonymous users. Thus browser (which is logged in) is getting info the server (not logged in) is not getting.

If anyone else runs into this, hope it helps.