Skip to content

Commit bf492cd

Browse files
committed
update readme.md
1 parent 1c32687 commit bf492cd

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
11
# raindrop-sdk-go
22

33
Unofficial [Raindrop.io](https://raindrop.io/) Go SDK.
4+
5+
## Create an Access Token
6+
Follow the [offiical raindrop.io authentication documentation](https://developer.raindrop.io/v1/authentication/token) to create an access token, which will be used by the SDK.
7+
8+
## Installation
9+
```
10+
go get github.com/jiachengxu/raindrop-sdk-go@v0.1.0
11+
```
12+
## Examples
13+
```golang
14+
package main
15+
16+
import (
17+
"fmt"
18+
19+
"github.com/jiachengxu/raindrop-sdk-go"
20+
)
21+
22+
func main() {
23+
client := raindrop.NewClient("your_test_token_here")
24+
25+
// Example: Get collections
26+
collections, err := client.GetRootCollections()
27+
if err != nil {
28+
fmt.Println("Error fetching collections:", err)
29+
return
30+
}
31+
32+
fmt.Println(collections)
33+
}
34+
```

0 commit comments

Comments
 (0)