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?
but I get the error
smugpy.SmugMugException: SmugMug API Error for method smugmug.albums.get: (36) invalid/expired token