2017-05-31 16 views
0

下面我有,我想連接到蘋果新聞和測試的article.json文件(如此命名):如何在使用終端發佈到Apple News時指定文章目錄?

{ 
"version": "1.4", 
"identifier": "TestArticle", 
"title": "My First Article", 
"language": "en", 
"layout": { "columns": 1}, 
"components": [ 
    { 
     "role": "title", 
     "text": "My First Article" 
    }, 
    { 
     "role": "body", 
     "text": "This is just over the minimum amount of JSON required to create a valid article in Apple News Format. If you were to delete the dictionary enclosing this text, you'd be there." 
    } 
], 
"componentTextStyles": { 
    "fontName": "Lato", 
    "textColor": "#000", 
    "linkStyle": { 
    "highlight": { 
     "color": "#358fd4" 
    } 
    } 
} 

我下載Xcode和必要的紅寶石寶石,輸入相關命令行。正如文檔中指定的,我的.papi文件格式正確,因爲它成功讀取了我的頻道信息。根據蘋果的自述,這是我進入發表文章的命令:

papi-client article publish <Article Directory> 

的問題是,我不知道到底該文章的目錄是什麼,或者如何找到它。據我所知,我會創建類似上面的「article.json」文件,並可能將其用作目錄。我甚至嘗試過使用該文件的文件路徑,但沒有成功。有人能告訴我我的下一步行動嗎?

感謝,

泰勒

回答

0

地點與任何地方的聯繫,即束沿文章://,文件夾中的內容,然後使用該文件夾作爲文章目錄。

相關問題