[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

API question



LedgerSMB 1.1.1d on MacOSX 10.4.8

I have the following API call that I run from the command line:

./ic.pl "taxaccounts=2150&
IC_inventory=1510--Inventory&
IC_income=4010--Sales&
IC_tax_2150=1&
weightunit=lbs&
action=Save&
employee=me--10082&
login=me&
password=donkykong&
path=bin/mozilla&
partnumber=028&
description=Jiffy Bag #1 Clear Small&
unit=5&
lastcost=2.00&
weight=1.263&
onhand=5001&
notes=Jiffy #1 Mailing package&
rop=150&
obsolete=&
sellprice=&
id=291605"

When I run it, I get the following back whether or not the action is successful:

Set-Cookie: LedgerSMB=3:46d941350a07184b0098fba3bdcbb6c1; path=/;

How can I figure out whether the result was successful without making querying the table? SQL-Ledger at least returned a string that I could compare to.

Charley