Interface IAccountResource
Represents account resource.
public interface IAccountResource : IRestResource
- Inherited Members
Methods
Access(long)
Gets resource for specific account access, identified by accessId.
IAccountAccessResource Access(long accessId)
Parameters
accessIdlongID of account access to get resource for.
Returns
- IAccountAccessResource
Resource for the account access with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
accessIdis less than or equal to zero.
Accesses()
Gets account access collection resource for the account, represented by this resource instance.
IAccountAccessCollectionResource Accesses()
Returns
- IAccountAccessCollectionResource
Account access collection resource for the account, represented by this resource instance.
ApiToken(long)
Gets resource for specific API token, identified by apiTokenId.
IApiTokenResource ApiToken(long apiTokenId)
Parameters
apiTokenIdlongID of API token to get resource for.
Returns
- IApiTokenResource
Resource for the API token with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
apiTokenIdis less than or equal to zero.
ApiTokens()
Gets API token collection resource for the account, represented by this resource instance.
IApiTokenCollectionResource ApiTokens()
Returns
- IApiTokenCollectionResource
API token collection resource for the account, represented by this resource instance.
Billing()
Gets billing resource for the account, represented by this resource instance.
IBillingResource Billing()
Returns
- IBillingResource
Billing resource for the account, represented by this resource instance.
Contact(string)
Gets resource for specific contact, identified by idOrEmail.
IContactResource Contact(string idOrEmail)
Parameters
idOrEmailstringID or email of contact to get resource for.
Returns
- IContactResource
Resource for the contact with specified ID or email.
Exceptions
- ArgumentNullException
When
idOrEmailis null or empty.
Contacts()
Gets contact collection resource for the account, represented by this resource instance.
IContactCollectionResource Contacts()
Returns
- IContactCollectionResource
Contact collection resource for the account, represented by this resource instance.
Domain(long)
Gets resource for specific domain, identified by domainId.
ISendingDomainResource Domain(long domainId)
Parameters
domainIdlongID of domain to get resource for.
Returns
- ISendingDomainResource
Resource for the domain with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
domainIdis less than or equal to zero.
Domains()
Gets domain collection resource for the account, represented by this resource instance.
ISendingDomainCollectionResource Domains()
Returns
- ISendingDomainCollectionResource
Domain collection resource for the account, represented by this resource instance.
EmailLog(string)
Gets resource for a specific email log message, identified by sendingMessageId (UUID).
IEmailLogResource EmailLog(string sendingMessageId)
Parameters
sendingMessageIdstringMessage UUID to get resource for.
Returns
- IEmailLogResource
Resource for the email log message with specified ID.
Exceptions
- ArgumentNullException
When
sendingMessageIdis null or empty.
EmailLogs()
Gets email logs collection resource for the account, represented by this resource instance.
IEmailLogCollectionResource EmailLogs()
Returns
- IEmailLogCollectionResource
Email logs collection resource for the account.
EmailTemplate(long)
Gets resource for specific email template, identified by emailTemplateId.
IEmailTemplateResource EmailTemplate(long emailTemplateId)
Parameters
emailTemplateIdlongID of email template to get resource for.
Returns
- IEmailTemplateResource
Resource for the email template with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
emailTemplateIdis less than or equal to zero.
EmailTemplates()
Gets email template collection resource for the account, represented by this resource instance.
IEmailTemplateCollectionResource EmailTemplates()
Returns
- IEmailTemplateCollectionResource
Email template collection resource for the account, represented by this resource instance.
Remarks
For the paginated, experimental /api/templates endpoints, see Templates().
Inbox(long)
Gets resource for specific sandbox, identified by inboxId.
[Obsolete("Inbox(long) is deprecated and will be removed in a future major release; use Sandbox(long) instead.")]
IInboxResource Inbox(long inboxId)
Parameters
inboxIdlongID of sandbox to get resource for.
Returns
- IInboxResource
Resource for the sandbox with specified ID.
Remarks
Deprecated, use Sandbox(long) instead.
Exceptions
- ArgumentOutOfRangeException
When
inboxIdis less than or equal to zero.
Inboxes()
Gets sandbox collection resource for the account, represented by this resource instance.
[Obsolete("Inboxes() is deprecated and will be removed in a future major release; use Sandboxes() instead.")]
IInboxCollectionResource Inboxes()
Returns
- IInboxCollectionResource
Sandbox collection resource for the account, represented by this resource instance.
Remarks
Deprecated, use Sandboxes() instead.
Permissions()
Gets permissions resource for the account, represented by this resource instance.
IPermissionsResource Permissions()
Returns
- IPermissionsResource
Permissions resource for the account, represented by this resource instance.
Project(long)
Gets resource for specific project, identified by projectId.
IProjectResource Project(long projectId)
Parameters
projectIdlongID of project to get resource for.
Returns
- IProjectResource
Resource for the project with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
projectIdis less than or equal to zero.
Projects()
Gets project collection resource for the account, represented by this resource instance.
IProjectCollectionResource Projects()
Returns
- IProjectCollectionResource
Project collection resource for the account, represented by this resource instance.
Sandbox(long)
Gets resource for specific sandbox, identified by sandboxId.
IInboxResource Sandbox(long sandboxId)
Parameters
sandboxIdlongID of sandbox to get resource for.
Returns
- IInboxResource
Resource for the sandbox with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
sandboxIdis less than or equal to zero.
Sandboxes()
Gets sandbox collection resource for the account, represented by this resource instance.
IInboxCollectionResource Sandboxes()
Returns
- IInboxCollectionResource
Sandbox collection resource for the account, represented by this resource instance.
SendingDomain(long)
Gets resource for specific domain, identified by domainId.
[Obsolete("SendingDomain(long) is deprecated and will be removed in a future major release; use Domain(long) instead.")]
ISendingDomainResource SendingDomain(long domainId)
Parameters
domainIdlongID of domain to get resource for.
Returns
- ISendingDomainResource
Resource for the domain with specified ID.
Remarks
Deprecated, use Domain(long) instead.
Exceptions
- ArgumentOutOfRangeException
When
domainIdis less than or equal to zero.
SendingDomains()
Gets domain collection resource for the account, represented by this resource instance.
[Obsolete("SendingDomains() is deprecated and will be removed in a future major release; use Domains() instead.")]
ISendingDomainCollectionResource SendingDomains()
Returns
- ISendingDomainCollectionResource
Domain collection resource for the account, represented by this resource instance.
Remarks
Deprecated, use Domains() instead.
Stats()
Gets sending statistics resource for the account, represented by this resource instance.
IStatsResource Stats()
Returns
- IStatsResource
Sending statistics resource for the account, represented by this resource instance.
Suppression(string)
Gets resource for specific suppression, identified by suppressionId.
ISuppressionResource Suppression(string suppressionId)
Parameters
suppressionIdstringSuppression ID to get resource for.
Returns
- ISuppressionResource
Resource for the suppression with specified ID.
Exceptions
- ArgumentNullException
When
suppressionIdis null or empty.
Suppressions()
Gets suppression collection resource for the account, represented by this resource instance.
ISuppressionCollectionResource Suppressions()
Returns
- ISuppressionCollectionResource
Suppression collection resource for the account, represented by this resource instance.
Template(long)
Gets resource for specific template, identified by templateId.
ITemplateResource Template(long templateId)
Parameters
templateIdlongID of template to get resource for.
Returns
- ITemplateResource
Resource for the template with specified ID.
Remarks
The /api/templates endpoints are experimental: their request and response shapes may change
before general availability.
Exceptions
- ArgumentOutOfRangeException
When
templateIdis less than or equal to zero.
Templates()
Gets template collection resource for the account, represented by this resource instance.
ITemplateCollectionResource Templates()
Returns
- ITemplateCollectionResource
Template collection resource for the account, represented by this resource instance.
Remarks
The /api/templates endpoints are experimental: their request and response shapes may change
before general availability.
Webhook(long)
Gets resource for specific webhook, identified by webhookId.
IWebhookResource Webhook(long webhookId)
Parameters
webhookIdlongID of webhook to get resource for.
Returns
- IWebhookResource
Resource for the webhook with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
webhookIdis less than or equal to zero.
Webhooks()
Gets webhook collection resource for the account, represented by this resource instance.
IWebhookCollectionResource Webhooks()
Returns
- IWebhookCollectionResource
Webhook collection resource for the account, represented by this resource instance.