Skip to content

Commit

Permalink
docs(changelog): 📝 update changelog and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MerleLiuKun committed Feb 21, 2022
1 parent 8eb734d commit 13a5882
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@

All notable changes to this project will be documented in this file.

## [0.1.0](https://github.com/sns-sdks/go-pinterest/v0.1.0) (2022-02-08)
## [0.1.0](https://github.com/sns-sdks/go-pinterest/v0.1.0) (2022-02-21)

First release for this library, And cover all current apis.

### Features

- Apis for do authorize.
- Apis for user account.
- Apis for boards.
- Apis for pins.
- Apis for media.
- Apis for ad accounts.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,25 @@ require github.com/sns-sdks/go-pinterest

## Usage

More usage See the [`Example`](https://github.com/sns-sdks/go-pinterest/blob/main/example)
### Authentication

You can initial the client with access token.

```go
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`](https://github.com/sns-sdks/go-pinterest/blob/main/example/authentication/main.go)

More usage detail see the [`Example`](https://github.com/sns-sdks/go-pinterest/blob/main/example)

## Features

- OAuth
- UserAccount
- Boards
- Pins
- Media
- AdAccounts

0 comments on commit 13a5882

Please sign in to comment.