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

I need to use GET requests to retrieve the current status of a device and then update the body of a specific Wordpress p

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745136608a4613231.html

相关推荐

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

    I need to use GET requests to retrieve the current status of a device and then update the body of a specific Wordpress p

    3小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信