Open d1rengrey opened 4 years ago
It would be something like:
>>> from wordpress_json import WordpressJsonWrapper >>> wp = WordpressJsonWrapper('http://example.com/wp-json/wp/v2', 'wp_user', 'wp_password') >>> wp.create_post(data=dict(title='A treatise', status='draft'))
Given the right version of wordpress this would work, but this library is not maintained for newer versions, so YMMV.
It would be something like:
Given the right version of wordpress this would work, but this library is not maintained for newer versions, so YMMV.