Hello! We are noticing an issue from one of our servers that is blocking API requests we make to OnePage.
Here is an example request we make to refresh the token. We get back a false
response from your service, but only from one server it fails to return anything. (I've removed the client ID and secret in the example below.)
Is there any sort of IP whitelisting that OnePage uses to restrict API requests from certain IP's? We believe our server is being blocked for some reason.
curl_setopt($ch, CURLOPT_URL, 'https://app.onepagecrm.com/api/v3/oauth/refresh_token');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('refresh_token' => '83cfcf7d-9fef-49b6-9329-4b98c729154d', 'client_id' => 'CLIENT_ID', 'client_secret' => 'CLIENT_SECRET', 'grant_type' => 'refresh_token'));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(0 => 'Expect:'));
$rval = curl_exec($ch);
curl_close($ch);
var_export($rval);
-
Created
27 Jul 2016
-
Last post
28 Jul 2016
-
3
Posts
-
1.7K
Views
-
2
Users
-
1
Links