-
-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hello,
I am using the library to connect my club's Drupal website to Smugmug. I have it working for uploading images and for getting the image count of a gallery. I seem to be stuck on viewing an image, though.
When I try to access an image via its key, I get:
Client error: GET https://api.smugmug.com/api/v2/image/WprRLwK?_verbosity=1
resulted in a 401 Unauthorized
response:
{"Code":401,"Message":"oauth_problem=nonce_used"}
It's a public image so you can put that URL into a browser and see that it exists and retrieves the information just fine without oauth. I don't know a lot about oauth. From what little I could get out of Google, it sounds like some token is being sent more than once? But the tokens always stay the same so what I'm finding isn't making any sense to me.
$this->client->get("/api/v2/album/$key"); works but $this->client->get("/api/v2/image/$key"); gets me the nonce_used error.
I'd appreciate any help. I tried posting in the Smugmug forum but haven't gotten any response. Hoping you can help me as I'm totally stuck at this point.
Thanks,
Michelle