hermes.commands.init.connect_zenodo

Attributes

Functions

setup([using_sandbox])

oauth_process(...)

get_tokens(→ dict[str)

Starts the oauth procedure and returns collected tokens as dict

get_refresh_token(→ str)

test_if_refresh_token_authorization_works()

Module Contents

hermes.commands.init.connect_zenodo.USING_SANDBOX_AS_DEFAULT = True
hermes.commands.init.connect_zenodo.local_port = 8334
hermes.commands.init.connect_zenodo.sandbox_client_id = 'QJ8Q9GBI78uOdNmVNK1Vd0oAOJHqmYGvxRxiSFxt'
hermes.commands.init.connect_zenodo.sandbox_client_secret = 'nGuOqoDtd2tckP6lmQS3If3cY39lPLKLU8skcv72JeowNupMD2bnLparsGO9'
hermes.commands.init.connect_zenodo.sandbox_authorize_url = 'https://sandbox.zenodo.org/oauth/authorize'
hermes.commands.init.connect_zenodo.sandbox_token_url = 'https://sandbox.zenodo.org/oauth/token'
hermes.commands.init.connect_zenodo.real_client_id = 'L0d9HQVW4Ig9PnC6qh6zkOAwgvYy08GcmHJqVVvV'
hermes.commands.init.connect_zenodo.real_client_secret = '0HIvtC2D2aPvpq2W0GtfWdeivwkqvnvrOTGx14nUJA5lDXrEDSaQAnqxHbLH'
hermes.commands.init.connect_zenodo.real_authorize_url = 'https://zenodo.org/oauth/authorize'
hermes.commands.init.connect_zenodo.real_token_url = 'https://zenodo.org/oauth/token'
hermes.commands.init.connect_zenodo.scope = 'deposit:write deposit:actions'
hermes.commands.init.connect_zenodo.setup(using_sandbox: bool = USING_SANDBOX_AS_DEFAULT)
hermes.commands.init.connect_zenodo.oauth_process() hermes.commands.init.oauth_process.OauthProcess
hermes.commands.init.connect_zenodo.get_tokens() dict[str:str]

Starts the oauth procedure and returns collected tokens as dict

hermes.commands.init.connect_zenodo.get_refresh_token(with_prefix: bool = True) str
hermes.commands.init.connect_zenodo.test_if_refresh_token_authorization_works()