Skip to content

Commit 5cb2728

Browse files
committed
Transformed in an one-liner
1 parent ade9eb9 commit 5cb2728

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/pages/api/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,9 @@ export default function Api() {
137137
>
138138
<ClientCodeWrapper>
139139
<CodeBlock title="cURL" language='bash'>
140-
{`# Prepare Actor input
141-
echo '{ "searchStringsArray": ["Apify"] }' > input.json
142-
143-
# Run the Actor and retreive its default dataset content.
144-
curl -X POST -d @input.json \\
140+
{`# Prepare Actor input and run it synchronously
141+
echo '{ "searchStringsArray": ["Apify"] }' |
142+
curl -X POST -d @- \\
145143
-H 'Content-Type: application/json' \\
146144
-H 'Authorization: Bearer <YOUR_API_TOKEN>' \\
147145
-L 'https://api.apify.com/v2/acts/compass~crawler-google-places/run-sync-get-dataset-items'

0 commit comments

Comments
 (0)