Status: Account Status

This endpoint returns the validity of an account based on a submitted email address.

Account Status Specification

Parameters: POST variables: JSON returned:

Account Status Workflow

  1. URL: https://api.promoonly.com/account_status
  2. Method: POST
  3. Returned: JSON

    Example JSON Output

    {
        "status": "valid",
    }

Examples

  1. 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);
    ?>
  2. 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);
        }
    });
  3. 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)