API входа для Magento 2.2.4

Я ищу Логин APi в Magento 2.2.4

Перейдите по ссылке ниже API https://devdocs.magento.com/swagger/index_20.html

$headers = array("Authorization: Bearer $token"); 

$requestUrl='http://127.0.0.1/magento/index.php/rest/V1/customers';

$ch = curl_init();
$ch = curl_init($requestUrl); 
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);   

$result = curl_exec($ch);
$result =  json_decode($result);
var_dump($result);

но я получаю маршрут не найден

object(stdClass)#1 (2) { ["message"]=> string(33) "Request does not match any route." ["trace"]=> NULL }

0 ответов

Другие вопросы по тегам