Fax Status API

To use the Fax Status API:

  1. Create a request and get the Fax Status:
    curl -X GET --header 'Content-Type: application/json' 'https://fax.to/api/v2/fax/{fax_job_id}/status?api_key=API_KEY'
    $defaults = [
    	CURLOPT_URL => 'https://fax.to/api/v2/fax/{fax_job_id}/status?api_key=API_KEY'
    $ch = curl_init();
    curl_setopt_array($ch, $defaults);
    $response = curl_exec($ch);
    // Decode the json object you retrieved when you ran the request.
    $decodedResponse = json_decode($response, true);
    import urllib
    params = {
        'api_key': 'API_KEY'
    url = 'https://fax.to/api/v2/fax/{fax_job_id}/status?' + urllib.urlencode(params)
    response = urllib.urlopen(url)
    print response.read()
    require "net/http"
    require "uri"
    uri = URI.parse("https://fax.to/api/v2/fax/{fax_job_id}/status?api_key=API_KEY")
    response = Net::HTTP.get(uri)
    puts response
      "status": "success",
      "message": "Sent! Fax Has Been Answered."
      "user_cash_balance": 100.20