What is Nostr?
Xavier Ashe :donor: /
npub1h8m…v934
2024-02-13 19:47:23
in reply to nevent1q…jrgw

Xavier Ashe :donor: on Nostr: npub1aka6w…mzzz2 Can you use requests-oauthlib? from requests_oauthlib import ...

npub1aka6wf78hfaqpz060r246dq80lmtjx6uf7wapct4ljluyfx956hszmzzz2 (npub1aka…zzz2) Can you use requests-oauthlib?

from requests_oauthlib import OAuth2Session
client_id = "client_id"
client_secret = "client_secret"
redirect_uri = "redirect URI"
# Create a session object
oauth = OAuth2Session(client_id, redirect_uri = redirect_uri)
# Fetch a token
token = oauth.fetch_token("<url to fetch access token>", client_secret = client_secret)
# Get your authenticated response
resp = oauth.get("URL to the resource")
Author Public Key
npub1h8mh0h8ns0v3jzqscz6wfrmq23my3cf0yjn7sttn69mgvl7agnesakv934