You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
Wordpress API - Python Client
2
2
===============================
3
3
4
-
A Python wrapper for the Wordpress REST API that also works on the WooCommerce REST API v1-3 and WooCommerce WP-API v1.
5
-
Forked from the excellent Wordpress API written by Claudio Sanches @ WooThemes and modified to work with Wordpress: https://github.com/woocommerce/wc-api-python
4
+
A Python wrapper for the Wordpress REST API v1-2 that also works on the WooCommerce REST API v1-3 and WooCommerce WP-API v1.
5
+
Forked from the excellent Woocommerce API written by Claudio Sanches and modified to work with Wordpress: https://github.com/woocommerce/wc-api-python
6
6
7
7
I created this fork because I prefer the way that the wc-api-python client interfaces with
8
8
the Wordpress API compared to the existing python client, https://pypi.python.org/pypi/wordpress_json
@@ -18,9 +18,11 @@ Roadmap
18
18
Requirements
19
19
------------
20
20
21
+
Wordpress version 4.7+ comes pre-installed with REST API v2, so you don't need to have the WP REST API plugin if you have the latest Wordpress.
22
+
21
23
You should have the following plugins installed on your wordpress site:
22
24
23
-
- **WP REST API** (recommended version: 2.0+)
25
+
- **WP REST API** (recommended version: 2.0+, only required for WP < v4.7)
24
26
- **WP REST API - OAuth 1.0a Server** (https://github.com/WP-API/OAuth1)
25
27
- **WP REST API - Meta Endpoints** (optional)
26
28
@@ -60,6 +62,10 @@ Getting started
60
62
61
63
Generate API credentials (Consumer Key & Consumer Secret) following these instructions: http://v2.wp-api.org/guide/authentication/
62
64
65
+
Simply go to Users -> Applications and create an Application, e.g. "REST API".
66
+
Enter a callback URL that you will be able to remember later such as "http://example.com/oauth1_callback" (not really important for this client).
67
+
Store the resulting Key and Secret somewhere safe.
68
+
63
69
Check out the Wordpress API endpoints and data that can be manipulated in http://v2.wp-api.org/reference/.
0 commit comments