Authentication‎ > ‎

bluemelon.login.withHash

returns a token for the user specified by his credentials, username and password ; the password is encrypted with SHA1 (this method is available only through SSL) 

Authentication:

No

Arguments:

(required) string : login - the login to the application
(required) string : password - the user's password
(required) string : publickey - the public key of an application

Request Example:

https://www.bluemelon.com/api/rest-ssl/{api_sign}/
?method=bluemelon.login.withhash&login=jonik&password=7c7eee3b564b16e4980ba3053ff2cc75e5eb035a&publickey={publickey}

Response Example:

<rsp status="ok" onrequest="bluemelon.login.withhash">
<logininfo>
<accesstoken token ="2ED535AFAA963A58FD0050E27319D67">
</logininfo>
</rsp>

Error Codes:

4 - "Missing parameter"
5 - "Invalid parameter"
13 - "Invalid login or password"
17 - "Invalid call signature size"
18 - "Invalid call signature"
19 - "You must use https"
20 - "Missing api_sign"
603 - "Account recently expired or deleted"

Comments