File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -145,21 +145,24 @@ Wordpress API with Basic authentication:
145
145
WP REST API v2:
146
146
----
147
147
(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 `.
149
151
150
152
.. code-block :: python
151
153
152
154
# ...
153
155
154
156
wpapi = API(
155
- url = " http ://example.com" ,
157
+ url = " https ://example.com" ,
156
158
consumer_key = " XXXXXXXXXXXX" ,
157
159
consumer_secret = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
158
160
api = " wp-json" ,
159
161
version = " wp/v2" ,
160
162
wp_user = " XXXX" ,
161
163
wp_pass = " XXXX" ,
162
164
oauth1a_3leg = True ,
165
+ callback = " https://example.com" ,
163
166
creds_store = " ~/.wc-api-creds.json"
164
167
)
165
168
You can’t perform that action at this time.
0 commit comments