From HEXONET Wiki
List of plans
|Annual plan||API Class||Main features|
|Free||WEEBLY_FREE||2 million queries|
|Starter||WEEBLY_STARTER||5 million queries|
|Pro||WEEBLY_PRO||15 million queries|
|Business||WEEBLY_BUSINESS||30 million queries|
|Performance||WEEBLY_PERFORMANCE||50 million queries|
See here for a breakdown of plans ...
Using the API
Create new website user
To create a new website, a website user object must first be created. Please note that a website user object is different than a contact handle that's used for domains.
The following command is used to create the website user object
COMMAND = CreateWebsiteUser CLASS = Weebly EMAIL = (Email address) LANGUAGE = (Primary language)
This must always be set to Weebly
Email address to serve as your primary contact for important Weebly emails. Weebly provides notices and information about your websites regarding customer comments, registrations, purchases and more.
The primary language used in the Weebly interface. Valid language code are:
- DA: Danish
- DE: German
- EN: English
- ES: Spanish
- FR: French
- IT: Italian
- JA: Japanese
- NL: Dutch
- NO: Norwegian
- PL: Polish
- PT: Portuguese
- RU: Russian
- SV: Swedish
- TR: Turkish
- ZH: Chinese (simplified)
If successful, CreateWebsiteUser will return a WEBSITEUSERID property.
Create new website
Once you have created a website user, you can use the following command to create the website
COMMAND = CreateWebsite CLASS = (Website class) DOMAIN = (Domain name) WEBSITEUSERID = (Website User ID) PERIOD = 1Y SECURE = 0 | 1 TITLE = (New website title) (optional) REFERENCE = (Original website ID to copy from) (optional)
Website plan. Valid plan are:
Name of domain. You can also use an external domain name. Note that the domain name must be unique and is not in used by another account.
Website user object ID
Registration period of the website. Currently only supports period of 1 year (1Y).
This property will either hide or show the SSL certificate option in the Site Editor so that users can enable SSL on their website
- If set to 1, this will show the SSL certificate option in the Site Editor
- If set to 0, this will hide the SSL certificate option in the Site Editor
Website title. If not specified, the default value will be 'Blank title'.
If you provide the ID of another website, the new website will copy the existing website
Get website status
You can see all information on your website using the following command
COMMAND = StatusWebsite ID = (Website ID)
StatusWebsite will return the following property:
Access Weebly Site Editor
To access the Weebly Site Editor interface, you need to retrieve the SSO link using the following command
COMMAND = CreateWebsiteSession ENTITY = Site ID = (Website ID)
This command will return the property URL which redirects to the Weebly Site Editor.
Get website list
You can view a list of your website using the following command
COMMAND = QueryWebsiteList
Upgrade via API
You can upgrade your website by using the following command
COMMAND = UpgradeWebsite ID = (Website ID) CLASS = (Website class)
The website ID
Website plan. Valid plan are:
Povisioning upgrade within Weebly Site Editor
In the Weebly Site Editor, there's an upgrade button that allows user to upgrade the website while they're still in the Site Editor screen. Upon click, this button will open a new pop-up modal to provision the upgrade process. You can see more information on how upgrade works in the Weebly Site Editor at https://cloud-developer.weebly.com/cl_gs_upgrades.html