Hi,
I have installed 7.10.10 SuiteCRM.
I’m trying to connect to API,
but I still receive (from POST call and also from browser)
HTTP/1.1 404 Not Found
when I call my https://MYCRMDOMAIN/api/oauth/access_token
I’ve read all the documentation and a lot of forum thread,
my htaccess seems ok, I’ve tried also to rebuild it.
I’ve meet all requirements specified in api documentation.
Also using php with example provided in documentation:
$ch = curl_init();
$header = array(
'Content-type: application/vnd.api+json',
'Accept: application/vnd.api+json',`
);
$postStr = json_encode(array(
'grant_type' => 'password',
'client_id' => '3D7f3fda97-d8e2-b9ad-eb89-5a2fe9b07650',
'client_secret' => 'client_secret',
'username' => 'admin',
'password' => 'admin',
'scope' => 'standard:create standard:read standard:update standard:delete standard:delete standard:relationship:create standard:relationship:read standard:relationship:update standard:relationship:delete'
));
$url = 'https://path-to-instance/api/oauth/access_token';
curl_setopt($ch, CURLOPT_URL, url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, $postStr);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$output = curl_exec($ch);
Returns 404 not found
Any suggestion of the cause?