Skip to content

Service enfonica.messaging.v1.Unsubscribers

Methods

CreateUnsubscriber
rpc CreateUnsubscriber(CreateUnsubscriberRequest) returns (Unsubscriber)

Creates an unsubscriber.

The caller must have messaging.unsubscribers.create permission on the project.
DeleteUnsubscriber
rpc DeleteUnsubscriber(DeleteUnsubscriberRequest) returns (Unsubscriber)

Deletes an unsubscriber.

The caller must have messaging.unsubscribers.delete permission on the project.
GetUnsubscriber
rpc GetUnsubscriber(GetUnsubscriberRequest) returns (Unsubscriber)

Retrieves a Unsubscriber identified by the supplied resource name.

The caller must have messaging.unsubscribers.get permission on the project.
ListUnsubscribers
rpc ListUnsubscribers(ListUnsubscribersRequest) returns (ListUnsubscribersResponse)

Lists the Unsubscribers of the specified project. List returns Unsubscribers sorted by create_time descending.

The caller must have messaging.unsubscribers.list permission on the project.
UpdateUnsubscriber
rpc UpdateUnsubscriber(UpdateUnsubscriberRequest) returns (Unsubscriber)

Updates an unsubscriber.

The caller must have messaging.unsubscribers.update permission on the project.

Resource: Unsubscriber

The Unsubscriber resource.

Fields  
name string
Resource name of the unsubscriber. It must match the pattern projects/*/unsubscribers/*
phone string
Required. The phone number of the recipient that has unsubscribed, in +E164 format. Can only be set on create.
unsubscribe_method UnsubscribeMethod
The method that was used to unsubscribe. Can only be set on create.
labels map<string, string>
The labels associated with the unsubscriber. The maximum key length is 100. The maximum value length is 1000. The maximum number of keys is 50.

Example keys: - smsmarketing.enfonica.com/campaign
create_time google.protobuf.Timestamp
Output only. The creation time of the unsubscriber.

Unsubscriber.UnsubscribeMethod

The method that was used to unsubscribe.

Enums  
UNSUBSCRIBE_METHOD_UNSPECIFIED Unknown unsubscribe method.
URL Unsubscribed by visiting a URL.
MESSAGE Unsubscribed by sending a message.
MANUAL A user has manually created the unsubscriber.

CreateUnsubscriberRequest

Request to create a new unsubscriber.

Fields  
parent string
Required. The resource name of the parent project to create the unsubscriber under. Must be of the form projects/*.
unsubscriber Unsubscriber
Required. The unsubscriber resource to be created.

GetUnsubscriberRequest

The GetUnsubscriber request unsubscriber.

Fields  
name string
Required. The resource name of the Unsubscriber to retrieve. Must be of the form projects/*/unsubscribers/*.

ListUnsubscribersRequest

The ListUnsubscribers request.

Fields  
parent string
Required. The resource name of the parent of which to list unsubscribers. Must be of the form projects/*.
page_size int32
The maximum number of Unsubscribers to return in the response. Default value is 10 and maximum value is 100.
page_token string
A pagination token returned from a previous call to ListUnsubscribers that indicates where this listing should continue from.
phone string
Only return the unsubscriber that matches the phone number exactly.

ListUnsubscribersResponse

The ListUnsubscribers response.

Fields  
unsubscribers[] Unsubscriber
A possibly paginated list of Unsubscribers that are direct descendants of the specified parent resource.
next_page_token string
A pagination token returned from a previous call to ListUnsubscribers that indicates from where listing should continue.

UpdateUnsubscriberRequest

The request message for updating an unsubscriber's properties.

Fields  
unsubscriber Unsubscriber
Required. The new definition of the Unsubscriber.
update_mask google.protobuf.FieldMask
Fields to be updated. Only labels can be updated.

DeleteUnsubscriberRequest

The DeleteUnsubscriber request message.

Fields  
name string
Required. The resource name of the Unsubscriber to be deleted. Must be of the form projects/*/unsubscribers/*.