/go-pinterest

A simple Go wrapper for Pinterest REST API (Beta) (5.x) ✨ 🍰 ✨

Primary LanguageGoMIT LicenseMIT

go-pinterest

A simple Go wrapper for Pinterest REST API (Beta) (5.x) ✨ 🍰 ✨

Test Status Test Coverage Go Report Card

Installation

# Go Modules
require github.com/sns-sdks/go-pinterest

Usage

Authentication

You can initial the client with access token.

client := pinterest.NewBearerClient("Your bearer token")
u, err := client.UserAccount.GetUserAccount("")
fmt.Println(u, err)

Or you can give oauth flow by hand, You can follow the authorize example

More usage detail see the Example

Features

  • OAuth
  • UserAccount
  • Boards
  • Pins
  • Media
  • AdAccounts