curl --request POST \
--url https://api.iklim.co/v1/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"password": "password",
"midName": "Bob"
}
'import requests
url = "https://api.iklim.co/v1/auth/register"
payload = {
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"password": "password",
"midName": "Bob"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
username: 'name@domain.com',
firstName: 'John',
lastName: 'Doe',
locale: 'tr_TR',
timezone: 'Europe/Istanbul',
password: 'password',
midName: 'Bob'
})
};
fetch('https://api.iklim.co/v1/auth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iklim.co/v1/auth/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'username' => 'name@domain.com',
'firstName' => 'John',
'lastName' => 'Doe',
'locale' => 'tr_TR',
'timezone' => 'Europe/Istanbul',
'password' => 'password',
'midName' => 'Bob'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iklim.co/v1/auth/register"
payload := strings.NewReader("{\n \"username\": \"name@domain.com\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"locale\": \"tr_TR\",\n \"timezone\": \"Europe/Istanbul\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iklim.co/v1/auth/register")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"name@domain.com\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"locale\": \"tr_TR\",\n \"timezone\": \"Europe/Istanbul\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/auth/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"username\": \"name@domain.com\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"locale\": \"tr_TR\",\n \"timezone\": \"Europe/Istanbul\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}"
response = http.request(request)
puts response.read_body{
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"password": "password",
"midName": "Bob"
}New User Registration
New User Registration is Made
curl --request POST \
--url https://api.iklim.co/v1/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"password": "password",
"midName": "Bob"
}
'import requests
url = "https://api.iklim.co/v1/auth/register"
payload = {
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"password": "password",
"midName": "Bob"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
username: 'name@domain.com',
firstName: 'John',
lastName: 'Doe',
locale: 'tr_TR',
timezone: 'Europe/Istanbul',
password: 'password',
midName: 'Bob'
})
};
fetch('https://api.iklim.co/v1/auth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iklim.co/v1/auth/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'username' => 'name@domain.com',
'firstName' => 'John',
'lastName' => 'Doe',
'locale' => 'tr_TR',
'timezone' => 'Europe/Istanbul',
'password' => 'password',
'midName' => 'Bob'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iklim.co/v1/auth/register"
payload := strings.NewReader("{\n \"username\": \"name@domain.com\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"locale\": \"tr_TR\",\n \"timezone\": \"Europe/Istanbul\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iklim.co/v1/auth/register")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"name@domain.com\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"locale\": \"tr_TR\",\n \"timezone\": \"Europe/Istanbul\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/auth/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"username\": \"name@domain.com\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"locale\": \"tr_TR\",\n \"timezone\": \"Europe/Istanbul\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}"
response = http.request(request)
puts response.read_body{
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"password": "password",
"midName": "Bob"
}Body
User Name in E-Mail Format for Registration
"name@domain.com"
First Name for Registration
"John"
Last Name for Registration
"Doe"
User Locale for Registration
"tr_TR"
User Timezone Id. You Can Find a List of 'TZ identifier' on page https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
"Europe/Istanbul"
Password for Registration
"password"
Mid Name for Registration
"Bob"
Response
Successful User Registration
User Name in E-Mail Format for Registration
"name@domain.com"
First Name for Registration
"John"
Last Name for Registration
"Doe"
User Locale for Registration
"tr_TR"
User Timezone Id. You Can Find a List of 'TZ identifier' on page https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
"Europe/Istanbul"
Password for Registration
"password"
Mid Name for Registration
"Bob"