I'm using this example of smugpy with oauth to authenticate. But now that I have the key and secret for my API Keys I'm wondering if there's a way to not have to use a browser to manually reauthorize. Can I just pass in the key and secret programmatically and skip the browser?
I've tried
smugmug.auth_getRequestToken(oauth_consumer_key=API_KEY, oauth_token=OAUTH_SECRET)
but I get the error
smugpy.SmugMugException: SmugMug API Error for method smugmug.albums.get: (36) invalid/expired token
Thanks