getMe
Script
v3
Fork
1
2
3
4
5
6
7
8
import
process
from
"node:process"
;
import
{
fetchJSON
}
from
"https://esm.town/v/stevekrouse/fetchJSON?v=41"
;
export
let
getMe
=
fetchJSON
(
`https://api.val.town/v1/me`
,
{
headers
:
{
Authorization
:
`Bearer
${
process
.
env
.
valtownToken
}
`
,
}
,
}
)
;