更新:这是过去几天的临时问题。
我开发了一个python apple news api 客户端,并成功将文章推送到我的apple news channel 中进行预览。无论如何,当我检查那些文章的状态时,大多数都是 FAILED_PROCESSING。只有一个上线但没有图像(动画 GIF)。
没有关于错误的详细信息,我无法猜测出了什么问题。文章在新闻预览工具中看起来不错。有人知道吗?有什么办法可以调试问题?
谢谢!
>>>api_key = 'xxxxx'
>>>secret_key = 'xxxx'
>>>channel_id = 'xxxx'
>>>client = ApiClient(api_key, secret_key, channel_id=channel_id)
>>>articles = client.search_articles()
>>>articles
{u'data': [{u'accessoryText': None,
u'createdAt': u'2016-04-27T08:36:35Z',
u'id': u'xxxxx',
u'isCandidateToBeFeatured': False,
u'isDevelopingStory': False,
u'isPreview': True,
u'isSponsored': False,
u'links': {u'channel': u'https://news-api.apple.com/channels/xxxxx',
u'sections': [u'https://news-api.apple.com/sections/xxxxx'],
u'self': u'https://news-api.apple.com/articles/xxxxx'},
u'modifiedAt': u'2016-04-27T08:36:47Z',
u'revision': u'AAAAAAAAAAD//////////w==',
u'shareUrl': u'https://apple.news/xxxxxx',
u'state': u'FAILED_PROCESSING',
u'title': u'Test 1',
u'type': u'article'},
....
{u'accessoryText': None,
u'createdAt': u'2016-04-14T07:07:27Z',
u'id': u'xxxx',
u'isCandidateToBeFeatured': False,
u'isDevelopingStory': False,
u'isPreview': True,
u'isSponsored': False,
u'links': {u'channel': u'https://news-api.apple.com/channels/xxxx',
u'sections': [u'https://news-api.apple.com/sections/xxxx'],
u'self': u'https://news-api.apple.com/articles/xxxx'},
u'modifiedAt': u'2016-04-14T07:07:45Z',
u'revision': u'AAAAAAAAAAD//////////w==',
u'shareUrl': u'https://apple.news/xxxx',
u'state': u'LIVE',
u'title': u"Test 2",
u'type': u'article'}],
u'links': {u'next': None,
u'self': u'https://news-api.apple.com/channels/xxxx/articles'}}