<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to manage Call to API From within FA]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9293&amp;type=atom" />
	<updated>2021-07-23T07:24:44Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9293</id>
		<entry>
			<title type="html"><![CDATA[Re: How to manage Call to API From within FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39747#p39747" />
			<content type="html"><![CDATA[<p>I am&nbsp; not sure which one are you looking. Inside FA&nbsp; there is no need of api session.&nbsp; And also api is module which recreates session to avoid unnecessary risks from calls.&nbsp; But you can create session and set ttl&nbsp; for it and reuse that in api calls too.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2021-07-23T07:24:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39747#p39747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to manage Call to API From within FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39416#p39416" />
			<content type="html"><![CDATA[<p>I am trying to use API in a project where API call is from within FA for the currently logged in user and company.</p><p>In this case how the session will be handled in the current FA API plugin.</p><p><strong>Session Handling</strong><br />I don&#039;t want to create a new session. Instead want to use the same session.</p><p><strong>API Call</strong><br />I created a test page and called the absolute url using file_get_contents as below and I got response.</p><p>$result = file_get_contents(&#039;https://pakerp.net/modules/api-bx/category&#039;);</p><p>But I am not sure what is the right way to call API using relative path within FA.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2021-05-07T05:47:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39416#p39416</id>
		</entry>
</feed>
