EasyCron
Simple EasyCron client for Go.
About
Modelled more or less 1:1 with the API for consistency and parity with the official documentation.
Installation
$ go get github.com/anastalaz/easycron
Example
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)
}