Pinterest Getting information about a pin

Getting information about a pin

Below is a quick example on how to get information about a pin from it's ID:

@using Skybrud.Social.Pinterest.Objects.Pins
@using Skybrud.Social.Pinterest.Responses.Pins
@inherits WebViewPage<Skybrud.Social.Pinterest.PinterestService>
    // Declare the ID of the pin we wish to retrieve
    string pinId = "367536088279413701";

    // Make the call to the Pinterest API
    PinterestGetPinResponse response = Model.Pins.GetPin(pinId);
    // Get a reference to created the pin
    PinterestPin pin = response.Body.Data;

    // Get the note (description) of the pin
    string pinNote = pin.Note;