curl --request POST \
--url https://api.iklim.co/v1/users/create \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"roles": "['STANDARD_USER', 'API_USER']",
"status": "['ACTIVE']",
"password": "password",
"midName": "Bob"
}
EOFimport requests
url = "https://api.iklim.co/v1/users/create"
payload = {
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"roles": "['STANDARD_USER', 'API_USER']",
"status": "['ACTIVE']",
"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',
roles: '[\'STANDARD_USER\', \'API_USER\']',
status: '[\'ACTIVE\']',
password: 'password',
midName: 'Bob'
})
};
fetch('https://api.iklim.co/v1/users/create', 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/users/create",
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',
'roles' => '[\'STANDARD_USER\', \'API_USER\']',
'status' => '[\'ACTIVE\']',
'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/users/create"
payload := strings.NewReader("{\n \"username\": \"name@domain.com\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"locale\": \"tr_TR\",\n \"timezone\": \"Europe/Istanbul\",\n \"roles\": \"['STANDARD_USER', 'API_USER']\",\n \"status\": \"['ACTIVE']\",\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/users/create")
.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 \"roles\": \"['STANDARD_USER', 'API_USER']\",\n \"status\": \"['ACTIVE']\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/users/create")
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 \"roles\": \"['STANDARD_USER', 'API_USER']\",\n \"status\": \"['ACTIVE']\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}"
response = http.request(request)
puts response.read_body{
"userId": "8e94a551-5b86-40ba-ae55-b019dee5cc25",
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"roles": "API_USER",
"status": "INACTIVE",
"midName": "Bob",
"account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "INDIVIDUAL",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"mobilePhoneNumber": "<string>",
"location": "<string>",
"company": "<string>",
"industry": "<string>",
"profilePictureUrl": "<string>",
"subscriptionPlan": "NONE",
"emailVerified": true,
"mobilePhoneNumberVerified": true
}
}Yeni Kullanıcı Oluşturma İşlemi
Sadece ADMIN Rölüne Sahip Kullanıcılar Tarafından Kullanılabilir. Detayları Verilen Yeni Kullanıcı Kaydını Oluşturur. Şifre Alanı Boş Bırakılırsa 12 Alfa Nümerik Karakterli Rastgele Bir Şifre Oluşturulur. Kullanıcı Oluşturulduktan Sonra İlgili Kullanıcının Email Adresine (Kullanıcı Adı) Hoş Geldiniz E-Postası Gönderilir. Şifre Bilgileri Bu E-Postanın İçinde Mevcuttur.
curl --request POST \
--url https://api.iklim.co/v1/users/create \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"roles": "['STANDARD_USER', 'API_USER']",
"status": "['ACTIVE']",
"password": "password",
"midName": "Bob"
}
EOFimport requests
url = "https://api.iklim.co/v1/users/create"
payload = {
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"roles": "['STANDARD_USER', 'API_USER']",
"status": "['ACTIVE']",
"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',
roles: '[\'STANDARD_USER\', \'API_USER\']',
status: '[\'ACTIVE\']',
password: 'password',
midName: 'Bob'
})
};
fetch('https://api.iklim.co/v1/users/create', 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/users/create",
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',
'roles' => '[\'STANDARD_USER\', \'API_USER\']',
'status' => '[\'ACTIVE\']',
'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/users/create"
payload := strings.NewReader("{\n \"username\": \"name@domain.com\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"locale\": \"tr_TR\",\n \"timezone\": \"Europe/Istanbul\",\n \"roles\": \"['STANDARD_USER', 'API_USER']\",\n \"status\": \"['ACTIVE']\",\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/users/create")
.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 \"roles\": \"['STANDARD_USER', 'API_USER']\",\n \"status\": \"['ACTIVE']\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/users/create")
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 \"roles\": \"['STANDARD_USER', 'API_USER']\",\n \"status\": \"['ACTIVE']\",\n \"password\": \"password\",\n \"midName\": \"Bob\"\n}"
response = http.request(request)
puts response.read_body{
"userId": "8e94a551-5b86-40ba-ae55-b019dee5cc25",
"username": "name@domain.com",
"firstName": "John",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"roles": "API_USER",
"status": "INACTIVE",
"midName": "Bob",
"account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "INDIVIDUAL",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"mobilePhoneNumber": "<string>",
"location": "<string>",
"company": "<string>",
"industry": "<string>",
"profilePictureUrl": "<string>",
"subscriptionPlan": "NONE",
"emailVerified": true,
"mobilePhoneNumberVerified": true
}
}Gövde
Kayıt İçin E-Posta Biçiminde Kullanıcı Adı
"name@domain.com"
Kayıt İçin Kullanıcının İlk Adı
"John"
Kayıt İçin Kullanıcının Soy Adı
"Doe"
Kayıt İçin Kullanıcının Yerel Ayarı
"tr_TR"
Kullanıcı Zaman Dilimi Id'si. https://en.wikipedia.org/wiki/List_of_tz_database_time_zones adresinde 'TZ Tanımlayıcısının' Bir Listesini Bulabilirsiniz
"Europe/Istanbul"
Kullanıcının Rolleri
{msg:swagger.schema.users.create-user.roles}
GUEST, API_USER, STANDARD_USER, POWER_USER, EXTENDED_USER, ADMIN "['STANDARD_USER', 'API_USER']"
Kullanıcının Durumu
INACTIVE, ACTIVE, EXPIRED, BLOCKED, DELETED "['ACTIVE']"
Kayıt İçin Şifre
"password"
Kayıt İçin Kullanıcının Göbek Adı
"Bob"
Yanıt
Başarılı Yeni Kullanıcı Oluşturma
Kaydedilen Kullanıcının ID Numarası
"8e94a551-5b86-40ba-ae55-b019dee5cc25"
Kaydedilen Kullanıcı İsmi
"name@domain.com"
Kaydedilen Kullanıcının İlk Adı
"John"
Kaydedilen Kullanıcının Soy Adı
"Doe"
Kaydedilen Kullanıcının Yerel Ayarı
"tr_TR"
Kaydedilen Kullanıcının Zaman Dilimi Id'si
"Europe/Istanbul"
Kaydedilen Kullanıcının Rolleri
{msg:swagger.schema.auth.register-response.roles}
GUEST, API_USER, STANDARD_USER, POWER_USER, EXTENDED_USER, ADMIN "API_USER"
Kaydedilen Kullanıcının Durumu
INACTIVE, ACTIVE, EXPIRED, BLOCKED, DELETED "INACTIVE"
Kaydedilen Kullanıcının Göbek Adı
"Bob"
Show child attributes
Show child attributes