mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-19 13:35:25 +00:00
Commit from m3o/m3o action
This commit is contained in:
34
examples/nft/README.md
Executable file
34
examples/nft/README.md
Executable file
@@ -0,0 +1,34 @@
|
||||
# Nft
|
||||
|
||||
An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Nft/api](https://m3o.com/Nft/api).
|
||||
|
||||
Endpoints:
|
||||
|
||||
## Vote
|
||||
|
||||
Vote to have the NFT api launched faster!
|
||||
|
||||
|
||||
[https://m3o.com/nft/api#Vote](https://m3o.com/nft/api#Vote)
|
||||
|
||||
```go
|
||||
package example
|
||||
|
||||
import(
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"go.m3o.com/nft"
|
||||
)
|
||||
|
||||
// Vote to have the NFT api launched faster!
|
||||
func VoteForTheApi() {
|
||||
nftService := nft.NewNftService(os.Getenv("M3O_API_TOKEN"))
|
||||
rsp, err := nftService.Vote(&nft.VoteRequest{
|
||||
Message: "Launch it!",
|
||||
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
|
||||
}
|
||||
```
|
||||
18
examples/nft/vote/voteForTheApi/main.go
Executable file
18
examples/nft/vote/voteForTheApi/main.go
Executable file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"go.m3o.com/nft"
|
||||
)
|
||||
|
||||
// Vote to have the NFT api launched faster!
|
||||
func main() {
|
||||
nftService := nft.NewNftService(os.Getenv("M3O_API_TOKEN"))
|
||||
rsp, err := nftService.Vote(&nft.VoteRequest{
|
||||
Message: "Launch it!",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user