Skip to content

Instantly share code, notes, and snippets.

@EsendexDev
Created November 11, 2015 08:42
Show Gist options
  • Save EsendexDev/9f6a8e1e4d0c9652fde4 to your computer and use it in GitHub Desktop.
Save EsendexDev/9f6a8e1e4d0c9652fde4 to your computer and use it in GitHub Desktop.
client := esendex.New("username", "password")
response, _ := client.Sent()
for _, message := range response.Messages {
body, _ := client.Body(message)
fmt.Printf("MessageID: %s\nMessage: %s\n\n", message.ID, body.Text)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment