Transfer credits from one account to another account, using the username to specify the target account.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
$result = $tmClient->transferCreditsToUser(3, 'targetusername', 'targetpassword'); echo "Transfered 3 credits (leaving {$result['source_credits_after']}), to targetusername, which now has {$result['target_credits_after']} credits"; |
Warning | ||
---|---|---|
| ||
Our example code is an illustration of how you might integrate with our systems and is not certified for production environments. You are responsible for testing and QA. |