Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-02 08:27:08 +00:00
parent 59088be869
commit dc4ea3ec58
20 changed files with 819 additions and 729 deletions

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

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

View File

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