예제 #1
0
 /// <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
 }
예제 #2
0
 /// <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
 }
예제 #3
0
 /// <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
 }