UPDATE USERMANGER FIELD API PHP

Hi below what i need to do with API PHP MIKROTIK > I NEED SOME HELP WITH MIKROTIK CODE SECTION


Login_page.php enter user&pass> OK

Check user In usermanger --If user=> start time = “not set” And phone= null> User must activate with phone < NEED HELP WITH CODE

Activation_page.php enter phone, generate random number >

and send to phone >OK

Enter activation code>OK If code correct >OK

update user’s field set phone= phone && set comment = activated > NEED HELP WITH CODE

if user activated before < login to internet