Hey @AntonLevitan, the credential file should be in YAML format and there is an example file in the repo, showing how you might include multiple endpoints (or environments).
Based on your code and the error message, I suggest checking or verifying:
- the credential file is valid yaml
- the top level key in your yaml file matches your ‘yaml_key’ keyword argument in load_credentials() (looks like you’re expecting ‘search_tweets_premium’ right now)
- there is an “account_type: premium” line in your yaml file
You can also post your yaml file here for feedback (with the credentials redacted!) if you’d like.