Page 1 of 1

Insert transactions using curl

Posted: Wed Aug 10, 2016 12:54 pm
by Speranskiy
Hi there!
I think it's pretty much simple question, but it didn't work what I tried.
Is there a way to insert transactions using curl?
I've tried

Code: Select all

curl --data "TransactionDate=2016-08-10&TransactionStconciled&TransactionType=Withdrawal&TransactionAccount=AccauntName&TransactionPayee=PayeeName&TransactionCategory=CategoryName&TransactionSubCategory=None&TransactionAmount=100000" http://www.my.mmex.server/new_transaction.php

with no luck. Any clues would be highly appreciated!

Re: Insert transactions using curl

Posted: Wed Aug 10, 2016 2:05 pm
by GabrieleV
Currently it's not possible, it's read-only

Re: Insert transactions using curl

Posted: Mon Aug 15, 2016 2:10 pm
by guanlisheng
maybe you have interesting on /api/v1/sql

Re: Insert transactions using curl

Posted: Mon Aug 15, 2016 9:39 pm
by GabrieleV
Sorry @Speranskiy I was thinking that you were trying to use lisheng API, instead it's WebApp..

With WebApp it's possible, but you need to use insert.php, not new_transaction.php
(check insert.php file for field name/details)

Let me know if you have other troubles.