The Purity Networks API utilizes HTTP Basic Authentication.
An administrator of a Purity Networks account holder must log into the Account Manager and configure the API username and API key. This username and password is separate from the credentials used to log into the Account Manager for security purposes. The username and password are both automatically generated by the Account Manager upon request by the administrator.
The API username is passed through basic authentication as the username and the API key is passed through basic authentication as the password.
PHP example:
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://manage.purity.net/api2/sp/servers"); curl_setopt($ch, CURLOPT_USERPWD, "testuser431:a6jGeiwZogZlMxUtpWJzS3DC2a4Tb5OxkR7QKA4IHDrEB7QU9L321dP48vijqdE"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); curl_close($ch); print $data; ?>
|
Contact Us Purity Networks, Inc.920 N. Fernandez Ave. Arlington Heights, IL 60004 Toll-free: 1-888-NOSPAM-9 (1-888-667-7269) Direct: +1 815 893-7285 Fax: +1 815 425-2446 Send us a message |
How We Can Help Antispam Service· Features & Benefits · Quick & Easy Setup · Packages & Pricing Software Development · Examples of our Work |
Connect With Us |