Skip to content

Commit fe508dc

Browse files
committed
multiline bash examples
1 parent a0e2335 commit fe508dc

6 files changed

+32
-6
lines changed

payments/search/bash/basic.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ ACCESS_TOKEN=`curl -s -X POST -H 'content-type: application/x-www-form-urlencode
33

44
curl -X GET \
55
-H "accept: application/json" \
6-
"https://api.mercadolibre.com/collections/search?access_token=$ACCESS_TOKEN&status=approved&offset=0&limit=10"
6+
"https://api.mercadolibre.com/collections/search" \
7+
-d "access_token=$ACCESS_TOKEN" \
8+
-d "status=approved" \
9+
-d "offset=0" \
10+
-d "limit=10"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
curl -X GET \
22
-H "accept: application/json" \
3-
"https://api.mercadolibre.com/collections/search?access_token=$ACCESS_TOKEN&payment_type=credit_card&operation_type=regular_payment&range=date_created&begin_date=2014-10-21T00:00:00Z&end_date=2014-10-25T24:00:00Z"
3+
"https://api.mercadolibre.com/collections/search"
4+
-d "access_token=$ACCESS_TOKEN" \
5+
-d "payment_type=credit_card" \
6+
-d "operation_type=regular_payment" \
7+
-d "range=date_created" \
8+
-d "begin_date=2014-10-21T00:00:00Z" \
9+
-d "end_date=2014-10-25T24:00:00Z"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
curl -X GET \
22
-H "accept: application/json" \
3-
"https://api.mercadolibre.com/collections/search?access_token=$ACCESS_TOKEN&status=approved&operation_type=regular_payment&range=date_created&begin_date=NOW-1MONTH&end_date=NOW"
3+
"https://api.mercadolibre.com/collections/search" \
4+
-d "access_token=$ACCESS_TOKEN" \
5+
-d "status=approved" \
6+
-d "operation_type=regular_payment" \
7+
-d "range=date_created" \
8+
-d "begin_date=NOW-1MONTH" \
9+
-d "end_date=NOW"
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
curl -X GET \
22
-H "accept: application/json" \
3-
"https://api.mercadolibre.com/collections/search?access_token=$ACCESS_TOKEN&operation_type=regular_payment&[email protected]%[email protected]"
3+
"https://api.mercadolibre.com/collections/search" \
4+
-d "access_token=$ACCESS_TOKEN" \
5+
-d "operation_type=regular_payment" \
6+
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
curl -X GET \
22
-H "accept: application/json" \
3-
"https://api.mercadolibre.com/collections/search?access_token=$ACCESS_TOKEN&external_reference=ext1425"
3+
"https://api.mercadolibre.com/collections/search" \
4+
-d "access_token=$ACCESS_TOKEN" \
5+
-d "external_reference=ext1425"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
curl -X GET \
22
-H "accept: application/json" \
3-
"https://api.mercadolibre.com/collections/search?access_token=$ACCESS_TOKEN&payment_type=credit_card&operation_type=regular_payment&installments=12&reason=Your-item-title"
3+
"https://api.mercadolibre.com/collections/search" \
4+
-d "access_token=$ACCESS_TOKEN" \
5+
-d "payment_type=credit_card" \
6+
-d "operation_type=regular_payment" \
7+
-d "installments=12" \
8+
-d "reason=Your-item-title"

0 commit comments

Comments
 (0)