CloudDocs
Account
The Weebly Cloud API provides methods for managing global account settings.
FIELDS
- brand_name (string)
Your brand name. Displays in the footer of any free sites. You may override this setting at the site level. (ex: "My Brand Name")
- brand_url (string)
Full url to your website. The link in the footer of a published site will go to this site. You may override this setting at the site level. (ex: "http://www.mybrand.com/")
- upgrade_url (string)
Full url to your upgrade manager. When a user is editing a site they may be prompted to upgrade their account to take advantage of more features. This url will be loaded into a popup window to prompt the user to upgrade their account. This upgrade url will be used on all sites in the Weebly Cloud account. You may override this setting at the site level (See the Site API for the setUpgradeUrl method description). (ex: "http://www.mybrand.com/upgrade.php")
- publish_upsell_url (string)
Full url to your publish promotion. This url will be loaded in an iframe (640px W by 200px H) upon site publish and can be used to advertise other services. You may override this setting at the site level. (See the Site API for the setPublishUpsellUrl method description). (ex. "http://www.mybrand.com/upsell.php")
GET /account
Returns all data related to a given Weebly Cloud account. The Weebly Cloud account is authenticated through the API key and secret hash.
Example CURL Request
curl https://api.weeblycloud.com/hosts/account \ -H "X-Public-Key: YOURAPIKEY" \ -H "X-Signed-Request-Hash: YOURSECRETHASH"
Example Response
{ "account": { "brand_name": "My Brand", "brand_url": "http:\/\/www.mybrand.com\/", "publish_upsell_url": "http:\/\/www.mybrand.com\/upsell.html", "upgrade_url": "http:\/\/www.mybrand.com\/upgrade.html" } }
PUT /account
Updates the Weebly Cloud account fields for a given account.
Example CURL Request
curl https://api.weeblycloud.com/hosts/account \ -X PUT \ -d '{ "brand_name": "My New Brand", "brand_url": "http:\/\/www.mynewbrand.com\/", "publish_upsell_url": "http:\/\/www.mynewbrand.com\/upsell.html", "upgrade_url": "http:\/\/www.mynewbrand.com\/upgrade.html" }' \ -H "Content-type: application/json" \ -H "X-Public-Key: YOURAPIKEY" \ -H "X-Signed-Request-Hash: YOURSECRETHASH"
Example Response
{ "account": { "brand_name": "My New Brand", "brand_url": "http:\/\/www.mynewbrand.com\/", "publish_upsell_url": "http:\/\/www.mynewbrand.com\/upsell.html", "upgrade_url": "http:\/\/www.mynewbrand.com\/upgrade.html" } }
PATCH /account
Updates the provided Weebly Cloud account fields for a given account.
Example CURL Request
curl https://api.weeblycloud.com/hosts/account \ -X PATCH \ -d '{ "brand_name": "My Brand", "brand_url": "http:\/\/www.mybrand.com\/", }' \ -H "Content-type: application/json" \ -H "X-Public-Key: YOURAPIKEY" \ -H "X-Signed-Request-Hash: YOURSECRETHASH"
Example Response
{ "account": { "brand_name": "My Brand", "brand_url": "http:\/\/www.mybrand.com\/", "publish_upsell_url": "http:\/\/www.mynewbrand.com\/upsell.html", "upgrade_url": "http:\/\/www.mynewbrand.com\/upgrade.html" } }
Site Info
|
More
|
|