@@ -41,7 +41,7 @@ class _MyHomePageState extends State<MyHomePage> {
41
41
const url = "https://free-tempmail-api.p.rapidapi.com/newmail" ;
42
42
43
43
final headers = {
44
- "X-RapidAPI-Key" : "YOUR_API_KEY " ,
44
+ "X-RapidAPI-Key" : "f8dc80a4f6mshd9276ef433304e8p1c5755jsnd7fe9f7b9aa3 " ,
45
45
"X-RapidAPI-Host" : "free-tempmail-api.p.rapidapi.com"
46
46
};
47
47
@@ -53,7 +53,7 @@ class _MyHomePageState extends State<MyHomePage> {
53
53
const mailsUrl = "https://free-tempmail-api.p.rapidapi.com/mails" ;
54
54
final mailsHeaders = {
55
55
"mailtoken" : token,
56
- "X-RapidAPI-Key" : "YOUR_API_KEY " ,
56
+ "X-RapidAPI-Key" : "f8dc80a4f6mshd9276ef433304e8p1c5755jsnd7fe9f7b9aa3 " ,
57
57
"X-RapidAPI-Host" : "free-tempmail-api.p.rapidapi.com"
58
58
};
59
59
@@ -72,17 +72,17 @@ class _MyHomePageState extends State<MyHomePage> {
72
72
const mailsUrl = "https://free-tempmail-api.p.rapidapi.com/mails" ;
73
73
final mailsHeaders = {
74
74
"mailtoken" : token,
75
- "X-RapidAPI-Key" : "YOUR_API_KEY " ,
75
+ "X-RapidAPI-Key" : "f8dc80a4f6mshd9276ef433304e8p1c5755jsnd7fe9f7b9aa3 " ,
76
76
"X-RapidAPI-Host" : "free-tempmail-api.p.rapidapi.com"
77
77
};
78
78
79
79
final mailsResponse = await http.get (Uri .parse (mailsUrl), headers: mailsHeaders);
80
80
final mailsInfo = jsonDecode (mailsResponse.body);
81
81
final updatedMessage = mailsInfo["mails" ][0 ]["intro" ].toString ();
82
82
final toEmail = mailsInfo["mails" ][0 ]["from" ]["address" ].toString ();
83
- debugPrint (mailsInfo);
83
+ print (mailsInfo);
84
84
setState (() {
85
- message = updatedMessage;
85
+ this . message = updatedMessage;
86
86
this .toEmail = toEmail;
87
87
});
88
88
}
0 commit comments