Namecheap

Component ID

1525124

Component name

Namecheap

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

906

Component created

Component changed

Component body

Provides integration with Libraries API (2.x) and a Drush [Make] script to download the Namecheap SDK for use with the Namecheap API.

The NameCheap API allows you to build web and desktop applications that integrate with your NameCheap account. It allows you to programmatically perform operations like domain search, domain register, purchase SSL etc., from within your application.

Place the appropriate version of the Namecheap SDK in the libraries directory within the site you are working. That may be 'default' or 'all' like the following: sites/all/libraries or sites/default/libraries. The end result after extracting the library should be sites/.../libraries/namecheap/registrars/namecheap/namecheap.php.

Configuration can be performed either using variables hardcoded into settings.php or the UI. If you want to hardcode them then look at the UI for the variable names.

$conf['namecheap_username'] = '...';
$conf['namecheap_password'] = '...'; // API key, but SDK did not rename it.
$conf['namecheap_testmod'] = '...';

The following is an example of how to use the API inside of Drupal.

libraries_load('namecheap');
$params = namecheap_params();
$params['sld'] = '...';
$params['tld'] = '...';
$result = namecheap_GetNameservers($params);

For more information about the Namecheap API please see the following.