publications
query
需要 read_publications 权限点。
接口访问需要令牌,具体如何获取令牌请参考:身份认证
获取所有 Publication 的列表。
Example
Publications列表
Code
query Publications {
publications(first: 2) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
nodes {
supportsFuturePublishing
id
catalog {
id
title
status
... on AppCatalog {
id
title
status
apps(first: 10) {
nodes {
appKey
id
title
embedded
}
}
}
}
}
}
}
Response
{
"data": {
"publications": {
"nodes": [
{
"catalog": {
"apps": {
"nodes": [
{
"appKey": "0bb53c89feb2c3b8fc0e4fea6991bdc37344127e",
"embedded": false,
"id": "gid://shopline/App/65094",
"title": "WhatsApp"
}
]
},
"id": "gid://shopline/Catalog/21230252",
"status": "ACTIVE",
"title": "Channel Catalog 21230251"
},
"id": "gid://shopline/Publication/21230251",
"supportsFuturePublishing": false
},
{
"catalog": {
"apps": {
"nodes": [
{
"appKey": "111afe2f9baceb93004af92b1276582619f1db26",
"embedded": false,
"id": "gid://shopline/App/65095",
"title": "Facebook"
}
]
},
"id": "gid://shopline/Catalog/21230258",
"status": "ACTIVE",
"title": "Channel Catalog 21230257"
},
"id": "gid://shopline/Publication/21230257",
"supportsFuturePublishing": false
}
],
"pageInfo": {
"endCursor": "eyJsYXN0X2lkIjoyMTIzMDI1NywibGFzdF92YWx1ZSI6IjIxMjMwMjU3In0=",
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "eyJsYXN0X2lkIjoyMTIzMDI1MSwibGFzdF92YWx1ZSI6IjIxMjMwMjUxIn0="
}
}
}
}
这篇文章对你有帮助吗?
Error loading component.