Skip to content

Commit 3f5bad1

Browse files
committed
Fix incorrent curl command in docs.
1 parent fce46b2 commit 3f5bad1

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

docs/docs/content/apis/bounces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ To delete all bounces.
9494
##### Example Request
9595

9696
```shell
97-
curl -u curl -u 'api_username:access_token' -X DELETE 'http://localhost:9000/api/bounces?all=true'
97+
curl -u 'api_username:access_token' -X DELETE 'http://localhost:9000/api/bounces?all=true'
9898
```
9999

100100
##### Example Response
@@ -120,7 +120,7 @@ To delete multiple bounce records.
120120
##### Example Request
121121

122122
```shell
123-
curl -u curl -u 'api_username:access_token' -X DELETE 'http://localhost:9000/api/bounces?id=840965&id=840168&id=840879'
123+
curl -u 'api_username:access_token' -X DELETE 'http://localhost:9000/api/bounces?id=840965&id=840168&id=840879'
124124
```
125125

126126
##### Example Response
@@ -140,7 +140,7 @@ To delete specific bounce id.
140140
##### Example Request
141141

142142
```shell
143-
curl -u curl -u 'api_username:access_token' -X DELETE 'http://localhost:9000/api/bounces/840965'
143+
curl -u 'api_username:access_token' -X DELETE 'http://localhost:9000/api/bounces/840965'
144144
```
145145

146146
##### Example Response

docs/docs/content/apis/lists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Delete a specific subscriber.
229229
##### Example Request
230230

231231
```shell
232-
curl -u curl -u 'api_username:access_token' -X DELETE 'http://localhost:9000/api/lists/1'
232+
curl -u 'api_username:access_token' -X DELETE 'http://localhost:9000/api/lists/1'
233233
```
234234

235235
##### Example Response

docs/docs/content/apis/media.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Retrieve a specific media.
5151
##### Example Request
5252

5353
```shell
54-
curl -u curl -u 'api_username:access_token' 'http://localhost:9000/api/media/7'
54+
curl -u 'api_username:access_token' 'http://localhost:9000/api/media/7'
5555
```
5656

5757
##### Example Response

docs/docs/content/apis/subscribers.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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
```

docs/docs/content/bounces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The bounce webhook API can be used to record bounce events with custom scripting
3333

3434

3535
```shell
36-
curl -u curl -u 'api_username:access_token' -X POST 'http://localhost:9000/webhooks/bounce' \
36+
curl -u 'api_username:access_token' -X POST 'http://localhost:9000/webhooks/bounce' \
3737
-H "Content-Type: application/json" \
3838
--data '{"email": "[email protected]", "campaign_uuid": "9f86b50d-5711-41c8-ab03-bc91c43d711b", "source": "api", "type": "hard", "meta": "{\"additional\": \"info\"}}'
3939

0 commit comments

Comments
 (0)