Last active
January 14, 2025 09:28
Revisions
-
somewherewarm-snippets revised this gist
Jan 14, 2025 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ curl -X POST --location "https://example.com/wp-json/wc/store/v1/cart/add-item" \ -u customer_key:customer_secret \ -H "Accept: application/json" \ -H "nonce: deadbeef" \ -
somewherewarm-snippets renamed this gist
Jan 14, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
somewherewarm-snippets created this gist
Jan 14, 2025 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ curl -X POST --location "https://example.com/wp-json/wc/store/v1/cart/add-item" \ --basic \ -u customer_key:customer_secret \ -H "Accept: application/json" \ -H "nonce: deadbeef" \ -H "Content-Type: application/json" \ -d '{ "id": 138, "quantity": 2, "bundle_configuration": [ { "bundled_item_id": 123, "quantity" : 2 }, { "bundled_item_id": 124, "quantity" : 1 }, { "bundled_item_id": 125, "variation_id" : 256, "quantity" : 2, "attributes" : [ { "name" : "pa_size", "option": "small" }, { "name" : "pa_colour", "option": "blue" } ] } ] }'