Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2022-01-07 11:59:24 +00:00
parent 4029f043af
commit fc3cf88dd1
24 changed files with 1071 additions and 968 deletions

View File

@@ -0,0 +1,15 @@
package main
import (
"fmt"
"os"
"go.m3o.com/carbon"
)
// Purchase 1kg (0.001 tonnes) of carbon offsets in a single request
func main() {
carbonService := carbon.NewCarbonService(os.Getenv("M3O_API_TOKEN"))
rsp, err := carbonService.Offset(&carbon.OffsetRequest{})
fmt.Println(rsp, err)
}