Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-08 10:41:28 +00:00
parent e56ccf9c5a
commit 18f89d3897
20 changed files with 886 additions and 788 deletions

34
examples/joke/README.md Executable file
View File

@@ -0,0 +1,34 @@
# Joke
An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Joke/api](https://m3o.com/Joke/api).
Endpoints:
## Random
[https://m3o.com/joke/api#Random](https://m3o.com/joke/api#Random)
```go
package example
import(
"fmt"
"os"
"go.m3o.com/joke"
)
//
func GetRandomNjokes() {
jokeService := joke.NewJokeService(os.Getenv("M3O_API_TOKEN"))
rsp, err := jokeService.Random(&joke.RandomRequest{
Count: 3,
})
fmt.Println(rsp, err)
}
```