mirror of
https://github.com/imjasonh/go-marvel
synced 2026-07-10 12:21:55 +00:00
update README
This commit is contained in:
parent
8eafd10c1a
commit
ad4045b460
1 changed files with 1 additions and 18 deletions
19
README.md
19
README.md
|
|
@ -3,21 +3,4 @@ go-marvel
|
|||
|
||||
[Go](https://golang.org) client library for the [Marvel REST API](https://developer.marvel.com/)
|
||||
|
||||
Usage:
|
||||
|
||||
```go
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/ImJasonH/go-marvel"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c := marvel.NewClient("my-public-key", "my-private-key")
|
||||
r, err := c.Series(2258, marvel.CommonRequest{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println("%+v\n", r)
|
||||
}
|
||||
```
|
||||
See [example](https://github.com/ImJasonH/go-marvel/blob/master/example/main.go)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue