Every API request must be authenticated. You will need the following parameters:
Field name | Data type | Field value |
---|---|---|
login | String | login of the user authenticated in the API |
password | String | user password |
do-login | Integer | 1 |
no-session | Integer | 1 |
Example:
$.ajax({
method:"POST",
url:"https://demo2.easymerch.ru/api/echo/",
data:{
"login" :"admin",
"password" :"password",
"do-login" :1,
"no-session" :1,
},
success:function(ret) { console.log(ret); }
});
Результат:
{
"ok":1
}