Invalid signature error using smugmug.subcategories.create
Prerana
Registered Users Posts: 7 Beginner grinner
Hello All,
I am trying to create subcategory inside "Others" Category of SmugMug using API 1.3.0. Its throwing me "Invalid Signature" error. I am using the same method of signing for other request which gets executed successfully. Now I am unable to figure it out where I am going wrong!:dunno
This is my request url
Here is my actual api call along with signature :-
This is error what I get after executing it :-
I am completely at my wits end on this issue and unable to track it down. My app production has hit a roadblock because of it:cry
Any help or pointers will be great. Thanks a ton in advance!
-Prerana
I am trying to create subcategory inside "Others" Category of SmugMug using API 1.3.0. Its throwing me "Invalid Signature" error. I am using the same method of signing for other request which gets executed successfully. Now I am unable to figure it out where I am going wrong!:dunno
This is my request url
Here is my Base String :-
GET&https%3A%2F%2Fapi.smugmug.com%2Fservices%2Fapi%2Frest%2F1.3.0%2F&CategoryID%3D45663115%26method%3Dsmugmug.subcategories.create%26Name%3Dprerana%26oauth_consumer_key%3D1WcKTxQH2fegQTF0C7cVAORjeoTSD68V%26oauth_nonce%3D2379299%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1415859474%26oauth_token%3Dc5c2612d398c0c26c443c2aa53733b08%26oauth_version%3D1.0
Here is my actual api call along with signature :-
This is error what I get after executing it :-
<?xml version="1.0" encoding="utf-8"?>
<rsp stat="fail"><method>smugmug.subcategories.create</method><err code="35" msg="invalid signature"/></rsp>
I am completely at my wits end on this issue and unable to track it down. My app production has hit a roadblock because of it:cry
Any help or pointers will be great. Thanks a ton in advance!
-Prerana
0
Comments
Section 3.4.1.3.2 of RFC 5849 says "The parameters are sorted by name, using ascending byte value ordering." All uppercase letters have lower byte values than the lowercase letters, which means that the Name parameter should come before the method parameter.
Sorcerer and API Guy at SmugMug
Thanks a ton for your response. Yes that is the root of the issue. But now the biggest issue is I am using the same library(OAuthBase) for generating signatures and signing requests for remaining SmugMug calls for example "Creating Gallery" and it is getting executed correctly and fetching the results too! Here is my request url,normalised parameter and base string for Creating Gallery and its getting executed successfully :-
Now I am going completely crazy wondering why such behaviour only with this Api call (smugmug.subcategories.create) and not with others!! Do you think it might have got to do something with sequence in which I am passing parameters in request url ? I tried permutation and combination there too but no luck
Any update on this? Can any one who have successfully used this api call (smugmug.subcategories.create) post a code snippet for my reference? I have been trying to fix this since 3 days now but no result All the remaining api calls get sorted correctly except this!!.. Any any help will be highly appreciated!! Thanks a ton in advance.
Sorcerer and API Guy at SmugMug