User APIs

List Domains

Function To list all of the domains for the current User account
Command CMD_API_SHOW_DOMAINS
Method GET or POST
Success Returns url encoded array in list[]
Failure Returns Nothing to break here. No domains returns empty list
Form values:
Name Value
none

List Subdomains

Function Used to list all of the subdomains for a given domain
Command CMD_API_SUBDOMAINS
Method GET or POST
Success Returns url encoded array in list[]
Failure Returns error=1 and url encoded String
Form values:
Name Value
domain the domain to be shown eg: domain.com

Create Subdomain

Function Used to create a subdomain for a given domain
Command CMD_API_SUBDOMAINS
Method GET or POST
Success Returns error=0 and url encoded String
Failure Returns error=1 and url encoded String
Form values:
Name Value
domain the domain to be shown eg: domain.com
action create
subdomain the name of the subdomain to be created

Delete Subdomain

Function Used to delete a list of subdomains for a given domain
Command CMD_API_SUBDOMAINS
Method GET or POST
Success Returns error=0 and url encoded String
Failure Returns error=1 and url encoded String
Form values:
Name Value
domain the domain to be shown eg: domain.com
action delete
select0 (select1, …) the name of the subdomain to be deleted
contents yes or no: if you want to remove the directory and contents.

List Databases

Function Used to list all of the databases
Command CMD_API_DATABASES
Method GET or POST
Success Returns url encoded array in list[]
Failure Returns error=1 and url encoded String
Form values:
Name Value
none

Create Database

Function Used to create a database
Command CMD_API_DATABASES
Method GET or POST
Success Returns error=0 and url encoded String
Failure Returns error=1 and url encoded String
Form values:
Name Value
action create
name the name of the database to be created (username_ will be added)
user the name of the database user to be added (username_ will be added)
passwd password for username_user
passwd2 password for username_user

Delete Databases

Function Used to delete a list of databases
Command CMD_API_DATABASES
Method GET or POST
Success Returns error=0 and url encoded String
Failure Returns error=1 and url encoded String
Form values:
Name Value
action delete
select0 (select1, …) the name of the database to be deleted
 
commands/user_apis.txt · Last modified: 2010/03/01 23:53 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki donate israel