接口访问需要令牌,具体如何获取令牌请参考:身份认证
根据ID检索指定的 Publication 对象。
Arguments
id ● ID!non-null
要检索的Publication的ID
Return
catalog ● Catalog
与publication关联的目录
More
id ● ID!non-null
全球唯一的 ID。
supportsFuturePublishing ● Boolean!non-null
该Publication是否支持定时发布。
错误码
关于更多通用错误码说明,参考:状态码和错误码
Example
按ID查询Publication
query Publication {
publication(id: "gid://shopline/Publication/21230257") {
supportsFuturePublishing
id
catalog {
id
title
status
... on AppCatalog {
id
title
status
apps(first: 10) {
nodes {
appKey
id
title
embedded
}
}
}
}
}
}
Response
{
"data": {
"publication": {
"catalog": {
"apps": {
"nodes": [
{
"embedded": false,
"id": "gid://shopline/App/65095",
"title": "Facebook",
"appKey": "111afe2f9baceb93004af92b1276582619f1db26"
}
]
},
"id": "gid://shopline/Catalog/21230258",
"status": "ACTIVE",
"title": "Channel Catalog 21230257"
},
"id": "gid://shopline/Publication/21230257",
"supportsFuturePublishing": false
}
}
}
这篇文章对你有帮助吗?