Pinterest Getting information about a board

Getting information about a board

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

@using Skybrud.Social.Pinterest.Objects.Boards
@using Skybrud.Social.Pinterest.Responses.Boards
@inherits WebViewPage<Skybrud.Social.Pinterest.PinterestService>
              
@{
    
    // Declare the ID of the board we wish to retrieve
    string boardId = "367536088279413701";

    // Make the call to the Pinterest API
    PinterestGetBoardResponse response = Model.Boards.GetBoard(boardId);
    
    // Get a reference to created the board
    PinterestBoard board = response.Body.Data;

    // Get the name of the board
    string boardName = board.Name;
    
}