예제 #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)));
 }
예제 #2
0
 /// <summary>
 /// Gets the pin with the specified <paramref name="id"/>.
 /// </summary>
 /// <param name="id">The ID of the pin to be returned.</param>
 /// <param name="fields">The fields to be returned for the pin.</param>
 /// <returns>Returns an instance of <see cref="PinterestGetPinResponse"/> representing the response.</returns>
 public PinterestGetPinResponse GetPin(string id, PinterestFieldsCollection fields)
 {
     if (String.IsNullOrWhiteSpace(id))
     {
         throw new ArgumentNullException("id");
     }
     return(PinterestGetPinResponse.ParseResponse(Raw.GetPin(id, fields)));
 }
예제 #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)));
 }
예제 #4
0
 /// <summary>
 /// Gets the pin with the specified <paramref name="id"/>.
 /// </summary>
 /// <param name="id">The ID of the pin to be returned.</param>
 /// <param name="fields">The fields to be returned for the pin.</param>
 /// <returns>An instance of <see cref="PinterestGetPinResponse"/> representing the response.</returns>
 public PinterestGetPinResponse GetPin(string id, PinterestFieldsCollection fields)
 {
     return(PinterestGetPinResponse.ParseResponse(Raw.GetPin(id, fields)));
 }
예제 #5
0
 /// <summary>
 /// Gets the pin with the specified <paramref name="id"/>.
 /// </summary>
 /// <param name="id">The ID of the pin to be returned.</param>
 /// <returns>An instance of <see cref="PinterestGetPinResponse"/> representing the response.</returns>
 public PinterestGetPinResponse GetPin(string id)
 {
     return(PinterestGetPinResponse.ParseResponse(Raw.GetPin(id)));
 }