API documentation

Account

Manage your CDN77 acount.

Available methods

Details
Edit

Details

GET
https://api.cdn77.com/v2.0/account/details
Get your account details. Object in standard response: account

Parameters

Parameter Example Description
login string* info@domain.com Your login (email) to CDN77 control panel
passwd string* 8vL4BpXbRqgPTKA0h Your API password.
* Parameter required.

Return Values

Return Value Description
id > Account ID.
email > Account e-mail which is used for authentication. Any action that requires authentication needs to pass the login parameter.
full_name > Full name.
phone > Minimum 6 digits.
renewal_upper_limit > Whether to allow automatic recharge and for what amount of money. Values: 0 => disable, 0+ => maximum recharge limit. Automatic recharge means that if you have less than five days of available credit, we will automatically charge your credit card. Use '0' to disable automatic recharge, or another value to enable this feature. We will notify you via email after each recharge. A minimum recharge payment is based on two weeks of usage to ensure continued service. Currency is in USD.
format_time > How to format time. Valid values: 'America' | 'Europe'
format_date > Valid values: 'America' | 'Asia' | 'Europe'
reports_time_range > The default time range that you would like to see in your reports. Valid values: '120 hours' | '12 hours' | '1 month' | '1 week' | '24 hours' | '2 weeks' | '48 hours' | '4 hours' | '8 hours'
dashboard_time_range > Default time range that you would like to see inside your dashboard. Valid values as listed start at 4 hours, and the highest being a Month value. Valid values: '24H' | '48H' | '4H' | '8H' | 'M' | 'W'

Examples

                                
                                                                            
# GET request
curl "https://api.cdn77.com/v2.0/account/details?login=name@domain.com&passwd=your_api_password" # response {"status": "ok", "description": "Request was successful.", "account": {"renewal_upper_limit": 0, "id": xxx, "email": "name@domain.com", "full_name": "Your Name", "phone": "","format_time": "Europe", "format_date": "Europe", "reports_time_range": "24 hours", "dashboard_time_range": "24H"}}

Edit

POST
https://api.cdn77.com/v2.0/account/edit
Change your account details.

Object in standard response: account

Parameters

Parameter Example Description
login string* info@domain.com Your login (email) to CDN77 control panel
passwd string* 8vL4BpXbRqgPTKA0h Your API password.
email string name@domain.ltd Valid e-mail address.
full_name string John Doe Full name.
phone string Minimum 6 digits.
renewal_upper_limit int Whether to allow automatic recharge and for what amount of money. Values: 0 => disable, 0+ => maximum recharge limit. Automatic recharge means that if you have less than five days of available credit, we will automatically charge your credit card. Use '0' to disable automatic recharge, or another value to enable this feature. We will notify you via email after each recharge. A minimum recharge payment is based on two weeks of usage to ensure continued service. Currency is in USD.
format_time string America How to format time. Valid values: 'America' | 'Europe'
format_date string America Valid values: 'America' | 'Asia' | 'Europe'
reports_time_range string 120 hours The default time range that you would like to see in your reports. Valid values: '120 hours' | '12 hours' | '1 month' | '1 week' | '24 hours' | '2 weeks' | '48 hours' | '4 hours' | '8 hours'
dashboard_time_range string 24H Default time range that you would like to see inside your dashboard. Valid values as listed start at 4 hours, and the highest being a Month value. Valid values: '24H' | '48H' | '4H' | '8H' | 'M' | 'W'
* Parameter required.

Return Values

Return Value Description
id > Account ID.
email > Account e-mail which is used for authentication. Any action that requires authentication needs to pass the login parameter.
full_name > Full name.
phone > Minimum 6 digits.
renewal_upper_limit > Whether to allow automatic recharge and for what amount of money. Values: 0 => disable, 0+ => maximum recharge limit. Automatic recharge means that if you have less than five days of available credit, we will automatically charge your credit card. Use '0' to disable automatic recharge, or another value to enable this feature. We will notify you via email after each recharge. A minimum recharge payment is based on two weeks of usage to ensure continued service. Currency is in USD.
format_time > How to format time. Valid values: 'America' | 'Europe'
reports_time_range > The default time range that you would like to see in your reports. Valid values: '120 hours' | '12 hours' | '1 month' | '1 week' | '24 hours' | '2 weeks' | '48 hours' | '4 hours' | '8 hours'
format_date > Valid values: 'America' | 'Asia' | 'Europe'
dashboard_time_range > Default time range that you would like to see inside your dashboard. Valid values as listed start at 4 hours, and the highest being a Month value. Valid values: '24H' | '48H' | '4H' | '8H' | 'M' | 'W'

Examples

                                
                                                                            
# POST request
curl --data "login=name@domain.com&passwd=your_api_password&phone=yyyyyyyy" https://api.cdn77.com/v2.0/account/edit # response {"status": "ok", "description": "Request was successful.", "account": {"renewal_upper_limit": 0, "id": xxx, "email": "name@domain.com", "full_name": "Your Name", "phone": "yyyyyyyy", "format_time": "Europe", "format_date": "Europe", "reports_time_range": "24 hours", "dashboard_time_range": "24H"}}