How do I create accounts using the API?
Humyo has a SOAP web service which you can use to create accounts for your customers programmatically. You will need to be familiar with a programming language which has SOAP functionality. Most modern programming languages including ruby, perl, PHP and ASP have functionality for calling SOAP web services.
The WSDL for our web service can be found at http://www.humyo.com/Assets/StorageAPI.wsdl. You will need to load it into your development environment, see the documentation for your programming language for how to do this.
To create user accounts, you will need to call the getSessionToken and createUser methods. You should download the full documentation for our web service however an overview of the procedure to create a user account can be found below.
getSessionToken
Call this method with the e-mail and password for an account which is an administrator of your reseller account. The e-mail address you used to sign-up is by default an administrator of your reseller account, you can also give additional logins administrator status from the Admin section of the web site. A session token which you can use in calls to subsequent methods is returned.
createUser
Call this method to provision a new user account. The parameters you will need to pass are:
authToken
The session token you obtained from the call to getSessionToken
organisationId
The ID for your reseller organisation. You can find this in the Details column when viewing your customer list in the Admin section of the website
planId
This indicates the type of account you are created. 2 is the ID for a standard Premium account. Check with your account manager for the correct IDs.
email
The e-mail address the person will login to this account with.
name
The name of the person you are creating the account for.
password
The password for the new user account.
country
The country the person you are creating the account for is in. e.g. GB, DE or FR. We use this to determine the language, time zone and hosting location for the new account.
currencyId
This will set the currency you wish the account to be charged in. 1 = USD, 2 = GBP, 3 = EUR.
periodId
This indicates the billing cycle you wish the user to have. 1 is for monthly payments, 2 is for annual payments.
voucherCode
This will set the account up on a free trial basis if used. You will need to pass the code 'FREETRIAL'. Premium accounts will recieve a 14 day trial and business accounts will receieve 30 days.
You must have sufficient credit on your billing account to cover the initial charge for the account type you are trying to create. If you do not, the ''ACCOUNT_IN_DEBT'' fault is returned, it does not mean you necessarily owe us money now, but it does mean you would do if the account had been activated. Add some credit to your account in the Admin section of the website to cover the monthly charge for the account type you are creating.
View more articles from Reseller
Was this article useful?
Humyo has a SOAP web service which you can use to create accounts for your customers programmatically. You will need to be familiar with a programming language which has SOAP functionality. Most modern programming languages including ruby, perl, PHP and ASP have functionality for calling SOAP web services.
The WSDL for our web service can be found at http://www.humyo.com/Assets/StorageAPI.wsdl. You will need to load it into your development environment, see the documentation for your programming language for how to do this.
To create user accounts, you will need to call the getSessionToken and createUser methods. You should download the full documentation for our web service however an overview of the procedure to create a user account can be found below.
getSessionToken
Call this method with the e-mail and password for an account which is an administrator of your reseller account. The e-mail address you used to sign-up is by default an administrator of your reseller account, you can also give additional logins administrator status from the Admin section of the web site. A session token which you can use in calls to subsequent methods is returned.
createUser
Call this method to provision a new user account. The parameters you will need to pass are:
| authToken |
The session token you obtained from the call to getSessionToken |
| organisationId |
The ID for your reseller organisation. You can find this in the Details column when viewing your customer list in the Admin section of the website |
| planId |
This indicates the type of account you are created. 2 is the ID for a standard Premium account. Check with your account manager for the correct IDs. |
| email |
The e-mail address the person will login to this account with. |
| name |
The name of the person you are creating the account for. |
| password |
The password for the new user account. |
| country |
The country the person you are creating the account for is in. e.g. GB, DE or FR. We use this to determine the language, time zone and hosting location for the new account. |
| currencyId |
This will set the currency you wish the account to be charged in. 1 = USD, 2 = GBP, 3 = EUR. |
| periodId |
This indicates the billing cycle you wish the user to have. 1 is for monthly payments, 2 is for annual payments. |
| voucherCode |
This will set the account up on a free trial basis if used. You will need to pass the code 'FREETRIAL'. Premium accounts will recieve a 14 day trial and business accounts will receieve 30 days. |
You must have sufficient credit on your billing account to cover the initial charge for the account type you are trying to create. If you do not, the ''ACCOUNT_IN_DEBT'' fault is returned, it does not mean you necessarily owe us money now, but it does mean you would do if the account had been activated. Add some credit to your account in the Admin section of the website to cover the monthly charge for the account type you are creating.
View more articles from Reseller
Was this article useful?
Řešení ID:
#1176
Last update: 2010-04-08 11:01
Author: humyo.com Support
Revision: 1.7
Average rating: 2.67 out of 5 (3 Votes )







