<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Slim REST API module for FA 2.4.x - No Composer]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7132&amp;type=atom" />
	<updated>2019-09-14T13:17:11Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7132</id>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36004#p36004" />
			<content type="html"><![CDATA[<p>@braathwaate: Good one indeed.</p><p>Make sure the <strong>/tmp</strong> folder exists and is writeable.</p><p>The <strong>$$</strong> is the PID (Process ID) of the shell which is expected to be random for that session.</p><p><a href="https://frontaccounting.com/fawiki/index.php?n=Devel.SimpleAPIModule">Wiki</a>-ed it.</p><p><a href="https://devhints.io/bash">Bash Scripting Cheatsheet</a></p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-09-14T13:17:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36004#p36004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36003#p36003" />
			<content type="html"><![CDATA[<p>Or you could just use the shell script approach to running any web page, i.e.:<br /></p><div class="codebox"><pre><code>#!/bin/bash

wget -q --save-cookies /tmp/cookies$$.txt \
     --keep-session-cookies \
     --post-data &#039;user_name_entry_field=xxx&amp;password=yyy&amp;company_login_name=1&#039; \
     --delete-after \
     https://myfawebsite/index.php

# customer detail list
wget -q --load-cookies /tmp/cookies$$.txt \
    -O - https://myfawebsite/reporting/rep103.php \
    --post-data &quot;PARAM_0=09/13/2019&amp;PARAM_1=&amp;PARAM_2=&amp;PARAM_3=&amp;PARAM_4=&amp;PARAM_5=&amp;PARAM_6=&amp;PARAM_7=0&amp;REP_ID=103&quot; &gt; /tmp/foo.pdf</code></pre></div><p>where post-data are the $_POST fields sent by the FA web page.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2019-09-14T12:05:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36003#p36003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36002#p36002" />
			<content type="html"><![CDATA[<p>1. create a script to use the API as in the wiki.<br />2. Add in code to specify the shebang line at the top for CLI execution and set the php.ini settings for FA in it.<br />3. now execute it manually to see if the recurring invoices script works.</p><p>Otherwise, just take a backup of the FA SQL and execute a manual recurring invoice and compare with the later backup of FA sql and see what changed and write a simple bash / php script to get it done and put it into the crontab of any linux server or on windows use VisualCRON or Task Scheduler.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-09-14T07:17:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36002#p36002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35997#p35997" />
			<content type="html"><![CDATA[<p>I want to modify this api module to execute Recurring Invoices automatically through a cron call. Is it workable idea? If yes then can you guide me over this?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-09-14T06:05:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35997#p35997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35995#p35995" />
			<content type="html"><![CDATA[<p>@boxygen: Thanks.<br />Done and updated the zips as well.</p><p>This change occurred when it was ported to FA 2.4 when all capitals and hyphen came into effect. In FA 2.3 it the way it was with lower and upper case and underscore as well.</p><p>For those using FA 2.3, make sure it is the way it was earlier.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-09-14T05:59:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35995#p35995</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35994#p35994" />
			<content type="html"><![CDATA[<p>@apmuthu I tested this api. </p><p>ON https://frontaccounting.com/fawiki/index.php?n=Devel.SimpleAPIModule?action=browse</p><p>fabridge.php shall have following commit</p><div class="codebox"><pre><code>$headers[] = &quot;X_company: &quot;  . COMPANY_NO;
$headers[] = &quot;X_user: &quot;     . REST_USER;
$headers[] = &quot;X_password: &quot; . REST_PWD;</code></pre></div><p>shall be changed to<br /></p><div class="codebox"><pre><code>$headers[] = &quot;X-COMPANY: &quot;  . COMPANY_NO;
$headers[] = &quot;X-USER: &quot;     . REST_USER;
$headers[] = &quot;X-PASSWORD: &quot; . REST_PWD;</code></pre></div><p>to comply it with util.php</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-09-14T05:07:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35994#p35994</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30831#p30831" />
			<content type="html"><![CDATA[<p>The <a href="https://github.com/apmuthu/FA24extensions/tree/master/Extensions/api24">latest version</a> is attached herein and complies with changes in the <a href="https://github.com/FrontAccountingERP/FA/commit/4a37a28c49bf900dcc370fd3f21186cedcd632c9">2017-12-19 core commit</a> for VARLOG_PATH and VARLIB_PATH (the latter is exclusively used herein as per relevant core inclusions).</p><p><a href="https://github.com/apmuthu/FA24extensions/blob/master/Extensions/api24/FA_SlimAPI_CHANGELOG">CHANGELOG</a></p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-02-18T14:29:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30831#p30831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30822#p30822" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I had a closer look and will first try the transactions module in combination with Chromispos.<br />This module is new to me and looks very good, thanks apmuthu!</p><p>Kind regards,<br />Jan</p>]]></content>
			<author>
				<name><![CDATA[janvl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17053</uri>
			</author>
			<updated>2018-02-16T22:57:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30822#p30822</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30739#p30739" />
			<content type="html"><![CDATA[<p>Start a project on GitHub and get others to fork and contribute.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-02-06T18:59:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30739#p30739</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30737#p30737" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I know Unicenta/Chromis very well and the MySQL-DB is well described. I know exactly where transactions are stored and what records get changed. I might be of help there.<br />I have been looking for a way to connect the two for years now and am in contact with Talend, that however seems an enormous overkill.</p><p>A fairly simple POS is &quot;OS POS&quot; or &quot;pos_on&quot; which is all PHP/MySQL.</p><p>Where do I start when I want to contribute in integrating a pos-solution?</p><p>Regards,<br />Jan</p>]]></content>
			<author>
				<name><![CDATA[janvl]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17053</uri>
			</author>
			<updated>2018-02-06T12:38:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30737#p30737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30300#p30300" />
			<content type="html"><![CDATA[<p>The Unicenta/OpenBravo POS is a compiled application for Windows/Linux/MacOS etc and is currently at v4.1. The <a href="https://sourceforge.net/projects/unicentaopos/files/database/unicentaopos-database.zip/download">database is at v3.91.3</a> and uses the <a href="https://db.apache.org/derby/">Apache Derby DB</a> by default. It can be configured to use MySQL database among others, but no public MySQL schema for it is commonly available. Make a set of unitary transactions in Unicenta POS and at each execution list the database changes that have occurred with respect to the actual transactions done that you want to port to FA. Then use and possibly extend the SlimREST API for FA as desired.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-12-27T11:51:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30300#p30300</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30287#p30287" />
			<content type="html"><![CDATA[<p>I see this is great API, I want to start to work on Unicenta POS integration. There are many posts regarding to Unicenta but there are not fully functional one.&nbsp; I just need to integration Sales/Stock deduction on Sales/Sales Return/Cash Transfer to Debitors/.</p><p>Please let me know your suggestions, may be there are already work have been done on this previously so I can continue this. Please let me know your suggestions.</p><p>Regards</p>]]></content>
			<author>
				<name><![CDATA[trecords]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19435</uri>
			</author>
			<updated>2017-12-26T07:39:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30287#p30287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30105#p30105" />
			<content type="html"><![CDATA[<p>Latest attached.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-12-19T04:38:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30105#p30105</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29707#p29707" />
			<content type="html"><![CDATA[<p>Great Work @Apmuthu.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2017-11-21T16:08:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29707#p29707</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Slim REST API module for FA 2.4.x - No Composer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29701#p29701" />
			<content type="html"><![CDATA[<p>Excellent support!</p>]]></content>
			<author>
				<name><![CDATA[s4m3shms]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41914</uri>
			</author>
			<updated>2017-11-21T09:51:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29701#p29701</id>
		</entry>
</feed>
