This endpoint returns the validity of an account based on a submitted email address.
Example JSON Output
{
"status": "valid",
}
PHP (using cURL):
<?php
$api_url = "https://api.promoonly.com/account_status";
$post_fields = "email=test@promoonly.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$api_result = curl_exec($ch);
curl_close($ch);
$api_obj = json_decode($api_result);
?>
Javascript (using jQuery):
var post_data = { email: "test@promoonly.com" };
$.ajax({
type: "POST",
url: "https://api.promoonly.com/account_status",
data: post_data,
dataType: "json",
success: function (data)
{
console.log(data);
}
});
Python (using requests):
#!/usr/bin/env python
import requests
import urllib
post_data = { "email": "test@promoonly.com" }
api_url = "https://api.promoonly.com/user/save/info"
result_return = requests.post(api_url, data=post_data)
print(result_return.text)