mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -89,3 +89,58 @@ func ListCollections() {
|
||||
|
||||
}
|
||||
```
|
||||
## Asset
|
||||
|
||||
|
||||
|
||||
|
||||
[https://m3o.com/nft/api#Asset](https://m3o.com/nft/api#Asset)
|
||||
|
||||
```go
|
||||
package example
|
||||
|
||||
import(
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"go.m3o.com/nft"
|
||||
)
|
||||
|
||||
//
|
||||
func GetAsingleAsset() {
|
||||
nftService := nft.NewNftService(os.Getenv("M3O_API_TOKEN"))
|
||||
rsp, err := nftService.Asset(&nft.AssetRequest{
|
||||
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
|
||||
}
|
||||
```
|
||||
## Collection
|
||||
|
||||
|
||||
|
||||
|
||||
[https://m3o.com/nft/api#Collection](https://m3o.com/nft/api#Collection)
|
||||
|
||||
```go
|
||||
package example
|
||||
|
||||
import(
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"go.m3o.com/nft"
|
||||
)
|
||||
|
||||
//
|
||||
func GetAsingleCollection() {
|
||||
nftService := nft.NewNftService(os.Getenv("M3O_API_TOKEN"))
|
||||
rsp, err := nftService.Collection(&nft.CollectionRequest{
|
||||
Slug: "doodles-official",
|
||||
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user