Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
613 views
in Technique[技术] by (71.8m points)

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.

question from:https://stackoverflow.com/questions/65557733/typeerror-init-missing-1-required-positional-argument-api-key-in-temp

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...