Skip to content
No description, website, or topics provided.
Go Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.openapi-generator
api
docs
.gitignore
.openapi-generator-ignore
.travis.yml
LICENSE
README.md
api_common_operations.go
api_extra_operations.go
client.go
configuration.go
git_push.sh
model_basic_auth_options.go
model_bulk_send_email_options.go
model_create_webhook_options.go
model_email.go
model_email_analysis.go
model_email_preview.go
model_forward_email_options.go
model_inbox.go
model_match_option.go
model_match_options.go
model_send_email_options.go
model_upload_attachment_options.go
model_webhook.go
response.go

README.md

Go API client for mailslurp

Requires Go 1.7+. go get mailslurp/mailslurp-client-go

For documentation see developer guide. Create an account in the MailSlurp Dashboard to view your API Key. For all bugs, feature requests, or help please see support.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.0.1-alpha
  • Package version: 4.9.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://www.mailslurp.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./mailslurp"

Documentation for API Endpoints

All URIs are relative to https://api.mailslurp.com

Class Method HTTP request Description
CommonOperationsApi CreateNewEmailAddress Post /newEmailAddress Create new email address
CommonOperationsApi DeleteEmail Delete /deleteEmail Delete an email
CommonOperationsApi DeleteEmailAddress Delete /deleteEmailAddress Delete email address and its emails
CommonOperationsApi EmptyInbox Delete /emptyInbox Delete all emails in an inbox
CommonOperationsApi SendEmailSimple Post /sendEmail Send an email from a random email address
CommonOperationsApi WaitForEmailCount Get /waitForEmailCount Wait for and return count number of emails
CommonOperationsApi WaitForLatestEmail Get /waitForLatestEmail Fetch inbox's latest email or if empty wait for email to arrive
CommonOperationsApi WaitForMatchingEmail Post /waitForMatchingEmails Wait or return list of emails that match simple matching patterns
CommonOperationsApi WaitForNthEmail Get /waitForNthEmail Wait for or fetch the email with a given index in the inbox specified
ExtraOperationsApi BulkCreateInboxes Post /bulk/inboxes Bulk create Inboxes (email addresses)
ExtraOperationsApi BulkDeleteInboxes Delete /bulk/inboxes Bulk Delete Inboxes
ExtraOperationsApi BulkSendEmails Post /bulk/send Bulk Send Emails
ExtraOperationsApi CreateInbox Post /inboxes Create an Inbox (email address)
ExtraOperationsApi CreateWebhook Post /inboxes/{inboxId}/webhooks Attach a WebHook URL to an inbox
ExtraOperationsApi DeleteEmail1 Delete /emails/{emailId} Delete Email
ExtraOperationsApi DeleteInbox Delete /inboxes/{inboxId} Delete Inbox / Email Address
ExtraOperationsApi DeleteWebhook Delete /inboxes/{inboxId}/webhooks/{webhookId} Delete and disable a WebHook for an Inbox
ExtraOperationsApi DownloadAttachment Get /emails/{emailId}/attachments/{attachmentId} Get email attachment
ExtraOperationsApi ForwardEmail Post /emails/{emailId}/forward Forward Email
ExtraOperationsApi GetEmail Get /emails/{emailId} Get Email Content
ExtraOperationsApi GetEmails Get /inboxes/{inboxId}/emails List Emails in an Inbox / EmailAddress
ExtraOperationsApi GetInbox Get /inboxes/{inboxId} Get Inbox / EmailAddress
ExtraOperationsApi GetInboxes Get /inboxes List Inboxes / Email Addresses
ExtraOperationsApi GetRawEmailContents Get /emails/{emailId}/raw Get Raw Email Content
ExtraOperationsApi GetWebhooks Get /inboxes/{inboxId}/webhooks Get all WebHooks for an Inbox
ExtraOperationsApi SendEmail Post /inboxes/{inboxId} Send Email
ExtraOperationsApi UploadAttachment Post /attachments Upload an attachment for sending
ExtraOperationsApi UploadMultipartForm Post /attachments/multipart Upload an attachment for sending using Multipart Form

Documentation For Models

Documentation For Authorization

API_KEY

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

contact@mailslurp.dev

You can’t perform that action at this time.