I have installed SuiteCRM recently and I have some issues with generating a token when using OAuth.
Also, the rest.php page is shown in browser as plain text. I have installed this on a shared hosting and on a local server (win server 2012) same issue on both.
Any ideas what could be the reason for this or if there are any particular settings that I missed.
Hi,
This is intentional, the rest.php page will show the docs of the class, you definitely shouldn’t be seeing any actual code but you should see something like the following:
/**
* SugarWebServiceImplv4_1.php
*
* This class is an implementation class for all the web services. Version 4_1 adds limit/off support to the
* get_relationships function. We also added the sync_get_modified_relationships function call from version
* one to facilitate querying for related meetings/calls contacts/users records.
*
*/
Class [ class SugarWebServiceImplv4_1 extends SugarWebServiceImplv4 ] {
- Constants [0] {
}
- Static properties [1] {
Property [ public static $helperObject ]
}
The oauth part of the API is not something that I’ve used. To track down any issues I’d recommend turning on debug logging in system settings and trying the call. Checking the CRM log should hopefully give some clue as to what’s going on. In particular there should be a debug log line that starts with “OAUTH”.