hermes.commands.init.util.connect_zenodo

Attributes

Functions

setup([zenodo_url, display_name])

oauth_process(...)

get_tokens(→ dict[str)

Starts the oauth procedure and returns collected tokens as dict

get_refresh_token(→ str)

test_if_token_is_valid(→ bool)

test_if_refresh_token_authorization_works()

Module Contents

hermes.commands.init.util.connect_zenodo.USING_SANDBOX_AS_DEFAULT = True
hermes.commands.init.util.connect_zenodo.local_port = 8334
hermes.commands.init.util.connect_zenodo.sandbox_client_id = 'QJ8Q9GBI78uOdNmVNK1Vd0oAOJHqmYGvxRxiSFxt'
hermes.commands.init.util.connect_zenodo.sandbox_client_secret = 'nGuOqoDtd2tckP6lmQS3If3cY39lPLKLU8skcv72JeowNupMD2bnLparsGO9'
hermes.commands.init.util.connect_zenodo.real_client_id = 'L0d9HQVW4Ig9PnC6qh6zkOAwgvYy08GcmHJqVVvV'
hermes.commands.init.util.connect_zenodo.real_client_secret = '0HIvtC2D2aPvpq2W0GtfWdeivwkqvnvrOTGx14nUJA5lDXrEDSaQAnqxHbLH'
hermes.commands.init.util.connect_zenodo.url_suffix_authorize = '/oauth/authorize'
hermes.commands.init.util.connect_zenodo.url_suffix_token = '/oauth/token'
hermes.commands.init.util.connect_zenodo.url_suffix_api_list = '/api/deposit/depositions'
hermes.commands.init.util.connect_zenodo.scope = 'deposit:write deposit:actions'
hermes.commands.init.util.connect_zenodo.setup(zenodo_url='https://sandbox.zenodo.org/', display_name='')
hermes.commands.init.util.connect_zenodo.oauth_process() hermes.commands.init.util.oauth_process.OauthProcess
hermes.commands.init.util.connect_zenodo.get_tokens() dict[str:str]

Starts the oauth procedure and returns collected tokens as dict

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