php api to add credit

I need the instruction to add credit to a user using a php api.

what is CLI command for that action? =)

pheraps i found the instruction:
set [find name=theusername] add-credit=thecredit

please confirm.

thank you

http://forum.mikrotik.com/t/api-acl-control/29390/1

sorry, and if “name” not exist, the command “find name=thename” what returns ?

nothing. why did you ask that?..

i want to realize an automatic payment system with php script, customer insert his username and money in the machine and the system add credit or, if username wrong, return error.

if username doesn’t exists - you know that at the first step, when looking for .id =)

sorry i am newbie…
i have senn the link but i dont’understand…
can you write the instructions ?

http://forum.mikrotik.com/t/api-acl-control/29390/7

just replace ‘/interface/wireless/access-list’ with what you need

it works!

THANK YOU !!!