Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 499 Bytes

File metadata and controls

38 lines (27 loc) · 499 Bytes

me-api

me-api is a package for interacting with MagicEden API with Go code.

Installation

go get github.com/fidesy/me-api

Usage

package main

import (
	"context"
	"log"

	"github.com/fidesy/me-api/pkg/api"
)

func main() {
	c := api.New(&api.Config{})

	stats, err := c.GetActivities(context.TODO(), "primates", 0, 5)
	if err != nil {
		log.Fatal(err)
	}

	for _, s := range stats {
		log.Println(s)
	}
}

License

MIT