Skip to content

Commit 95aa699

Browse files
committed
Update example OAuth
1 parent 111bdd4 commit 95aa699

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,24 @@ Wordpress API with Basic authentication:
145145
WP REST API v2:
146146
----
147147
(Note: the username and password are required so that it can fill out the oauth request token form automatically for you.
148-
Requires OAuth 1.0a plugin. )
148+
Requires OAuth 1.0a plugin.)
149+
150+
The `callback` has to be the same as configured in WordPress in `Users / Applications`.
149151

150152
.. code-block:: python
151153
152154
#...
153155
154156
wpapi = API(
155-
url="http://example.com",
157+
url="https://example.com",
156158
consumer_key="XXXXXXXXXXXX",
157159
consumer_secret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
158160
api="wp-json",
159161
version="wp/v2",
160162
wp_user="XXXX",
161163
wp_pass="XXXX",
162164
oauth1a_3leg=True,
165+
callback="https://example.com",
163166
creds_store="~/.wc-api-creds.json"
164167
)
165168

0 commit comments

Comments
 (0)