Visualizar detalhes de um usuário
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/users/{id} \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>'import requests
url = "https://api.dooki.com.br/v2/{alias}/users/{id}"
headers = {
"User-Token": "<api-key>",
"User-Secret-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'User-Token': '<api-key>', 'User-Secret-Key': '<api-key>'}
};
fetch('https://api.dooki.com.br/v2/{alias}/users/{id}', 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.dooki.com.br/v2/{alias}/users/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"User-Secret-Key: <api-key>",
"User-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dooki.com.br/v2/{alias}/users/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("User-Token", "<api-key>")
req.Header.Add("User-Secret-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dooki.com.br/v2/{alias}/users/{id}")
.header("User-Token", "<api-key>")
.header("User-Secret-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dooki.com.br/v2/{alias}/users/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["User-Token"] = '<api-key>'
request["User-Secret-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 123,
"active": true,
"name": "<string>",
"social_name": "<string>",
"email": "jsmith@example.com",
"temporary_email": "jsmith@example.com",
"is_owner": true,
"agree": true,
"merchant_owner": true,
"super_user": true,
"last_login_at": "2023-11-07T05:31:56Z",
"avatar_url": "<string>",
"allow_notifications": true,
"type": "<string>",
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": "3",
"timezone": "America/Sao_Paulo"
},
"created_at_timestamp": 123,
"updated_at": {
"date": "2000-06-23 08:05:17",
"timezone_type": "3",
"timezone": "America/Sao_Paulo"
},
"confirmed_at": "2023-11-07T05:31:56Z",
"mfa_enabled": true,
"cpf": "<string>",
"birthday": "2023-12-25",
"phone": "<string>",
"address_street": "<string>",
"address_number": "<string>",
"address_neighborhood": "<string>",
"address_complement": "<string>",
"address_city": "<string>",
"address_state": "<string>",
"address_zipcode": "<string>",
"merchants": {
"data": [
{
"id": 123,
"preset_id": 123,
"active": true,
"internal_active": true,
"is_marketplace": true,
"is_partner": true,
"use_only_checkout": true,
"profile": "<string>",
"alias": "<string>",
"has_domain": true,
"domain": "<string>",
"base_url": "<string>",
"name": "<string>",
"icon_url": "<string>",
"logo_url": "<string>",
"has_subscription": true,
"has_charges": true,
"has_marketplace_accounts": true,
"has_shopify": true,
"has_affiliations": true,
"coupon_created": true,
"order_bump_created": true,
"upsell_created": true,
"pixel_created": true,
"owner_id": 123,
"owner_email": "jsmith@example.com",
"owner_created_at": "2023-11-07T05:31:56Z",
"domains_list": [
"<string>"
],
"tags": [
"<string>"
],
"has_services": {
"shopifyapp": true,
"bling": true,
"woocommerce": true,
"mago": true,
"tiny": true
},
"shopify_integration": "<string>",
"has_credit_card": true,
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"subscription": {
"plan": "<string>",
"status": "<string>"
}
}
]
},
"group": {
"data": [
"<unknown>"
]
},
"notification_types": {
"data": [
"<unknown>"
]
},
"lead_data": {
"data": [
"<unknown>"
]
}
}{
"message": "Resource not found.",
"status_code": 404
}Usuários
Visualizar detalhes de um usuário
Visualiza os detalhes de uma determinado usuário a partir do seu ID
GET
/
{alias}
/
users
/
{id}
Visualizar detalhes de um usuário
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/users/{id} \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>'import requests
url = "https://api.dooki.com.br/v2/{alias}/users/{id}"
headers = {
"User-Token": "<api-key>",
"User-Secret-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'User-Token': '<api-key>', 'User-Secret-Key': '<api-key>'}
};
fetch('https://api.dooki.com.br/v2/{alias}/users/{id}', 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.dooki.com.br/v2/{alias}/users/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"User-Secret-Key: <api-key>",
"User-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dooki.com.br/v2/{alias}/users/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("User-Token", "<api-key>")
req.Header.Add("User-Secret-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dooki.com.br/v2/{alias}/users/{id}")
.header("User-Token", "<api-key>")
.header("User-Secret-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dooki.com.br/v2/{alias}/users/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["User-Token"] = '<api-key>'
request["User-Secret-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 123,
"active": true,
"name": "<string>",
"social_name": "<string>",
"email": "jsmith@example.com",
"temporary_email": "jsmith@example.com",
"is_owner": true,
"agree": true,
"merchant_owner": true,
"super_user": true,
"last_login_at": "2023-11-07T05:31:56Z",
"avatar_url": "<string>",
"allow_notifications": true,
"type": "<string>",
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": "3",
"timezone": "America/Sao_Paulo"
},
"created_at_timestamp": 123,
"updated_at": {
"date": "2000-06-23 08:05:17",
"timezone_type": "3",
"timezone": "America/Sao_Paulo"
},
"confirmed_at": "2023-11-07T05:31:56Z",
"mfa_enabled": true,
"cpf": "<string>",
"birthday": "2023-12-25",
"phone": "<string>",
"address_street": "<string>",
"address_number": "<string>",
"address_neighborhood": "<string>",
"address_complement": "<string>",
"address_city": "<string>",
"address_state": "<string>",
"address_zipcode": "<string>",
"merchants": {
"data": [
{
"id": 123,
"preset_id": 123,
"active": true,
"internal_active": true,
"is_marketplace": true,
"is_partner": true,
"use_only_checkout": true,
"profile": "<string>",
"alias": "<string>",
"has_domain": true,
"domain": "<string>",
"base_url": "<string>",
"name": "<string>",
"icon_url": "<string>",
"logo_url": "<string>",
"has_subscription": true,
"has_charges": true,
"has_marketplace_accounts": true,
"has_shopify": true,
"has_affiliations": true,
"coupon_created": true,
"order_bump_created": true,
"upsell_created": true,
"pixel_created": true,
"owner_id": 123,
"owner_email": "jsmith@example.com",
"owner_created_at": "2023-11-07T05:31:56Z",
"domains_list": [
"<string>"
],
"tags": [
"<string>"
],
"has_services": {
"shopifyapp": true,
"bling": true,
"woocommerce": true,
"mago": true,
"tiny": true
},
"shopify_integration": "<string>",
"has_credit_card": true,
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"subscription": {
"plan": "<string>",
"status": "<string>"
}
}
]
},
"group": {
"data": [
"<unknown>"
]
},
"notification_types": {
"data": [
"<unknown>"
]
},
"lead_data": {
"data": [
"<unknown>"
]
}
}{
"message": "Resource not found.",
"status_code": 404
}Response
Detalhes do usuário
Informações de um usuário.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I