DescriptionQuick Start - API: Cyber Security
The API allows users to deal with many aspects of web application management - purge cache, create new web applications, manage an existing application - programmatically, without accessing the Control Center.
To start using the API you will need:
- Create the API application in the Control Center
- Receive the oAuth token
- Call any supported API
Creating the API application:
- Open the "Manage Company / API Application" page.
- Click "Add new application" and provide the desired name e.g: "Purge Cache for all web apps".
- Your new Client ID and Secret keys will be generated automatically. Click on the actual key value to see it fully expanded.
Receiving the oAuth token
To receive the oAuth token, simply send a POST request to https://security.leasewebcdn.com/api/oauth/token, supplying the Client ID and Secret keys you received during the new API creation. For example:
Calling any supported API
Call any API method using the oAuth token. For example: