API:Account creation/Sample code 1