Skip to content

Commit 8856355

Browse files
minor change😒
1 parent c478098 commit 8856355

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/main.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class _MyHomePageState extends State<MyHomePage> {
4141
const url = "https://free-tempmail-api.p.rapidapi.com/newmail";
4242

4343
final headers = {
44-
"X-RapidAPI-Key": "YOUR_API_KEY",
44+
"X-RapidAPI-Key": "f8dc80a4f6mshd9276ef433304e8p1c5755jsnd7fe9f7b9aa3",
4545
"X-RapidAPI-Host": "free-tempmail-api.p.rapidapi.com"
4646
};
4747

@@ -53,7 +53,7 @@ class _MyHomePageState extends State<MyHomePage> {
5353
const mailsUrl = "https://free-tempmail-api.p.rapidapi.com/mails";
5454
final mailsHeaders = {
5555
"mailtoken": token,
56-
"X-RapidAPI-Key": "YOUR_API_KEY",
56+
"X-RapidAPI-Key": "f8dc80a4f6mshd9276ef433304e8p1c5755jsnd7fe9f7b9aa3",
5757
"X-RapidAPI-Host": "free-tempmail-api.p.rapidapi.com"
5858
};
5959

@@ -72,17 +72,17 @@ class _MyHomePageState extends State<MyHomePage> {
7272
const mailsUrl = "https://free-tempmail-api.p.rapidapi.com/mails";
7373
final mailsHeaders = {
7474
"mailtoken": token,
75-
"X-RapidAPI-Key": "YOUR_API_KEY",
75+
"X-RapidAPI-Key": "f8dc80a4f6mshd9276ef433304e8p1c5755jsnd7fe9f7b9aa3",
7676
"X-RapidAPI-Host": "free-tempmail-api.p.rapidapi.com"
7777
};
7878

7979
final mailsResponse = await http.get(Uri.parse(mailsUrl), headers: mailsHeaders);
8080
final mailsInfo = jsonDecode(mailsResponse.body);
8181
final updatedMessage = mailsInfo["mails"][0]["intro"].toString();
8282
final toEmail = mailsInfo["mails"][0]["from"]["address"].toString();
83-
debugPrint(mailsInfo);
83+
print(mailsInfo);
8484
setState(() {
85-
message = updatedMessage;
85+
this.message = updatedMessage;
8686
this.toEmail = toEmail;
8787
});
8888
}

0 commit comments

Comments
 (0)