abjerner / Skybrud.Social.Pinterest

Skybrud.Social authentication and service implementation for the Pinterest API.
http://social.skybrud.dk/pinterest/
MIT License
0 stars 1 forks source link
api api-wrapper authentication csharp dotnet limbo oauth oauth2 package pinterest pinterest-api skybrud skybrud-integrations skybrud-social

Skybrud.Social.Pinterest

Installation

To install the Skybrud.Social.Pinterest, simply pick one of the three methods below:

  1. NuGet Package
    Install this NuGet package in your Visual Studio project. Makes updating easy.
  2. ZIP file
    Grab a ZIP file of the latest release; unzip and move the DLL files to the bin directory of your project.
  3. Builds
    I may occasional upload a build to Dropbox. These are builds in between releases, and are not tested at the same level as releases. As above, move Skybrud.Social.Core.dll to the bin directory of your project.

Usage

Initializing a new OAuth client

The PinterestOAuthClient class is responsible for the raw communication with the Pinterest API as well as authentication. The class can be initialized with one of the constructors, or simply by setting the properties like in the examples below:

// Initialize and configure the OAuth client
PinterestOAuthClient client = new PinterestOAuthClient {
    AccessToken = "Insert your access token here"
};

or:

// Initialize and configure the OAuth client
PinterestOAuthClient client = new PinterestAuthClient {
    ClientId = "Insert your client ID here",
    ClientSecret = "Insert your client secret here",
    RedirectUri = "http://social.abjerner/pinterest/oauth/"
};

Authentication requires that you specify the client ID, client secret and redirect URI of your app (client).

Documentation

Although still a bit limited, further documentation can be found at the Skybrud.Social website.