invalid method error received when I use REST Api
sujit1779
Registered Users Posts: 46 Big grins
Hi,
I am not able to retrieve any info using REST API.
I have permission the following permission "FULL" and "ADD"
Whats wrong with the below URL?
http://api.smugmug.com/services/api/json/1.3.0/?method=smugmug.users.getTree?oauth_consumer_key=<MY_CONSUMER_KEY>&oauth_nonce=5809172&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1324455547&oauth_token=<MY_ACCESS_TOKEN>&oauth_signature=NgXeNVbh+BuC1yjb6PrItMVQNtQ=
error I receive is
{"stat":"fail","method":"smugmug.users.getTree?oauth_consumer_key=<MY_CONSUMER_KEY>","code":17,"message":"invalid method"}
can anyone help me on this?
Thanks.
I am not able to retrieve any info using REST API.
I have permission the following permission "FULL" and "ADD"
Whats wrong with the below URL?
http://api.smugmug.com/services/api/json/1.3.0/?method=smugmug.users.getTree?oauth_consumer_key=<MY_CONSUMER_KEY>&oauth_nonce=5809172&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1324455547&oauth_token=<MY_ACCESS_TOKEN>&oauth_signature=NgXeNVbh+BuC1yjb6PrItMVQNtQ=
error I receive is
{"stat":"fail","method":"smugmug.users.getTree?oauth_consumer_key=<MY_CONSUMER_KEY>","code":17,"message":"invalid method"}
can anyone help me on this?
Thanks.
0
Comments
You have a ? where there should be a & (see red):
....1.3.0/?method=smugmug.users.getTree?oauth_consumer_key=<MY_CONSUMER_KEY>.......
Thanks David :-)