Insert transactions using curl

MMEX4Web

Moderator: Renato

Post Reply
Speranskiy
New MMEX User
Posts: 1
Joined: Wed Aug 10, 2016 12:50 pm
Are you a spam bot?: No

Insert transactions using curl

Post 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!
User avatar
GabrieleV
MMEX Developer
Posts: 158
Joined: Wed Apr 09, 2014 7:45 pm
Are you a spam bot?: No
Location: Italy

Re: Insert transactions using curl

Post by GabrieleV »

Currently it's not possible, it's read-only
guanlisheng
MMEX Developer
Posts: 367
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No
Location: China
Contact:

Re: Insert transactions using curl

Post by guanlisheng »

maybe you have interesting on /api/v1/sql
Lisheng Guan,
Developer of MoneyManagerEX (http://moneymanagerex.org)
User avatar
GabrieleV
MMEX Developer
Posts: 158
Joined: Wed Apr 09, 2014 7:45 pm
Are you a spam bot?: No
Location: Italy

Re: Insert transactions using curl

Post 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.
Post Reply