Skip to content

Commit

Permalink
добавил ClearAllEmail
Browse files Browse the repository at this point in the history
  • Loading branch information
LazarenkoA committed Aug 29, 2020
1 parent 33da5ae commit a2fc7fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion postshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ func (t *TmpEmail) readEmail(from string, id int) {
}

func (t *TmpEmail) clearEmail() {
// очистить все с ip https://post-shift.ru/api.php?action=deleteall
t.getResponse(fmt.Sprintf("https://post-shift.ru/api.php?action=clear&key=%v", t.key))
}

func (t *TmpEmail) ClearAllEmail() {
t.getResponse("https://post-shift.ru/api.php?action=deleteall")
}

0 comments on commit a2fc7fc

Please sign in to comment.