Skip to content

Commit ea69b15

Browse files
authored
Merge pull request #17 from ScrapeGraphAI/adding-https-moc
hotfix
2 parents 26a810e + 54fff78 commit ea69b15

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sdks/mocking.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,20 +354,16 @@ export SGAI_MOCK_RESPONSES='{
354354
"total_credits_used": 0,
355355
"mock": true
356356
},
357-
"/v1/smartscraper/start": {
358-
"job_id": "mock-job-123",
359-
"status": "processing",
360-
"mock": true
361-
}
362357
}'
363358

364359
# Test smartscraper endpoint
365-
curl -X POST "https://api.scrapegraph.ai/v1/smartscraper/start" \
360+
curl -X POST "https://api.scrapegraph.ai/v1/smartscraper/" \
366361
-H "Authorization: Bearer $SGAI_API_KEY" \
367362
-H "Content-Type: application/json" \
368363
-d '{
369364
"website_url": "https://example.com",
370365
"user_prompt": "Extract title and content"
366+
"mock": true
371367
}'
372368
```
373369

0 commit comments

Comments
 (0)