/// <summary>Snippet for GetUnsubscriber</summary> public void GetUnsubscriber() { // Snippet: GetUnsubscriber(string, CallSettings) // Create client UnsubscribersClient unsubscribersClient = UnsubscribersClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/unsubscribers/[UNSUBSCRIBER]"; // Make the request Unsubscriber response = unsubscribersClient.GetUnsubscriber(name); // End snippet }
/// <summary>Snippet for GetUnsubscriber</summary> public void GetUnsubscriberResourceNames() { // Snippet: GetUnsubscriber(UnsubscriberName, CallSettings) // Create client UnsubscribersClient unsubscribersClient = UnsubscribersClient.Create(); // Initialize request argument(s) UnsubscriberName name = UnsubscriberName.FromProjectUnsubscriber("[PROJECT]", "[UNSUBSCRIBER]"); // Make the request Unsubscriber response = unsubscribersClient.GetUnsubscriber(name); // End snippet }
/// <summary>Snippet for GetUnsubscriber</summary> public void GetUnsubscriberRequestObject() { // Snippet: GetUnsubscriber(GetUnsubscriberRequest, CallSettings) // Create client UnsubscribersClient unsubscribersClient = UnsubscribersClient.Create(); // Initialize request argument(s) GetUnsubscriberRequest request = new GetUnsubscriberRequest { UnsubscriberName = UnsubscriberName.FromProjectUnsubscriber("[PROJECT]", "[UNSUBSCRIBER]"), }; // Make the request Unsubscriber response = unsubscribersClient.GetUnsubscriber(request); // End snippet }