curl --request GET \
--url http://{defaultHost}/api/v2/platform/digital_links \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "1",
"type": "digital_link",
"attributes": {
"token": "K5s8uUkdD2TjL8MySKcT3d4Y",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "1",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "9",
"type": "line_item"
}
}
}
},
{
"id": "2",
"type": "digital_link",
"attributes": {
"token": "kCrqhTH4d6jUnzGnvx6vRjMH",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "2",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "10",
"type": "line_item"
}
}
}
}
],
"meta": {
"count": 2,
"total_count": 2,
"total_pages": 1
},
"links": {
"self": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page=",
"next": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page=",
"prev": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page=",
"last": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page=",
"first": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page="
}
}
Returns a list of Digital Links
curl --request GET \
--url http://{defaultHost}/api/v2/platform/digital_links \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "1",
"type": "digital_link",
"attributes": {
"token": "K5s8uUkdD2TjL8MySKcT3d4Y",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "1",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "9",
"type": "line_item"
}
}
}
},
{
"id": "2",
"type": "digital_link",
"attributes": {
"token": "kCrqhTH4d6jUnzGnvx6vRjMH",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "2",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "10",
"type": "line_item"
}
}
}
}
],
"meta": {
"count": 2,
"total_count": 2,
"total_pages": 1
},
"links": {
"self": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page=",
"next": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page=",
"prev": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page=",
"last": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page=",
"first": "http://www.example.com/api/v2/platform/digital_links?page=1&per_page="
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Records returned
The response is of type object
.
Was this page helpful?