Skip to content

Commit c857c87

Browse files
committed
docs(README): update the example for no API version
1 parent ed264d5 commit c857c87

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import "github.com/codingpot/paperswithcode-go"
1010
```
1111

1212
```go
13-
APIToken := "<your-api-token>" // from https://paperswithcode.com/accounts/generate_api_token
14-
c := paperswithcode_go.NewClient(paperswithcode_go.WithAPIToken(token))
13+
c := paperswithcode_go.NewClient()
14+
papers, _ := c.PaperList(paperswithcode_go.PaperListParamsDefault())
15+
gan, _ := c.PaperGet(paperswithcode_go.GetPaperIDFromPaperTitle("Generative Adversarial Networks"))
1516
```
17+
18+
See go doc for reference.

0 commit comments

Comments
 (0)