Getting error when I trying to do a GET #313
Unanswered
Ridermansb
asked this question in
Errors
Replies: 1 comment
-
|
The following snippet works fine for me. Maybe it was how the let clockifyApiKey = await env("CLOCKIFY_API_KEY", {
secret: true,
})
let workspacesResponse = await get(
"https://api.clockify.me/api/v1/workspaces",
{
headers: {
"X-Api-Key": clockifyApiKey,
"Content-Type": "application/json",
},
}
)
inspect(workspacesResponse.data) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Simple script
That's the answer from API:
Beta Was this translation helpful? Give feedback.
All reactions