From 8c39aa13ddf893f9e4978922466cedd3050c28e0 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Fri, 21 Jun 2024 09:52:23 -0600 Subject: [PATCH] fix: curl quoting of URLs --- official/docs/curl/current/addresses/list.sh | 2 +- official/docs/curl/current/batches/list.sh | 2 +- official/docs/curl/current/billing/create-ep-credit-card.sh | 2 +- official/docs/curl/current/billing/create-referral-token.sh | 2 +- official/docs/curl/current/child-users/list.sh | 2 +- official/docs/curl/current/endshipper/list.sh | 2 +- official/docs/curl/current/events/list.sh | 2 +- official/docs/curl/current/insurance/list.sh | 2 +- official/docs/curl/current/pagination/get-next-page.sh | 4 ++-- official/docs/curl/current/pickups/list.sh | 2 +- official/docs/curl/current/rates/retrieve-stateless.sh | 2 +- .../add-payment-method-with-bank-account.sh | 2 +- .../referral-customers/add-payment-method-with-credit-card.sh | 2 +- official/docs/curl/current/referral-customers/create.sh | 2 +- official/docs/curl/current/referral-customers/list.sh | 2 +- .../docs/curl/current/referral-customers/refund-by-amount.sh | 2 +- .../curl/current/referral-customers/refund-by-payment-log.sh | 2 +- official/docs/curl/current/referral-customers/update.sh | 2 +- official/docs/curl/current/refunds/list.sh | 2 +- official/docs/curl/current/reports/list.sh | 2 +- official/docs/curl/current/scan-form/list.sh | 2 +- official/docs/curl/current/shipments/list.sh | 2 +- official/docs/curl/current/trackers/list.sh | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/official/docs/curl/current/addresses/list.sh b/official/docs/curl/current/addresses/list.sh index a7ab340a..b5d57cfe 100644 --- a/official/docs/curl/current/addresses/list.sh +++ b/official/docs/curl/current/addresses/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/addresses?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/addresses?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/batches/list.sh b/official/docs/curl/current/batches/list.sh index 260be4a7..e1481bea 100644 --- a/official/docs/curl/current/batches/list.sh +++ b/official/docs/curl/current/batches/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/batches?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/batches?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/billing/create-ep-credit-card.sh b/official/docs/curl/current/billing/create-ep-credit-card.sh index 28db2e07..96374098 100644 --- a/official/docs/curl/current/billing/create-ep-credit-card.sh +++ b/official/docs/curl/current/billing/create-ep-credit-card.sh @@ -1,4 +1,4 @@ -curl -X POST "https://api.easypost.com/v2/credit_cards" \ +curl -X POST https://api.easypost.com/v2/credit_cards \ -u "$REFERRAL_USER_API_KEY": \ -H "Content-Type: application/json" \ -d '{ diff --git a/official/docs/curl/current/billing/create-referral-token.sh b/official/docs/curl/current/billing/create-referral-token.sh index 01d1d69c..26ae0bef 100644 --- a/official/docs/curl/current/billing/create-referral-token.sh +++ b/official/docs/curl/current/billing/create-referral-token.sh @@ -1,2 +1,2 @@ -curl -X GET "https://api.easypost.com/v2/partners/stripe_public_key" \ +curl -X GET https://api.easypost.com/v2/partners/stripe_public_key \ -u "$PARTNER_API_KEY": diff --git a/official/docs/curl/current/child-users/list.sh b/official/docs/curl/current/child-users/list.sh index 071da0b9..a42a892d 100644 --- a/official/docs/curl/current/child-users/list.sh +++ b/official/docs/curl/current/child-users/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/users/children?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/users/children?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/endshipper/list.sh b/official/docs/curl/current/endshipper/list.sh index bf0e71c2..cf565a54 100644 --- a/official/docs/curl/current/endshipper/list.sh +++ b/official/docs/curl/current/endshipper/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/end_shippers?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/end_shippers?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/events/list.sh b/official/docs/curl/current/events/list.sh index c451e582..b647af1c 100644 --- a/official/docs/curl/current/events/list.sh +++ b/official/docs/curl/current/events/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/events?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/events?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/insurance/list.sh b/official/docs/curl/current/insurance/list.sh index a7800c23..88905cfa 100644 --- a/official/docs/curl/current/insurance/list.sh +++ b/official/docs/curl/current/insurance/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/insurances?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/insurances?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/pagination/get-next-page.sh b/official/docs/curl/current/pagination/get-next-page.sh index ad45a6d7..d1dd76c6 100644 --- a/official/docs/curl/current/pagination/get-next-page.sh +++ b/official/docs/curl/current/pagination/get-next-page.sh @@ -1,7 +1,7 @@ # Get first page of results -curl -X 'GET https://api.easypost.com/v2/shipments?page_size=5' \ +curl -X GET "https://api.easypost.com/v2/shipments?page_size=5" \ -u "EASYPOST_API_KEY": # Provide the ID of the last element of the previous page in the before_id param -curl -X 'GET https://api.easypost.com/v2/shipments?page_size=5&before_id=shp_...' \ +curl -X GET "https://api.easypost.com/v2/shipments?page_size=5&before_id=shp_..." \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/pickups/list.sh b/official/docs/curl/current/pickups/list.sh index 23c4f010..fe4646f5 100644 --- a/official/docs/curl/current/pickups/list.sh +++ b/official/docs/curl/current/pickups/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/pickups?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/pickups?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/rates/retrieve-stateless.sh b/official/docs/curl/current/rates/retrieve-stateless.sh index d8ea305f..8b345b47 100644 --- a/official/docs/curl/current/rates/retrieve-stateless.sh +++ b/official/docs/curl/current/rates/retrieve-stateless.sh @@ -1,4 +1,4 @@ -$ curl -X POST "https://api.easypost.com/beta/rates" \ +$ curl -X POST https://api.easypost.com/beta/rates \ -u "EASYPOST_API_KEY": \ -H "Content-Type: application/json" \ -d '{ diff --git a/official/docs/curl/current/referral-customers/add-payment-method-with-bank-account.sh b/official/docs/curl/current/referral-customers/add-payment-method-with-bank-account.sh index 13eab79c..fa9b48b2 100644 --- a/official/docs/curl/current/referral-customers/add-payment-method-with-bank-account.sh +++ b/official/docs/curl/current/referral-customers/add-payment-method-with-bank-account.sh @@ -1,4 +1,4 @@ -curl -X POST "https://api.easypost.com/beta/referral_customers/payment_method" \ +curl -X POST https://api.easypost.com/beta/referral_customers/payment_method \ -u "$REFERRAL_USER_API_KEY": \ -H "Content-Type: application/json" \ -d '{ diff --git a/official/docs/curl/current/referral-customers/add-payment-method-with-credit-card.sh b/official/docs/curl/current/referral-customers/add-payment-method-with-credit-card.sh index 97987883..f0fc8c2f 100644 --- a/official/docs/curl/current/referral-customers/add-payment-method-with-credit-card.sh +++ b/official/docs/curl/current/referral-customers/add-payment-method-with-credit-card.sh @@ -1,4 +1,4 @@ -curl -X POST "https://api.easypost.com/beta/referral_customers/payment_method" \ +curl -X POST https://api.easypost.com/beta/referral_customers/payment_method \ -u "$REFERRAL_USER_API_KEY": \ -H "Content-Type: application/json" \ -d '{ diff --git a/official/docs/curl/current/referral-customers/create.sh b/official/docs/curl/current/referral-customers/create.sh index c32fc5e4..8c4ddedd 100644 --- a/official/docs/curl/current/referral-customers/create.sh +++ b/official/docs/curl/current/referral-customers/create.sh @@ -1,4 +1,4 @@ -curl -X POST "https://api.easypost.com/v2/referral_customers" \ +curl -X POST https://api.easypost.com/v2/referral_customers \ -u "$PARTNER_API_KEY": \ -H "Content-Type: application/json" \ -d '{ diff --git a/official/docs/curl/current/referral-customers/list.sh b/official/docs/curl/current/referral-customers/list.sh index 5c29b2e8..61d3a9d6 100644 --- a/official/docs/curl/current/referral-customers/list.sh +++ b/official/docs/curl/current/referral-customers/list.sh @@ -1,2 +1,2 @@ -curl -X GET "https://api.easypost.com/v2/referral_customers" \ +curl -X GET https://api.easypost.com/v2/referral_customers \ -u "$PARTNER_API_KEY": diff --git a/official/docs/curl/current/referral-customers/refund-by-amount.sh b/official/docs/curl/current/referral-customers/refund-by-amount.sh index 7c037464..39af66d7 100644 --- a/official/docs/curl/current/referral-customers/refund-by-amount.sh +++ b/official/docs/curl/current/referral-customers/refund-by-amount.sh @@ -1,4 +1,4 @@ -curl -x POST "https://api.easypost.com/beta/referral_customers/refunds" \ +curl -x POST https://api.easypost.com/beta/referral_customers/refunds \ -u "$REFERRAL_USER_API_KEY": \ -H 'Content-Type: application/json' \ -d '{ diff --git a/official/docs/curl/current/referral-customers/refund-by-payment-log.sh b/official/docs/curl/current/referral-customers/refund-by-payment-log.sh index 34d3f565..7ae09987 100644 --- a/official/docs/curl/current/referral-customers/refund-by-payment-log.sh +++ b/official/docs/curl/current/referral-customers/refund-by-payment-log.sh @@ -1,4 +1,4 @@ -curl -x POST "https://api.easypost.com/beta/referral_customers/refunds" \ +curl -x POST https://api.easypost.com/beta/referral_customers/refunds \ -u "$REFERRAL_USER_API_KEY": \ -H 'Content-Type: application/json' \ -d '{ diff --git a/official/docs/curl/current/referral-customers/update.sh b/official/docs/curl/current/referral-customers/update.sh index 58ce9dbc..463119de 100644 --- a/official/docs/curl/current/referral-customers/update.sh +++ b/official/docs/curl/current/referral-customers/update.sh @@ -1,4 +1,4 @@ -curl -X PUT "https://api.easypost.com/v2/referral_customers" \ +curl -X PUT https://api.easypost.com/v2/referral_customers \ -u "$REFERRAL_USER_API_KEY": \ -H "Content-Type: application/json" \ -d '{ diff --git a/official/docs/curl/current/refunds/list.sh b/official/docs/curl/current/refunds/list.sh index 3208a7ad..db1c74e8 100644 --- a/official/docs/curl/current/refunds/list.sh +++ b/official/docs/curl/current/refunds/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/refunds?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/refunds?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/reports/list.sh b/official/docs/curl/current/reports/list.sh index b61301fd..d4bf9d73 100644 --- a/official/docs/curl/current/reports/list.sh +++ b/official/docs/curl/current/reports/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/reports/payment_log?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/reports/payment_log?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/scan-form/list.sh b/official/docs/curl/current/scan-form/list.sh index a9873ba4..27fb7779 100644 --- a/official/docs/curl/current/scan-form/list.sh +++ b/official/docs/curl/current/scan-form/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/scan_forms?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/scan_forms?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/shipments/list.sh b/official/docs/curl/current/shipments/list.sh index c174fd63..5a93d462 100644 --- a/official/docs/curl/current/shipments/list.sh +++ b/official/docs/curl/current/shipments/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/shipments?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/shipments?page_size=5" \ -u "EASYPOST_API_KEY": diff --git a/official/docs/curl/current/trackers/list.sh b/official/docs/curl/current/trackers/list.sh index 0ac18e95..2002e8f4 100644 --- a/official/docs/curl/current/trackers/list.sh +++ b/official/docs/curl/current/trackers/list.sh @@ -1,2 +1,2 @@ -curl -X GET https://api.easypost.com/v2/trackers?page_size=5 \ +curl -X GET "https://api.easypost.com/v2/trackers?page_size=5" \ -u "EASYPOST_API_KEY":