smugpy
smugpy copied to clipboard
"invalid API key" with api_version="1.2.2" and secure=True
This
smug = SmugMug(api_key=API_KEY, api_version="1.2.2", secure=True, app_name=APP_NAME)
smug.login_withPassword(APIKey=API_KEY, EmailAddress=USER, Password=PASSWORD)
albums = smug.albums_get()
always give the following error:
smugpy.SmugMugException: SmugMug API Error for method smugmug.albums.get: (18) invalid API key
If you create the SmugMug object with secure=False it works fine.
I am able to recreate the issue as you reported it. I can confirm when I manually run these methods outside of this library that this same behavior does not occur. I will have to dig into this one a little more.
Did this issue get resolved? or is there a work around?
To clarify I'm only asking since te as of Oct 15 they're forcing secure urls. I've attempted to switch the secure flag but I'm running into this same issue.