diff --git a/CHANGELOG.md b/CHANGELOG.md index a055487..c205fe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index 9cbe112..54dcd26 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,19 @@ 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 @@ -23,3 +35,5 @@ More usage See the [`Example`](https://github.com/sns-sdks/go-pinterest/blob/mai - UserAccount - Boards - Pins +- Media +- AdAccounts