DEV Community

Frederik Van Lierde
Frederik Van Lierde

Posted on

Managing Pinterest from your .Net App

Pinterest is a social network where people can find inspiration and ideas for their interests and hobbies.

Every idea is represented by a Pin, which is an image that is searched and saved by Pinterest users. Pins can also link back to websites, which is why Pinterest is great for driving traffic and sales.

And most importantly for businesses, Pins help people find more information on products they’re looking to buy.

CodeHelper.API.Pinteres

CodeHelper.API.Pinterest is a lightweight and easy to use .NET Pinterest Wrapper letting you to manage your baords and pins (including create, update and delete

Code

To generate your App access code, you can use my online tool

PinterstHelper _helper = new() {AccessToken = "{accesstoken}" };
Enter fullscreen mode Exit fullscreen mode

List Boards

var _boards = await _helper.BoardsGetList();
Enter fullscreen mode Exit fullscreen mode

Create a new Board

var _newboard = await _helper.BoardCreate("Code Examples"
            , "Discover the latest code examples by CodeHelper");
Enter fullscreen mode Exit fullscreen mode

List Pins for a a given Board

var _pins = await _helper.BoardListPins("1038220589036341017");
Enter fullscreen mode Exit fullscreen mode

Create a Pin

await _helper.CreatePin("https://webstories.today/watch/the-beginnings-of-sergey-brin/webplayer"
  , "Sergey Brin's Beginnings In 1 Minute"
  , "1038220589036341017"  // Board ID
  , "How did entrepreneur Sergey Brin, co-founder of Google started his success?"
  , "images/jpeg"
  , "https://webstories.today/images/s/the-beginnings-of-sergey-brin-cover.jpg");
Enter fullscreen mode Exit fullscreen mode

Delete a Pin

await _helper.PinDelete("123457");  //123457 = ID of the pin
Enter fullscreen mode Exit fullscreen mode

Top comments (0)