Message-ID: <1687479713.15901.1614958673244.JavaMail.confluence@wiki> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_15900_1331906114.1614958673244" ------=_Part_15900_1331906114.1614958673244 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Transfer credits from one account to another account, using the username= to specify the target account.
Hashtable result =3D tmClient.transferCreditsToUser(3, "targetuser= name", "targetuserpass"); Console.WriteLine("Transfered 3 Credits (have {0} now), to account tar= getusername, now with {1} Credits", result["source_credits_after&= quot;],=20 result["target_credits_after"]);=20
Arguments:
int quantity:
The number of credits to transfer from the source account to the target = account.
String target_username:
The username of the account to transfer the credits to.
String target_password:
The password of the account to transfer the credits to.
Returns:
A Hashtable with four keys: 'source_credits_before', 'source_credi=
ts_after',
'target_credits_before' and 'target_credits_after' e.g. re=
sult["source_credits_after"]
Array key | Value |
---|---|
source_credits_before | The number of credits on the source account b= efore the transfer. |
source_credits_after | The number of credits on the source account afte= r the transfer. |
target_credits_before | The number of credits on the target account befo= re the transfer. |
target_credits_after | The number of credits on the target account a= fter the transfer. |
Specific error codes:
Code | Meaning |
---|---|
0 | There are insufficient credits available to t= ransfer the specified quantity, or the specified quantity is not a positive= number |
1 | The target account number specified is not a = valid number or username/password combination does not refer to any known a= ccount |