POST /v1/customers HTTP/1.1
Host: api.clayful.io
Accept: application/json
Accept-Encoding: gzip
Content-Type: application/json
Authorization: Bearer <api-access-token>

{
    "userId":   "user_id",
    "email":    "user@example.org",
    "password": "secure_password"
}
var Customer = Clayful.Customer;

var payload = {
    userId:   'user_id',
    email:    'user@example.org',
    password: 'secure_password',
};

Customer.createMe(payload, function(err, result) {

    if (err) {
        // Error case
        console.log(err.code);
    }

    var data = result.data;

    console.log(data);

});
const Customer = Clayful.Customer;

const payload = {
    userId:   'user_id',
    email:    'user@example.org',
    password: 'secure_password',
};

Customer.create(payload, (err, result) => {

    if (err) {
        // Error case
        console.log(err.code);
    }

    const data = result.data;

    console.log(data);

});
use Clayful\Customer;

$payload = array(
    'userId'   => 'user_id',
    'email'    => 'user@example.org',
    'password' => 'secure_password'
);

$response = Customer::create($payload);

print_r($response->data);
Customer = Clayful.Customer

payload = {
    'userId':   'user_id',
    'email':    'user@example.org',
    'password': 'secure_password'
}

response = Customer.create(payload)

print(response.data)
Customer = Clayful::Customer

payload = {
    'userId'   => 'user_id',
    'email'    => 'user@example.org',
    'password' => 'secure_password'
}

response = Customer.create(payload)

puts response.data