You can use the User Register API to register a user
#!/bin/bash
curl -d '{"email":"USER_EMAIL", "password":"USER_PASSWORD"}' -H 'Content-Type: application/json' -X POST 'https://fax.to/api/v2/user'
<?php
$defaults = [
CURLOPT_URL => 'https://fax.to/api/v2/user'
];
$post = array('email' => 'USER_EMAIL','password'=> 'USER_PASSWORD');
$ch = curl_init();
curl_setopt_array($ch, $defaults);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($ch);
// Decode the json object you retrieved when you ran the request.
$decodedResponse = json_decode($response, true);
var_dump($decodedResponse);
import urllib
params = {
'email': 'USER_EMAIL',
'password': 'USER_PASSWORD'
}
url = 'https://fax.to/api/v2/user'
response = urllib.urlopen(url, urllib.urlencode(params))
print response.read()
require "net/http"
require "uri"
params = {'email' => 'USER_EMAIL', 'password' => 'USER_PASSWORD'}
json_headers = {"Content-Type" => "application/json"}
uri = URI.parse("https://fax.to/api/v2/user")
http = Net::HTTP.new(uri.host, uri.port)
response = http.post(uri.path, params.to_json, json_headers)
puts response
{
"status": "success",
"api_key": "f1a99500-7ce0-11e7-9fb1-0580e1fcb90c"
}