Topic: How to manage Call to API From within FA
I am trying to use API in a project where API call is from within FA for the currently logged in user and company.
In this case how the session will be handled in the current FA API plugin.
Session Handling
I don't want to create a new session. Instead want to use the same session.
API Call
I created a test page and called the absolute url using file_get_contents as below and I got response.
$result = file_get_contents('https://pakerp.net/modules/api-bx/category');
But I am not sure what is the right way to call API using relative path within FA.