@@ -40,15 +40,15 @@ Retrieve all subscribers.
4040##### Example Request
4141
4242``` shell
43- curl -u curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers?page=1&per_page=100'
43+ curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers?page=1&per_page=100'
4444```
4545
4646``` shell
47- curl -u curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers?list_id=1&list_id=2&page=1&per_page=100'
47+ curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers?list_id=1&list_id=2&page=1&per_page=100'
4848```
4949
5050``` shell
51- curl -u curl -u ' api_username:access_token' -X GET ' http://localhost:9000/api/subscribers' \
51+ curl -u ' api_username:access_token' -X GET ' http://localhost:9000/api/subscribers' \
5252 --url-query ' page=1' \
5353 --url-query ' per_page=100' \
5454 --url-query " query=subscribers.name LIKE 'Test%' AND subscribers.attribs->>'city' = 'Bengaluru'"
@@ -147,7 +147,7 @@ Retrieve a specific subscriber.
147147##### Example Request
148148
149149``` shell
150- curl -u curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers/1'
150+ curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers/1'
151151```
152152
153153##### Example Response
@@ -199,7 +199,7 @@ Export a specific subscriber data that gives profile, list subscriptions, campai
199199##### Example Request
200200
201201``` shell
202- curl -u curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers/1/export'
202+ curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers/1/export'
203203```
204204
205205##### Example Response
@@ -248,7 +248,7 @@ Get a specific subscriber bounce records.
248248##### Example Request
249249
250250``` shell
251- curl -u curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers/1/bounces'
251+ curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers/1/bounces'
252252```
253253
254254##### Example Response
@@ -312,7 +312,7 @@ Create a new subscriber.
312312##### Example Request
313313
314314``` shell
315- curl -u curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers' -H ' Content-Type: application/json' \
315+ curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers' -H ' Content-Type: application/json' \
316316 --data
' {"email":"[email protected] ","name":"The Subscriber","status":"enabled","lists":[1],"attribs":{"city":"Bengaluru","projects":3,"stack":{"languages":["go","python"]}}}' 317317```
318318
@@ -347,7 +347,7 @@ Sends optin confirmation email to subscribers.
347347##### Example Request
348348
349349``` shell
350- curl -u curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers/11/optin' -H ' Content-Type: application/json' \
350+ curl -u ' api_username:access_token' ' http://localhost:9000/api/subscribers/11/optin' -H ' Content-Type: application/json' \
351351--data {}
352352```
353353
@@ -414,7 +414,7 @@ Modify subscriber list memberships.
414414##### Example Request
415415
416416``` shell
417- curl -u curl -u ' api_username:access_token' -X PUT ' http://localhost:9000/api/subscribers/lists' \
417+ curl -u ' api_username:access_token' -X PUT ' http://localhost:9000/api/subscribers/lists' \
418418-H ' Content-Type: application/json' \
419419--data-raw ' {"ids": [1, 2, 3], "action": "add", "target_list_ids": [4, 5, 6], "status": "confirmed"}'
420420```
@@ -450,7 +450,7 @@ Blocklist a specific subscriber.
450450##### Example Request
451451
452452``` shell
453- curl -u curl -u ' api_username:access_token' -X PUT ' http://localhost:9000/api/subscribers/9/blocklist'
453+ curl -u ' api_username:access_token' -X PUT ' http://localhost:9000/api/subscribers/9/blocklist'
454454```
455455
456456##### Example Response
@@ -476,7 +476,7 @@ Blocklist multiple subscriber.
476476##### Example Request
477477
478478``` shell
479- curl -u curl -u ' api_username:access_token' -X PUT ' http://localhost:8080/api/subscribers/blocklist' -H ' Content-Type: application/json' --data-raw ' {"ids":[2,1]}'
479+ curl -u ' api_username:access_token' -X PUT ' http://localhost:8080/api/subscribers/blocklist' -H ' Content-Type: application/json' --data-raw ' {"ids":[2,1]}'
480480```
481481
482482##### Example Response
@@ -505,7 +505,7 @@ Blocklist subscribers based on SQL expression.
505505##### Example Request
506506
507507``` shell
508- curl -u curl -u ' api_username:access_token' -X POST ' http://localhost:9000/api/subscribers/query/blocklist' \
508+ curl -u ' api_username:access_token' -X POST ' http://localhost:9000/api/subscribers/query/blocklist' \
509509-H ' Content-Type: application/json' \
510510--data-raw ' {"query":"subscribers.name LIKE \' John Doe\' AND subscribers.attribs->> ' \' ' city' \' ' = ' \' ' Bengaluru' \' ' "}'
511511```
@@ -533,7 +533,7 @@ Delete a specific subscriber.
533533##### Example Request
534534
535535``` shell
536- curl -u curl -u ' api_username:access_token' -X DELETE ' http://localhost:9000/api/subscribers/9'
536+ curl -u ' api_username:access_token' -X DELETE ' http://localhost:9000/api/subscribers/9'
537537```
538538
539539##### Example Response
@@ -559,7 +559,7 @@ Delete a subscriber's bounce records
559559##### Example Request
560560
561561``` shell
562- curl -u curl -u ' api_username:access_token' -X DELETE ' http://localhost:9000/api/subscribers/9/bounces'
562+ curl -u ' api_username:access_token' -X DELETE ' http://localhost:9000/api/subscribers/9/bounces'
563563```
564564
565565##### Example Response
@@ -585,7 +585,7 @@ Delete one or more subscribers.
585585##### Example Request
586586
587587``` shell
588- curl -u curl -u ' api_username:access_token' -X DELETE ' http://localhost:9000/api/subscribers?id=10&id=11'
588+ curl -u ' api_username:access_token' -X DELETE ' http://localhost:9000/api/subscribers?id=10&id=11'
589589```
590590
591591##### Example Response
@@ -613,7 +613,7 @@ Delete subscribers based on SQL expression.
613613##### Example Request
614614
615615``` shell
616- curl -u curl -u ' api_username:access_token' -X POST ' http://localhost:9000/api/subscribers/query/delete' \
616+ curl -u ' api_username:access_token' -X POST ' http://localhost:9000/api/subscribers/query/delete' \
617617-H ' Content-Type: application/json' \
618618--data-raw ' {"query":"subscribers.name LIKE \' John Doe\' AND subscribers.attribs->> ' \' ' city' \' ' = ' \' ' Bengaluru' \' ' "}'
619619```
0 commit comments