File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,26 @@ Example of returned data:
122
122
>>> r.json ()
123
123
{u' products' : [{u' sold_individually' : False,... // Dictionary data
124
124
125
+ Request with ` params` example
126
+ -----------------------------
127
+
128
+ .. code-block:: python
129
+
130
+ from woocommerce import API
131
+
132
+ wcapi = API(
133
+ url=" http://example.com" ,
134
+ consumer_key=" ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
135
+ consumer_secret=" cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
136
+ version=" wc/v3"
137
+ )
138
+
139
+ # Force delete example.
140
+ print(wcapi.delete(" products/100" , params={" force" : True}).json ())
141
+
142
+ # Query example.
143
+ print(wcapi.get(" products" , params={" per_page" : 20}).json ())
144
+
125
145
126
146
Changelog
127
147
---------
You can’t perform that action at this time.
0 commit comments