Simple EasyCron client for Go.
Modelled more or less 1:1 with the API for consistency and parity with the official documentation.
$ go get github.com/anastalaz/easycron
package main
import (
"fmt"
"net/url"
"github.com/anastalaz/easycron"
)
func main() {
client := easycron.New(easycron.NewConfig("EASYCRON_ACCESS_TOKEN"))
// Get list of all cronjobs
v := url.Values{}
v.Set("size", "1")
myCronJobs, err := client.List(v) // If no optional parameters pass nil
if err != nil {
fmt.Println(err)
return
}
fmt.Println(myCronJobs)
}