pub struct LinkBranding {
    pub client: Client,
}

Fields

client: Client

Implementations

Retrieve all branded links.

This function performs a GET to the /whitelabel/links endpoint.

This endpoint allows you to retrieve all branded links.

You can submit this request as one of your subusers if you include their ID in the on-behalf-of header in the request.

Parameters:

  • limit: i64 – Limits the number of results returned per page.
  • on_behalf_of: &str – The license key provided with your New Relic account.

Retrieve all branded links.

This function performs a GET to the /whitelabel/links endpoint.

As opposed to get_whitelabel_links, this function returns all the pages of the request at once.

This endpoint allows you to retrieve all branded links.

You can submit this request as one of your subusers if you include their ID in the on-behalf-of header in the request.

Create a branded link.

This function performs a POST to the /whitelabel/links endpoint.

This endpoint allows you to create a new branded link.

To create the link branding, supply the root domain and, optionally, the subdomain — these go into separate fields in your request body. The root domain should match your FROM email address. If you provide a subdomain, it must be different from the subdomain you used for authenticating your domain.

You can submit this request as one of your subusers if you include their ID in the on-behalf-of header in the request.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.

Validate a branded link.

This function performs a POST to the /whitelabel/links/{id}/validate endpoint.

This endpoint allows you to validate a branded link.

You can submit this request as one of your subusers if you include their ID in the on-behalf-of header in the request.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.

Associate a branded link with a subuser.

This function performs a POST to the /whitelabel/links/{link_id}/subuser endpoint.

This endpoint allows you to associate a branded link with a subuser account.

Link branding can be associated with subusers from the parent account. This functionality allows subusers to send mail using their parent’s link branding. To associate link branding, the parent account must first create a branded link and validate it. The parent may then associate that branded link with a subuser via the API or the Subuser Management page of the Twilio SendGrid App.

Retrieve a branded link.

This function performs a GET to the /whitelabel/links/{id} endpoint.

This endpoint allows you to retrieve a specific branded link by providing its ID.

You can submit this request as one of your subusers if you include their ID in the on-behalf-of header in the request.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.

Delete a branded link.

This function performs a DELETE to the /whitelabel/links/{id} endpoint.

This endpoint allows you to delete a branded link.

Your request will receive a response with a 204 status code if the deletion was successful. The call does not return the link’s details, so if you wish to record these make sure you call the “Retrieve a branded link” endpoint before you request its deletion.

You can submit this request as one of your subusers if you include their ID in the on-behalf-of header in the request.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.

Update a branded link.

This function performs a PATCH to the /whitelabel/links/{id} endpoint.

This endpoint allows you to update a specific branded link. You can use this endpoint to change a branded link’s default status.

You can submit this request as one of your subusers if you include their ID in the on-behalf-of header in the request.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.

Retrieve the default branded link.

This function performs a GET to the /whitelabel/links/default endpoint.

This endpoint allows you to retrieve the default branded link.

The default branded link is the actual URL to be used when sending messages. If you have more than one branded link, the default is determined by the following order:

  • The validated branded link marked as default (set when you call the “Create a branded link” endpoint or by calling the “Update a branded link” endpoint on an existing link)
  • Legacy branded links (migrated from the whitelabel wizard)
  • Default SendGrid-branded links (i.e., 100.ct.sendgrid.net)

You can submit this request as one of your subusers if you include their ID in the on-behalf-of header in the request.

Parameters:

  • domain: &str – The domain to match against when finding the default branded link.
  • on_behalf_of: &str – The license key provided with your New Relic account.

Retrieve a subuser’s branded link.

This function performs a GET to the /whitelabel/links/subuser endpoint.

This endpoint allows you to retrieve the branded link associated with a subuser.

Link branding can be associated with subusers from the parent account. This functionality allows subusers to send mail using their parent’s link branding. To associate link branding, the parent account must first create a branded link and then validate it. The parent may then associate that branded link with a subuser via the API or the Subuser Management page of the Twilio SendGrid App.

Parameters:

  • username: &str – The username of the subuser to retrieve associated branded links for.

Disassociate a branded link from a subuser.

This function performs a DELETE to the /whitelabel/links/subuser endpoint.

This endpoint allows you to take a branded link away from a subuser.

Link branding can be associated with subusers from the parent account. This functionality allows subusers to send mail using their parent’s link branding. To associate link branding, the parent account must first create a branded link and validate it. The parent may then associate that branded link with a subuser via the API or the Subuser Management page of the Twilio SendGrid App.

Your request will receive a response with a 204 status code if the disassociation was successful.

Parameters:

  • username: &str – The username of the subuser account that you want to disassociate a branded link from.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more