Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-11-26 10:47:45 +00:00
parent 15b0ea2d2c
commit 7448f9c556
21 changed files with 903 additions and 801 deletions

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

@@ -0,0 +1,34 @@
# App
An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/App/api](https://m3o.com/App/api).
Endpoints:
## Reserve
Reserve your app name
[https://m3o.com/app/api#Reserve](https://m3o.com/app/api#Reserve)
```go
package example
import(
"fmt"
"os"
"go.m3o.com/app"
)
// Reserve your app name
func ReserveAppName() {
appService := app.NewAppService(os.Getenv("M3O_API_TOKEN"))
rsp, err := appService.Reserve(&app.ReserveRequest{
Name: "helloworld",
})
fmt.Println(rsp, err)
}
```