Exemplo n.º 1
0
 /// <summary>
 /// Gets the pin matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the call to the API.</param>
 /// <returns>Returns an instance of <see cref="PinterestGetPinResponse"/> representing the response.</returns>
 public PinterestGetPinResponse GetPin(PinterestGetPinOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException("options");
     }
     return(PinterestGetPinResponse.ParseResponse(Raw.GetPin(options)));
 }
 /// <summary>
 /// Gets the pin matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the request to the API.</param>
 /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns>
 public SocialHttpResponse GetPin(PinterestGetPinOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     return(Client.DoHttpGetRequest($"/v1/pins/{options.Id}", options));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the pin matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the request to the API.</param>
 /// <returns>An instance of <see cref="PinterestGetPinResponse"/> representing the response.</returns>
 public PinterestGetPinResponse GetPin(PinterestGetPinOptions options)
 {
     return(PinterestGetPinResponse.ParseResponse(Raw.GetPin(options)));
 }