简体   繁体   中英

TypeError: __init__() missing 1 required positional argument: 'api_key' in temp-mail python

I Get This Error. And I can't see any pieces of information in the readme

tm = TempMail()
TypeError: init() missing 1 required positional argument: 'api_key'

Please, someone, tell the problem and give a solution.

Please read How to create a Minimal, Reproducible Example , it will help make your questions more clear in the future.

I believe you are using tempmail2 . In that case, the README states:

Before you can use this, you need to get api key from https://market.mashape.com/Privatix/temp-mail .

Once you get an API key from that website, you can run tm = TempMail(API_KEY_HERE) and your problem should be solved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM