Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion source/includes/v2/_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ wcapi = API(
url="http://example.com",
consumer_key="consumer_key",
consumer_secret="consumer_secret",
version="v2"
version="v2",
user_agent="sample.org", # Your sample user agent
)
```

Expand Down
3 changes: 2 additions & 1 deletion source/includes/v3/_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ wcapi = API(
url="http://example.com", # Your store URL
consumer_key="consumer_key", # Your consumer key
consumer_secret="consumer_secret", # Your consumer secret
version="v3" # WooCommerce API version
version="v3", # WooCommerce API version
user_agent="sample.org", # Your sample user agent
)
```

Expand Down
6 changes: 4 additions & 2 deletions source/includes/wp-api-v1/_authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ wcapi = API(
consumer_key="consumer_key",
consumer_secret="consumer_secret",
wp_api=True,
version="wc/v1"
version="wc/v1",
user_agent="sample.org", # Your sample user agent
)
```

Expand Down Expand Up @@ -269,7 +270,8 @@ wcapi = API(
consumer_secret="consumer_secret",
wp_api=True,
version="wc/v1",
query_string_auth=True // Force Basic Authentication as query string true and using under HTTPS
user_agent="sample.org", # Your sample user agent
query_string_auth=True # Force Basic Authentication as query string true and using under HTTPS
)
```

Expand Down
3 changes: 2 additions & 1 deletion source/includes/wp-api-v1/_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ wcapi = API(
consumer_key="consumer_key", # Your consumer key
consumer_secret="consumer_secret", # Your consumer secret
wp_api=True, # Enable the WP REST API integration
version="wc/v1" # WooCommerce WP REST API version
version="wc/v1", # WooCommerce WP REST API version
user_agent="sample.org", # Your sample user agent
)
```

Expand Down
6 changes: 4 additions & 2 deletions source/includes/wp-api-v2/_authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ wcapi = API(
consumer_key="consumer_key",
consumer_secret="consumer_secret",
wp_api=True,
version="wc/v2"
version="wc/v2",
user_agent="sample.org", # Your sample user agent
)
```

Expand Down Expand Up @@ -271,7 +272,8 @@ wcapi = API(
consumer_secret="consumer_secret",
wp_api=True,
version="wc/v2",
query_string_auth=True // Force Basic Authentication as query string true and using under HTTPS
user_agent="sample.org", # Your sample user agent
query_string_auth=True # Force Basic Authentication as query string true and using under HTTPS
)
```

Expand Down
3 changes: 2 additions & 1 deletion source/includes/wp-api-v2/_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ wcapi = API(
consumer_key="consumer_key", # Your consumer key
consumer_secret="consumer_secret", # Your consumer secret
wp_api=True, # Enable the WP REST API integration
version="wc/v2" # WooCommerce WP REST API version
version="wc/v2", # WooCommerce WP REST API version
user_agent="sample.org", # Your sample user agent
)
```

Expand Down
6 changes: 4 additions & 2 deletions source/includes/wp-api-v3/_authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ wcapi = API(
consumer_key="consumer_key",
consumer_secret="consumer_secret",
wp_api=True,
version="wc/v3"
version="wc/v3",
user_agent="sample.org", # Your sample user agent
)
```

Expand Down Expand Up @@ -273,7 +274,8 @@ wcapi = API(
consumer_secret="consumer_secret",
wp_api=True,
version="wc/v3",
query_string_auth=True // Force Basic Authentication as query string true and using under HTTPS
user_agent="sample.org", # Your sample user agent
query_string_auth=True, # Force Basic Authentication as query string true and using under HTTPS
)
```

Expand Down
3 changes: 2 additions & 1 deletion source/includes/wp-api-v3/_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ wcapi = API(
consumer_key="consumer_key", # Your consumer key
consumer_secret="consumer_secret", # Your consumer secret
wp_api=True, # Enable the WP REST API integration
version="wc/v3" # WooCommerce WP REST API version
version="wc/v3", # WooCommerce WP REST API version
user_agent="sample.org", # Your sample user agent
)
```

Expand Down