Obter Marca pelo ID
curl --request GET \
--url https://homolog.clubfix.com.br/webservice/brands/{brandId} \
--header 'Authorization: <authorization>'import requests
url = "https://homolog.clubfix.com.br/webservice/brands/{brandId}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://homolog.clubfix.com.br/webservice/brands/{brandId}', 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://homolog.clubfix.com.br/webservice/brands/{brandId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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://homolog.clubfix.com.br/webservice/brands/{brandId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://homolog.clubfix.com.br/webservice/brands/{brandId}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://homolog.clubfix.com.br/webservice/brands/{brandId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": 2,
"name": "Apple",
"models_count": 43,
"models": [
{
"id": 9,
"name": "iPhone 5s 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/9"
}
},
{
"id": 10,
"name": "iPhone 6s 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/10"
}
},
{
"id": 11,
"name": "iPhone 6s 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/11"
}
},
{
"id": 12,
"name": "iPhone 6s 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/12"
}
},
{
"id": 13,
"name": "iPhone 6s 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/13"
}
},
{
"id": 14,
"name": "iPhone 6s Plus 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/14"
}
},
{
"id": 15,
"name": "iPhone 6s Plus 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/15"
}
},
{
"id": 16,
"name": "iPhone 6s Plus 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/16"
}
},
{
"id": 17,
"name": "Iphone SE 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/17"
}
},
{
"id": 18,
"name": "Iphone SE 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/18"
}
},
{
"id": 19,
"name": "iPhone 7 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/19"
}
},
{
"id": 20,
"name": "iPhone 7 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/20"
}
},
{
"id": 21,
"name": "iPhone 7 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/21"
}
},
{
"id": 22,
"name": "iPhone 7 PLUS 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/22"
}
},
{
"id": 23,
"name": "iPhone 7 PLUS 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/23"
}
},
{
"id": 24,
"name": "iPhone 7 PLUS 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/24"
}
},
{
"id": 25,
"name": "iPhone 7 128GB RED",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/25"
}
},
{
"id": 26,
"name": "iPhone 7 256GB RED",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/26"
}
},
{
"id": 27,
"name": "iPhone 7 PLUS 128GB RED",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/27"
}
},
{
"id": 28,
"name": "IPHONE 8 64GB ",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/28"
}
},
{
"id": 29,
"name": "IPHONE 8 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/29"
}
},
{
"id": 30,
"name": "IPHONE 8 PL 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/30"
}
},
{
"id": 31,
"name": "IPHONE 8 PL 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/31"
}
},
{
"id": 32,
"name": "iPhone 5s 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/32"
}
},
{
"id": 33,
"name": "iPhone 5s 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/33"
}
},
{
"id": 34,
"name": "iPhone 5s 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/34"
}
},
{
"id": 35,
"name": "iPhone SE 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/35"
}
},
{
"id": 36,
"name": "iPhone SE 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/36"
}
},
{
"id": 37,
"name": "iPhone 6 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/37"
}
},
{
"id": 38,
"name": "iPhone 6 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/38"
}
},
{
"id": 39,
"name": "iPhone 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/39"
}
},
{
"id": 40,
"name": "iPhone 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/40"
}
},
{
"id": 41,
"name": "iPhone 6s 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/41"
}
},
{
"id": 42,
"name": "iPhone 6s 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/42"
}
},
{
"id": 43,
"name": "iPhone 6s 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/43"
}
},
{
"id": 44,
"name": "iPhone 6s 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/44"
}
},
{
"id": 45,
"name": "iPhone 6s Plus 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/45"
}
},
{
"id": 46,
"name": "32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/46"
}
},
{
"id": 47,
"name": "64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/47"
}
},
{
"id": 48,
"name": "128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/48"
}
},
{
"id": 49,
"name": "iPhone 7 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/49"
}
},
{
"id": 50,
"name": "iPhone 7 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/50"
}
},
{
"id": 51,
"name": "iPhone 7 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/51"
}
}
],
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/brands/2"
}
}Dispositivos
Obter uma marca pelo ID
Este recurso obtém uma determinada marca de dispositivo que esteja atribuída ao parceiro autenticado.
O parâmetro include pode ser atribuído neste recurso, com a finalidade de incluir na resposta um dado extra, como exemplificado na tabela abaixo.
| Parâmetro | Descrição |
|---|---|
| models | Anexa à resposta todos os modelos da marca requerida. |
| modelCount | Anexa à resposta a quantidade todal de modelos que a marca requerida possui. |
GET
/
brands
/
{brandId}
Obter Marca pelo ID
curl --request GET \
--url https://homolog.clubfix.com.br/webservice/brands/{brandId} \
--header 'Authorization: <authorization>'import requests
url = "https://homolog.clubfix.com.br/webservice/brands/{brandId}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://homolog.clubfix.com.br/webservice/brands/{brandId}', 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://homolog.clubfix.com.br/webservice/brands/{brandId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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://homolog.clubfix.com.br/webservice/brands/{brandId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://homolog.clubfix.com.br/webservice/brands/{brandId}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://homolog.clubfix.com.br/webservice/brands/{brandId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": 2,
"name": "Apple",
"models_count": 43,
"models": [
{
"id": 9,
"name": "iPhone 5s 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/9"
}
},
{
"id": 10,
"name": "iPhone 6s 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/10"
}
},
{
"id": 11,
"name": "iPhone 6s 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/11"
}
},
{
"id": 12,
"name": "iPhone 6s 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/12"
}
},
{
"id": 13,
"name": "iPhone 6s 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/13"
}
},
{
"id": 14,
"name": "iPhone 6s Plus 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/14"
}
},
{
"id": 15,
"name": "iPhone 6s Plus 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/15"
}
},
{
"id": 16,
"name": "iPhone 6s Plus 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/16"
}
},
{
"id": 17,
"name": "Iphone SE 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/17"
}
},
{
"id": 18,
"name": "Iphone SE 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/18"
}
},
{
"id": 19,
"name": "iPhone 7 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/19"
}
},
{
"id": 20,
"name": "iPhone 7 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/20"
}
},
{
"id": 21,
"name": "iPhone 7 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/21"
}
},
{
"id": 22,
"name": "iPhone 7 PLUS 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/22"
}
},
{
"id": 23,
"name": "iPhone 7 PLUS 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/23"
}
},
{
"id": 24,
"name": "iPhone 7 PLUS 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/24"
}
},
{
"id": 25,
"name": "iPhone 7 128GB RED",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/25"
}
},
{
"id": 26,
"name": "iPhone 7 256GB RED",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/26"
}
},
{
"id": 27,
"name": "iPhone 7 PLUS 128GB RED",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/27"
}
},
{
"id": 28,
"name": "IPHONE 8 64GB ",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/28"
}
},
{
"id": 29,
"name": "IPHONE 8 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/29"
}
},
{
"id": 30,
"name": "IPHONE 8 PL 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/30"
}
},
{
"id": 31,
"name": "IPHONE 8 PL 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/31"
}
},
{
"id": 32,
"name": "iPhone 5s 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/32"
}
},
{
"id": 33,
"name": "iPhone 5s 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/33"
}
},
{
"id": 34,
"name": "iPhone 5s 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/34"
}
},
{
"id": 35,
"name": "iPhone SE 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/35"
}
},
{
"id": 36,
"name": "iPhone SE 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/36"
}
},
{
"id": 37,
"name": "iPhone 6 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/37"
}
},
{
"id": 38,
"name": "iPhone 6 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/38"
}
},
{
"id": 39,
"name": "iPhone 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/39"
}
},
{
"id": 40,
"name": "iPhone 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/40"
}
},
{
"id": 41,
"name": "iPhone 6s 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/41"
}
},
{
"id": 42,
"name": "iPhone 6s 64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/42"
}
},
{
"id": 43,
"name": "iPhone 6s 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/43"
}
},
{
"id": 44,
"name": "iPhone 6s 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/44"
}
},
{
"id": 45,
"name": "iPhone 6s Plus 16GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/45"
}
},
{
"id": 46,
"name": "32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/46"
}
},
{
"id": 47,
"name": "64GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/47"
}
},
{
"id": 48,
"name": "128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/48"
}
},
{
"id": 49,
"name": "iPhone 7 32GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/49"
}
},
{
"id": 50,
"name": "iPhone 7 128GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/50"
}
},
{
"id": 51,
"name": "iPhone 7 256GB",
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/models/51"
}
}
],
"meta": {
"link": "https://homolog.clubfix.com.br/webservice/brands/2"
}
}string
required
Corresponde ao ID da marca que você deseja obter. Este ID é único para cada marca e pode ser encontrado na lista de marcas ou em outros endpoints relacionados.
string
required
Token de autenticação do tipo Bearer obtido através do endpoint de login.
Was this page helpful?
