0
我想在我的一個wordpress.com網站(免費的wordpress.com平臺上託管的wordpress網站)上發佈文章。在Wordpress.com上發佈REST API [錯誤401,不允許]
端點,言歸正傳:https://public-api.wordpress.com/wp/v2/sites/donnadulcinea.wordpress.com/posts
隨着基本認證頭。請求(測試)的車身,
{"title":"New Rest Post"}
響應:
{
"code": "rest_cannot_create",
"message": "Sorry, you are not allowed to create posts as this user.",
"data": {
"status": 401
}
}
有什麼不對?我在哪裏可以找到最後一個在wordpress.com域上發佈的簡單發佈示例?