Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: curl quoting of URLs #137

Merged
merged 1 commit into from
Jun 21, 2024
Merged
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
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":
Loading