curl --request GET \
--url https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-responseimport requests
url = "https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-response"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-response', 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.hubapi.com/crm/v3/extensions/cards-dev/sample-response",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.hubapi.com/crm/v3/extensions/cards-dev/sample-response"
req, _ := http.NewRequest("GET", url, nil)
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.hubapi.com/crm/v3/extensions/cards-dev/sample-response")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-response")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"totalCount": 123,
"allItemsLinkUrl": "<string>",
"cardLabel": "<string>",
"responseVersion": "v1",
"sections": [
{
"actions": [
{
"httpMethod": "CONNECT",
"propertyNamesIncluded": [
"<string>"
],
"type": "ACTION_HOOK",
"url": "<string>",
"confirmation": {
"cancelButtonLabel": "<string>",
"confirmButtonLabel": "<string>",
"prompt": "<string>"
},
"label": "<string>"
}
],
"id": "<string>",
"title": "<string>",
"tokens": [
{
"value": "<string>",
"dataType": "BOOLEAN",
"label": "<string>",
"name": "<string>"
}
],
"linkUrl": "<string>"
}
],
"topLevelActions": {
"secondary": [
{
"httpMethod": "CONNECT",
"propertyNamesIncluded": [
"<string>"
],
"type": "ACTION_HOOK",
"url": "<string>",
"confirmation": {
"cancelButtonLabel": "<string>",
"confirmButtonLabel": "<string>",
"prompt": "<string>"
},
"label": "<string>"
}
],
"primary": {
"httpMethod": "CONNECT",
"propertyNamesIncluded": [
"<string>"
],
"type": "ACTION_HOOK",
"url": "<string>",
"confirmation": {
"cancelButtonLabel": "<string>",
"confirmButtonLabel": "<string>",
"prompt": "<string>"
},
"label": "<string>"
},
"settings": {
"height": 123,
"propertyNamesIncluded": [
"<string>"
],
"type": "IFRAME",
"url": "<string>",
"width": 123,
"label": "<string>"
}
}
}{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}Get sample CRM card detail response
Retorna um exemplo de resposta de detalhes do cartão. Esta é a carga útil com detalhes exibidos para um cartão que será mostrado a um usuário. Um aplicativo deve enviar isso em resposta à solicitação de busca de dados.
curl --request GET \
--url https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-responseimport requests
url = "https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-response"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-response', 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.hubapi.com/crm/v3/extensions/cards-dev/sample-response",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.hubapi.com/crm/v3/extensions/cards-dev/sample-response"
req, _ := http.NewRequest("GET", url, nil)
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.hubapi.com/crm/v3/extensions/cards-dev/sample-response")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-response")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"totalCount": 123,
"allItemsLinkUrl": "<string>",
"cardLabel": "<string>",
"responseVersion": "v1",
"sections": [
{
"actions": [
{
"httpMethod": "CONNECT",
"propertyNamesIncluded": [
"<string>"
],
"type": "ACTION_HOOK",
"url": "<string>",
"confirmation": {
"cancelButtonLabel": "<string>",
"confirmButtonLabel": "<string>",
"prompt": "<string>"
},
"label": "<string>"
}
],
"id": "<string>",
"title": "<string>",
"tokens": [
{
"value": "<string>",
"dataType": "BOOLEAN",
"label": "<string>",
"name": "<string>"
}
],
"linkUrl": "<string>"
}
],
"topLevelActions": {
"secondary": [
{
"httpMethod": "CONNECT",
"propertyNamesIncluded": [
"<string>"
],
"type": "ACTION_HOOK",
"url": "<string>",
"confirmation": {
"cancelButtonLabel": "<string>",
"confirmButtonLabel": "<string>",
"prompt": "<string>"
},
"label": "<string>"
}
],
"primary": {
"httpMethod": "CONNECT",
"propertyNamesIncluded": [
"<string>"
],
"type": "ACTION_HOOK",
"url": "<string>",
"confirmation": {
"cancelButtonLabel": "<string>",
"confirmButtonLabel": "<string>",
"prompt": "<string>"
},
"label": "<string>"
},
"settings": {
"height": 123,
"propertyNamesIncluded": [
"<string>"
],
"type": "IFRAME",
"url": "<string>",
"width": 123,
"label": "<string>"
}
}
}{
"message": "Invalid input (details will vary based on the error)",
"correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
"category": "VALIDATION_ERROR",
"links": {
"knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
}
}Supported products
Supported products
Resposta
successful operation
The card details payload, sent to HubSpot by an app in response to a data fetch request when a user visits a CRM record page.
O número total de propriedades do cartão que serão enviadas nesta resposta.
O URL de uma página que o integrador construiu que exibe todos os detalhes deste cartão. Este URL será exibido para os usuários em um link "Ver mais [x]" se houver mais de cinco itens em sua resposta, onde "[x]" é o valor de "temLabel".
O rótulo a ser usado para o link "allItemsLinkUrl" (por exemplo, "Ver mais tickets"). Se não for fornecido, o título do cartão será usado.
A versão numérica da resposta.
v1, v3 Uma lista de até cinco subcategorias de cartões válidas.
Show child attributes
Show child attributes
Show child attributes
Show child attributes