SugarCRM 5.5.2 Rest api -- login failure -
i need able use api sugarcrm exchange information several other applications. found api docs, , articles sample code. end result of code send command:
http://localhost/sugarcrm/service/v2/rest.php?method=login&input_type=json&response_type=json&rest_data={%22user_name%22:%22rest%22,%22password%22:%2265e8800b5c6800aad896f888b2a62afc%22,%22version%22:%22.01%22}
which produces error {"name":"invalid login","number":10,"description":"login attempt failed please check username , password"}null
i have googled error , found several others issue, no solution.
for me, needed use along lines of:
method=login&input_type=json&response_type=json&rest_data=$rest_data
the rest data is:
{ user_auth => { user_name => $username, password => $pw, version => "1.2" }, application => "foo" }
(url encoded)
Comments
Post a Comment