Files
m3o-go/examples/space/vote/voteForTheApi/main.go
2021-11-26 12:38:58 +00:00

19 lines
294 B
Go
Executable File

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)
}