Did you know ... | Search Documentation: |
Pack sourcehut -- prolog/sourcehut/common.pl |
This module provides an interface for interacting with a SourceHut (https://sourcehut.org/) instance, such as https://sr.ht/
Result is unified with a dict translated from the server's JSON-formatted response.
Options processed:
Scheme=https
,
service="git"
, Host="sr.ht"
, Port=443
and Path="/query"
sourcehut_token(Host, Token)
to
obtain a token. If sourcehut_token/2 fails, the environment
variables SOURCEHUT_PL_TOKEN and OAUTH2_TOKEN are consulted
for a token. If no token can found, the call fails.The following predicates are exported, but not or incorrectly documented.