Created
May 27, 2015 15:21
-
-
Save smallfri/bd0e1e22e4c6f1f62dfd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url = 'http://www.licenseengine.com/api/v1/retrieve/product_id/[email protected]'; | |
$username = 'YOUR_LICENSEENGINE_USERNAME'; | |
$password = 'YOUR_LICENSEENGINE_PASSWORD'; | |
$ch = curl_init(); | |
curl_setopt($ch,CURLOPT_URL,$url); | |
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); | |
curl_setopt($ch,CURLOPT_USERPWD,"$username:$password"); | |
curl_setopt($ch,CURLOPT_HTTPAUTH,CURLAUTH_BASIC); | |
$output = curl_exec($ch); | |
$info = curl_getinfo($ch); | |
curl_close($ch); | |
print_r($output); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment