Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-09 15:06:12 +00:00
parent 92edd2c7df
commit f6a6c065b1
176 changed files with 918 additions and 1077 deletions

View File

@@ -4,6 +4,34 @@ An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Nft/api](https
Endpoints:
## Assets
Return a list of assets
[https://m3o.com/nft/api#Assets](https://m3o.com/nft/api#Assets)
```go
package example
import(
"fmt"
"os"
"go.m3o.com/nft"
)
// Return a list of assets
func GetAlistOfAssets() {
nftService := nft.NewNftService(os.Getenv("M3O_API_TOKEN"))
rsp, err := nftService.Assets(&nft.AssetsRequest{
Limit: 1,
})
fmt.Println(rsp, err)
}
```
## Create
Create your own NFT (coming soon)
@@ -61,31 +89,3 @@ func ListCollections() {
}
```
## Assets
Return a list of assets
[https://m3o.com/nft/api#Assets](https://m3o.com/nft/api#Assets)
```go
package example
import(
"fmt"
"os"
"go.m3o.com/nft"
)
// Return a list of assets
func GetAlistOfAssets() {
nftService := nft.NewNftService(os.Getenv("M3O_API_TOKEN"))
rsp, err := nftService.Assets(&nft.AssetsRequest{
Limit: 1,
})
fmt.Println(rsp, err)
}
```

View File

@@ -14,5 +14,4 @@ func main() {
Limit: 1,
})
fmt.Println(rsp, err)
}

View File

@@ -14,5 +14,4 @@ func main() {
Limit: 1,
})
fmt.Println(rsp, err)
}

View File

@@ -15,5 +15,4 @@ func main() {
Name: "Guybrush Threepwood",
})
fmt.Println(rsp, err)
}