Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i create new post? #21

Open
d1rengrey opened this issue Nov 24, 2019 · 1 comment
Open

How can i create new post? #21

d1rengrey opened this issue Nov 24, 2019 · 1 comment

Comments

@d1rengrey
Copy link

No description provided.

@happyraul
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants