Skip to content

Commit

Permalink
fix sqlpage fetch example
Browse files Browse the repository at this point in the history
thanks to jlm for reporting the issue
  • Loading branch information
lovasoa committed Dec 29, 2024
1 parent 7e6b260 commit f4ef9a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/official-site/sqlpage/migrations/40_fetch.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ more information on how to build JSON objects in your database.
```sql
set request = json_object(
''method'', ''POST''
''method'', ''POST'',
''url'', ''https://postman-echo.com/post'',
''headers'', json_object(
''Content-Type'', ''application/json'',
''Authorization'', ''Bearer '' || sqlpage.environment_variable(''MY_API_TOKEN'')
),
''body'', json_object(
''Hello'', ''world'',
),
''Hello'', ''world''
)
);
set api_results = sqlpage.fetch($request);
Expand Down

0 comments on commit f4ef9a8

Please sign in to comment.