NGNT
The NGNT class is responsible for handling the creation of new virtual deposit accounts.
To use the NGNT class, import it from the buycoins
package:
You can use the class directly using NGNT().method_name
or instantiate the class into a variable and use:
create_deposit_account(account_name)
This method does not work currently as the API endpoint has been temporarily disabled.
This method creates a virtual deposit account under the account name from the method argument and returns a JSON object containing the details of the newly created account.
Example
In the example above, a new virtual deposit account under the name BuyCoins Africa is created and output stored in the create_deposit_account
variable.
The response printed from line 5 is:
Error Responses
An error message is sent as a response In an event where an empty argument is passed.
Example request:
Response:
Last updated