"invalid API key" on rest api calls
auser
Registered Users Posts: 2 Beginner grinner
This is my first time trying to use the API.
I login with https://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.login.withPassword&APIKey=...&EmailAddress=...&Password=...
and get a response with stat="ok" and a session id.
Then I try: https://api.smugmug.com/services/api/rest/1.2.2/?SessionID=...&method=smugmug.categories.get
and I get <rsp stat="fail"><method>smugmug.categories.get</method><err code="18" msg="invalid API key"/></rsp>
I tried a few different methods, always with the same result. What's wrong?
I login with https://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.login.withPassword&APIKey=...&EmailAddress=...&Password=...
and get a response with stat="ok" and a session id.
Then I try: https://api.smugmug.com/services/api/rest/1.2.2/?SessionID=...&method=smugmug.categories.get
and I get <rsp stat="fail"><method>smugmug.categories.get</method><err code="18" msg="invalid API key"/></rsp>
I tried a few different methods, always with the same result. What's wrong?
0
Comments
This is all I needed to do in perl to enable cookies: