Mahbubur Rahman

Can I call SugarAPI form same domain?

Discussion created by Mahbubur Rahman on Jun 7, 2016
Latest reply on Jun 7, 2016 by Angel Magana

If I call the SugarAPI form same domain

Like as https://www.mywebsite.com/test.php file using

$base_url = "https://www.mywebsite.com/rest/v10"; in my code, I am not getting "access_token"

 

Note: I was following the link http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.5/API/Web_Services/Examples/v10/search_GET/

 

The steps I've followed:

1. Changed $base_url = "https://www.mywebsite.com/rest/v10"; in the code of "test.php" file

2. Changed the username and password in the code of "test.php" file as I have

3. Uploaded the "test.php" file to https://www.mywebsite.com

4. Then browsed https://www.mywebsite.com/test.php

 

I am not getting response in the tab of Developer tools > Network > Preview.

I appreciate your answer.

Outcomes