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

35
space/space.go Executable file
View File

@@ -0,0 +1,35 @@
package space
import (
"go.m3o.com/client"
)
func NewSpaceService(token string) *SpaceService {
return &SpaceService{
client: client.NewClient(&client.Options{
Token: token,
}),
}
}
type SpaceService struct {
client *client.Client
}
// Vote to have the Space api launched faster!
func (t *SpaceService) Vote(request *VoteRequest) (*VoteResponse, error) {
rsp := &VoteResponse{}
return rsp, t.client.Call("space", "Vote", request, rsp)
}
type VoteRequest struct {
// optional message
Message string `json:"message"`
}
type VoteResponse struct {
// response message
Message string `json:"message"`
}