SmugAPI Support - Invalid method

prabhaprabha Registered Users Posts: 2 Beginner grinner
POST https://secure.smugmug.com/services/api/json/1.3.0/ HTTP/1.1
Authorization: OAuth method="smugmug.auth.getRequestToken",oauth_consumer_key="xxxxx",oauth_nonce="Aw4196VMwZsS32ffk",oauth_signature="xxxxxx",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1358980173",oauth_version="1.0"
User-Agent: Test
Host: secure.smugmug.com
Content-Length: 282
Connection: Keep-Alive
Cache-Control: no-cache

APIKey=xxxxxx&method=smugmug.auth.getRequestToken&oauth_consumer_key=xxxxxx&oauth_nonce=Aw4196VMwZsS32ffk&oauth_signature=xxxxxps%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1358980173&oauth_version=1.0


Above is the request and the server responds with


HTTP/1.1 200 OK
Server: Apache
Expires: Wed, 23 Jan 2013 22:29:39 GMT
Cache-Control: private, max-age=1, must-revalidate
X-S: 27.235:15264
X-Powered-By: SmugMug-API/1.3.0
X-UA-Compatible: IE=edge
X-SmugMug-Values: 3/4 - Be different or be damned
Content-Type: application/json; charset=utf-8
Date: Wed, 23 Jan 2013 22:29:38 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Connection: Transfer-Encoding

00000034
{"stat":"fail","code":17,"message":"invalid method"}
00000000



What am I missing from the request, the method is included.

Comments

  • prabhaprabha Registered Users Posts: 2 Beginner grinner
    edited January 23, 2013
    Never mind, the request did not contain the content-type header.


    prabha wrote: »
    POST https://secure.smugmug.com/services/api/json/1.3.0/ HTTP/1.1
    Authorization: OAuth method="smugmug.auth.getRequestToken",oauth_consumer_key="xxxxx",oauth_nonce="Aw4196VMwZsS32ffk",oauth_signature="xxxxxx",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1358980173",oauth_version="1.0"
    User-Agent: Test
    Host: secure.smugmug.com
    Content-Length: 282
    Connection: Keep-Alive
    Cache-Control: no-cache

    APIKey=xxxxxx&method=smugmug.auth.getRequestToken&oauth_consumer_key=xxxxxx&oauth_nonce=Aw4196VMwZsS32ffk&oauth_signature=xxxxxps%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1358980173&oauth_version=1.0


    Above is the request and the server responds with


    HTTP/1.1 200 OK
    Server: Apache
    Expires: Wed, 23 Jan 2013 22:29:39 GMT
    Cache-Control: private, max-age=1, must-revalidate
    X-S: 27.235:15264
    X-Powered-By: SmugMug-API/1.3.0
    X-UA-Compatible: IE=edge
    X-SmugMug-Values: 3/4 - Be different or be damned
    Content-Type: application/json; charset=utf-8
    Date: Wed, 23 Jan 2013 22:29:38 GMT
    Transfer-Encoding: chunked
    Connection: keep-alive
    Connection: Transfer-Encoding

    00000034
    {"stat":"fail","code":17,"message":"invalid method"}
    00000000



    What am I missing from the request, the method is included.
Sign In or Register to comment.