POST /v1/customers HTTP/1.1
api.clayful.io
application/json
gzip
application/json
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) {
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) {
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