curl --request GET \
--url https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-response{
"allItemsLinkUrl": "https://example.com/all-items-link-url",
"cardLabel": "Tickets",
"responseVersion": "v3",
"sections": [
{
"actions": [
{
"httpMethod": "POST",
"label": "action-hook-label",
"propertyNamesIncluded": [
"email",
"firstName"
],
"type": "ACTION_HOOK",
"url": "https://example.com/action-hook-frame"
},
{
"confirmation": {
"cancelButtonLabel": "Cancel",
"confirmButtonLabel": "Continue",
"prompt": "action-confirmation-body-prompt"
},
"httpMethod": "POST",
"label": "confirmation-hook-label",
"type": "ACTION_HOOK",
"url": "https://example.com/confirmation-action-hook"
},
{
"height": 480,
"label": "iframe-action-label",
"propertyNamesIncluded": [
"property1",
"property2",
"property3"
],
"type": "IFRAME",
"url": "https://example.com/iframe-action-label",
"width": 640
}
],
"id": "123",
"linkUrl": "http://example.com/1",
"title": "API-22: APIs working too fast",
"tokens": [
{
"dataType": "DATE",
"label": "test_label",
"name": "created",
"value": "2016-08-04"
}
]
}
],
"topLevelActions": {
"primary": {
"height": 480,
"label": "test_label_primary",
"type": "IFRAME",
"url": "https://example.com/primary-iframe",
"width": 640
},
"secondary": [
{
"height": 480,
"label": "test_label_secondary",
"type": "IFRAME",
"url": "https://example.com/secondary-iframe",
"width": 640
}
],
"settings": {
"height": 480,
"label": "Edit",
"propertyNamesIncluded": [
"some_crm_property"
],
"type": "IFRAME",
"url": "https://example.com/iframe-contents",
"width": 640
}
},
"totalCount": 1
}サンプルカードの詳細のレスポンスを返します。これは、ユーザーに表示されるカードの詳細が含まれるペイロードです。これはアプリからレスポンスでデータ取得リクエストに送信する必要があります。
curl --request GET \
--url https://api.hubapi.com/crm/v3/extensions/cards-dev/sample-response{
"allItemsLinkUrl": "https://example.com/all-items-link-url",
"cardLabel": "Tickets",
"responseVersion": "v3",
"sections": [
{
"actions": [
{
"httpMethod": "POST",
"label": "action-hook-label",
"propertyNamesIncluded": [
"email",
"firstName"
],
"type": "ACTION_HOOK",
"url": "https://example.com/action-hook-frame"
},
{
"confirmation": {
"cancelButtonLabel": "Cancel",
"confirmButtonLabel": "Continue",
"prompt": "action-confirmation-body-prompt"
},
"httpMethod": "POST",
"label": "confirmation-hook-label",
"type": "ACTION_HOOK",
"url": "https://example.com/confirmation-action-hook"
},
{
"height": 480,
"label": "iframe-action-label",
"propertyNamesIncluded": [
"property1",
"property2",
"property3"
],
"type": "IFRAME",
"url": "https://example.com/iframe-action-label",
"width": 640
}
],
"id": "123",
"linkUrl": "http://example.com/1",
"title": "API-22: APIs working too fast",
"tokens": [
{
"dataType": "DATE",
"label": "test_label",
"name": "created",
"value": "2016-08-04"
}
]
}
],
"topLevelActions": {
"primary": {
"height": 480,
"label": "test_label_primary",
"type": "IFRAME",
"url": "https://example.com/primary-iframe",
"width": 640
},
"secondary": [
{
"height": 480,
"label": "test_label_secondary",
"type": "IFRAME",
"url": "https://example.com/secondary-iframe",
"width": 640
}
],
"settings": {
"height": 480,
"label": "Edit",
"propertyNamesIncluded": [
"some_crm_property"
],
"type": "IFRAME",
"url": "https://example.com/iframe-contents",
"width": 640
}
},
"totalCount": 1
}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.
このレスポンスで送信されるカードプロパティーの合計数。
インテグレーターが作成した、このカードの全ての詳細が表示されるページのURL。このURLは、レスポンスに5個を超える項目がある場合に「他の[x]を表示」リンクの下に表示されます。「[x]」は「itemLabel」の値です。
「allItemsLinkUrl」リンクに使用されるラベル(「他のチケットを表示」など)。指定されていない場合、カードのタイトルが代わりに使用されます。
レスポンスの数値バージョン。
v1, v3 最大5個の有効なカードサブカテゴリーのリスト。
表示 子属性
表示 子属性