Skip to content

anastalaz/easycron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyCron GoDoc gopherbadger-tag-do-not-edit Go Report Card

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)
}

About

Simple EasyCron client for Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages