Skip to content

Commit 7e622a2

Browse files
committed
build changes
1 parent 420140f commit 7e622a2

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

dist/doc/terminal/virtual-terminal/create-virtual-terminal.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,16 @@ const php = `<?php
6969
?>
7070
`
7171

72-
const sh = `#!/bin/sh
73-
74-
url="https://api.paystack.co/virtual_terminal"
75-
authorization="Authorization: Bearer YOUR_SECRET_KEY"
76-
content_type="Content-Type: application/json"
77-
data='{
72+
const sh = `curl "https://api.paystack.co/virtual_terminal" \
73+
-H "Authorization: Bearer YOUR_SECRET_KEY" \
74+
-H "Content-Type: application/json" \
75+
-d '{
7876
"name": "Sales Point #1",
7977
"destinations": [
8078
{"target": "+2347081234567"}
8179
]
82-
}'
83-
84-
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
80+
}' \
81+
-X POST`
8582

8683
const json = `{
8784
"status": true,

0 commit comments

Comments
 (0)