All Projects β†’ Krusen β†’ Pinsharp

Krusen / Pinsharp

Licence: unlicense
.NET client for working with the Pinterest API.

Labels

Projects that are alternatives of or similar to Pinsharp

PickColor
πŸ“Œ Pick color in image, make placeholder color like Pinterest!
Stars: ✭ 53 (-1.85%)
Mutual labels:  pinterest
Texture
Smooth asynchronous user interfaces for iOS apps.
Stars: ✭ 7,512 (+13811.11%)
Mutual labels:  pinterest
Pinterestsegment
A Pinterest-like segment control with masking animation.
Stars: ✭ 560 (+937.04%)
Mutual labels:  pinterest
hosts
θ‡ͺεŠ¨η”Ÿζˆ Hosts ζ–‡δ»ΆοΌŒη§‘ε­¦δΈŠη½‘
Stars: ✭ 30 (-44.44%)
Mutual labels:  pinterest
keyring-social-importers
A collection of importers which pull your content back from social networks, and into your own WordPress install.
Stars: ✭ 26 (-51.85%)
Mutual labels:  pinterest
Php Pinterest Bot
This PHP library will help you to work with your Pinterest account without using any API account credentials.
Stars: ✭ 408 (+655.56%)
Mutual labels:  pinterest
pinterest-pinner
Programmatically create a pin. Pinterest auto-poster (auto-pinner, autoposter, autopinner, api).
Stars: ✭ 32 (-40.74%)
Mutual labels:  pinterest
Android Pdk
Pinterest Android SDK
Stars: ✭ 49 (-9.26%)
Mutual labels:  pinterest
pinterest-java
developers.pinterest.com/docs/getting-started/introduction/
Stars: ✭ 15 (-72.22%)
Mutual labels:  pinterest
Collection View Layouts
A library that implements custom flow layouts for iOS apps
Stars: ✭ 491 (+809.26%)
Mutual labels:  pinterest
Skeleton
Skeleton is a Social Engineering tool attack switcher
Stars: ✭ 44 (-18.52%)
Mutual labels:  pinterest
sharon
A lightweight and modular social sharing library
Stars: ✭ 16 (-70.37%)
Mutual labels:  pinterest
Chtcollectionviewwaterfalllayout
The waterfall (i.e., Pinterest-like) layout for UICollectionView.
Stars: ✭ 4,288 (+7840.74%)
Mutual labels:  pinterest
boardz
Create Pinterest-like boards with pure CSS, in less than 1kB.
Stars: ✭ 33 (-38.89%)
Mutual labels:  pinterest
React Stack Grid
Pinterest like layout components for React.js
Stars: ✭ 803 (+1387.04%)
Mutual labels:  pinterest
CwsShareCount
PHP class to get social share count for Delicious, Facebook, Google+, Linkedin, Pinterest, Reddit, StumbleUpon and Twitter.
Stars: ✭ 13 (-75.93%)
Mutual labels:  pinterest
Socialreaper
Social media scraping / data collection library for Facebook, Twitter, Reddit, YouTube, Pinterest, and Tumblr APIs
Stars: ✭ 338 (+525.93%)
Mutual labels:  pinterest
Keyring
Keyring is an authentication framework for WordPress. It comes with definitions for a variety of HTTP Basic, OAuth1 and OAuth2 web services. Use it as a common foundation for working with other web services from within WordPress code.
Stars: ✭ 52 (-3.7%)
Mutual labels:  pinterest
Ultimate Metatags
A large snippet for your page's <head> that includes all the meta tags you'll need for OPTIMAL sharing and SEO. Extensive work has been put into ensuring you have the optimal images for the most important social media platforms.
Stars: ✭ 24 (-55.56%)
Mutual labels:  pinterest
Waterfall.js
Tired of use creepy hacks or heavy ways to get a Grid based on Pinterest?
Stars: ✭ 458 (+748.15%)
Mutual labels:  pinterest

