Skip to content

Commit

Permalink
fix: curl quoting of URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Jun 21, 2024
1 parent eb189a7 commit 8c39aa1
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion official/docs/curl/current/addresses/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/batches/list.sh
Original file line number Diff line number Diff line change
@@ -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":
Original file line number Diff line number Diff line change
@@ -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 '{
Expand Down
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/child-users/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/endshipper/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/events/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/insurance/list.sh
Original file line number Diff line number Diff line change
@@ -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":
4 changes: 2 additions & 2 deletions official/docs/curl/current/pagination/get-next-page.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/pickups/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/rates/retrieve-stateless.sh
Original file line number Diff line number Diff line change
@@ -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 '{
Expand Down
Original file line number Diff line number Diff line change
@@ -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 '{
Expand Down
Original file line number Diff line number Diff line change
@@ -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 '{
Expand Down
2 changes: 1 addition & 1 deletion official/docs/curl/current/referral-customers/create.sh
Original file line number Diff line number Diff line change
@@ -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 '{
Expand Down
2 changes: 1 addition & 1 deletion official/docs/curl/current/referral-customers/list.sh
Original file line number Diff line number Diff line change
@@ -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":
Original file line number Diff line number Diff line change
@@ -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 '{
Expand Down
Original file line number Diff line number Diff line change
@@ -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 '{
Expand Down
2 changes: 1 addition & 1 deletion official/docs/curl/current/referral-customers/update.sh
Original file line number Diff line number Diff line change
@@ -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 '{
Expand Down
2 changes: 1 addition & 1 deletion official/docs/curl/current/refunds/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/reports/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/scan-form/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/shipments/list.sh
Original file line number Diff line number Diff line change
@@ -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":
2 changes: 1 addition & 1 deletion official/docs/curl/current/trackers/list.sh
Original file line number Diff line number Diff line change
@@ -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":

0 comments on commit 8c39aa1

Please sign in to comment.