PHP API question.
Posted: Thu Sep 16, 2010 11:59 pm
So the question being, how do a query a result from an array. Not sure if my wording is right on that. So,,,,
If I want to get a specific parameter from one of my users in the usermanager. specifically,,,, I want to get the "transfer-limit' from user "test" and store that as a variable to be used in a later Set statement....
such as
what next? right track? wrong track?
I'm slowly understanding the API, but I'm having some difficulty understanding the documentation.....
Ideally what I'm looking to do is query a specific users transfer-limit in bytes, add some user defined bytes to it and then use the Set command to plop it back into the Usermanager.
I got the basics down, I can set the transfer-limit of a specific user no problem...but I need to be able to read out what they have, add to it, and then put it back.....
Thanks for any clarity!!
butteryak
If I want to get a specific parameter from one of my users in the usermanager. specifically,,,, I want to get the "transfer-limit' from user "test" and store that as a variable to be used in a later Set statement....
such as
Code: Select all
$API->write('tool/user-manager/user/getall', false);
$API->write('=name=test', false);
I'm slowly understanding the API, but I'm having some difficulty understanding the documentation.....
Ideally what I'm looking to do is query a specific users transfer-limit in bytes, add some user defined bytes to it and then use the Set command to plop it back into the Usermanager.
I got the basics down, I can set the transfer-limit of a specific user no problem...but I need to be able to read out what they have, add to it, and then put it back.....
Thanks for any clarity!!
butteryak