PinSharp

license AppVeyor Coverage CodeFactor NuGet FOSSA Status

An async C# wrapper library for the Pinterest API.

Notice

I'm not maintaining this regularly as I don't use it that much. If you have any issues or request please create a new issue and I'll have a look.

Overview

New in version 2.0

A lot of the changes are code cleanup and refactoring, but there is a few new features.

Rate limit information

Information about rate limits are now stored on the PinSharpClient in the property RateLimits

It contains information about the request limit and remaining requests and when this information was last updated (i.e. the time of your last request through this client).

Exceptions

The client now throws its own exceptions all extending from PinSharpException.

For example a PinSharpRateLimitExceededException will be thrown if the rate limit has been exceeded.

Breaking changes in version 2.0

All return types have generally been changed from a concrete class to an interface, e.g. Pin to IPin. BoardDetails and UserDetails have also been renamed in the process to IDetailedBoard and IDetailedUsers.

Renamed

  • PinterestClient renamed to PinSharpClient
  • PinterestAuthClient renamed to PinSharpAuthClient
  • PinterestApi made internal
  • Scopes.WriteRelationShips renamed to Scopes.WriteRelationsships

Moved

  • PinSharp.IHttpClient moved to PinSharp.Http.IHttpClient
  • PinSharp.Models.ImageInfo moved to PinSharp.Models.Images.ImageInfo

Refactored/combined

  • Models
    • BoardDetails removed - merged into Board and exposed as IDetaildBoard interface
    • UserDetails removed - merged into User and exposed as IDetailedUser interface
    • UserBoard removed - merged into Board and exposed as IUserBoard interface
    • UserPin removed - merged into Pin and exposed as IUserPin interface
  • Counts
    • BoardCounts removed - merged into new Counts and exposed as IBoardCounts interface
    • PinCounts removed - merged into new Counts and exposed as IPinCounts interface
    • UserCounts removed - merged into new Counts and exposed as IUserCounts interface
  • Images
    • BoardImages removed - merged into new ImageList and exposed as IBoardImageList interface
    • PinImages removed - merged into new ImageList and exposed as IPinImageList interface
    • UserImages removed - merged into new ImageList and exposed as IUserImageList interface

Examples

You need an access token to use the API.

If you don't have one already you can generate one here: https://developers.pinterest.com/tools/access_token/

// Create a client with your access token
var client = new PinSharpClient("AB_IBS7Q0fFQbXJ90JGtSDXNMV-tEBkfLftbK6JCpEWkGoA_MwAAAAA");

// Get board information
var board = await client.Boards.GetBoardAsync("machineshopcafe/best-of-mclaren-machine");

// Get pins on board
var pins = await client.Boards.GetPinsAsync("machineshopcafe/best-of-mclaren-machine");

// Get pins on board but only with the 'board' field as dynamic or your own type
var pins = await client.Boards.GetPinsAsync<dynamic>("rice_up/tableware", new[] { "board" });

// Get user info of the user associated with the access token
var user = await client.Me.GetUserAsync();

// Get pins of the user associated with the access token
var pins = await client.Me.GetPinsAsync();

// Get boards of the user associated with the access token
var boards = await client.Me.GetBoardsAsync();

// Search the associated user's pins or boards
var pins = await client.Me.SearchPinsAsync("mclaren");
var boards = await client.Me.SearchBoardsAsync("mclaren");

// Create new pin
var newPin = await client.Pins.CreatePinAsync("machineshopcafe/best-of-mclaren-machine", "http://i.imgur.com/abcdef.jpg", "Looks so cool!");

// Follow/unfollow board or user
await client.Me.FollowBoardAsync("machineshopcafe/best-of-mclaren-machine");
await client.Me.UnfollowBoardAsync("machineshopcafe/best-of-mclaren-machine");
await client.Me.FollowUserAsync("machineshopcafe");
await client.Me.UnfollowUserAsync("machineshopcafe");

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].