Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-11-26 12:38:58 +00:00
parent 87630a4bfd
commit 8b220a4f84
25 changed files with 1060 additions and 970 deletions

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

@@ -0,0 +1,34 @@
# Space
An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Space/api](https://m3o.com/Space/api).
Endpoints:
## Vote
Vote to have the Space api launched faster!
[https://m3o.com/space/api#Vote](https://m3o.com/space/api#Vote)
```go
package example
import(
"fmt"
"os"
"go.m3o.com/space"
)
// Vote to have the Space api launched faster!
func VoteForTheApi() {
spaceService := space.NewSpaceService(os.Getenv("M3O_API_TOKEN"))
rsp, err := spaceService.Vote(&space.VoteRequest{
Message: "Launch it!",
})
fmt.Println(rsp, err)
}
```

View File

@@ -0,0 +1,18 @@
package main
import (
"fmt"
"os"
"go.m3o.com/space"
)
// Vote to have the Space api launched faster!
func main() {
spaceService := space.NewSpaceService(os.Getenv("M3O_API_TOKEN"))
rsp, err := spaceService.Vote(&space.VoteRequest{
Message: "Launch it!",
})
fmt.Println(rsp, err)
}