curl --request GET \
--url https://gogs.example.com/api/v1/users/{username}/tokens \
--header 'Authorization: Basic <encoded-value>'[
{
"name": "<string>",
"sha1": "<string>"
}
]Requires basic authentication.
curl --request GET \
--url https://gogs.example.com/api/v1/users/{username}/tokens \
--header 'Authorization: Basic <encoded-value>'[
{
"name": "<string>",
"sha1": "<string>"
}
]