最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

rest api - Update a post based on results from GET request to another server

programmeradmin0浏览0评论

I need to use GET requests to retrieve the current status of a device and then update the body of a specific Wordpress post with the text data sent by the external device (for reference, it will use the following format: "YYYY-MM-DD|HH:MM:SS|VALUE1|VALUE2").

Originally I was hoping to make the device send POST requests to Wordpress through the REST API, but the device doesn't support POST requests.

Any ideas? Maybe pass the result of the GET requests as arguments for WP-CLI commands, is that at all possible?

Any thoughts are appreciated.

EDIT: added clarifying info.

发布评论

评论列表(0)

  1. 暂无评论