// Add creates a new cron job.
Add creates a new cron job.
// Add creates a new cron job .
func (c *Client) Add(url string, cronExpression string, v url.Values) (out *AddOutput, err error) {
	v = c.defaultValues(v)
	v.Set("url", url)
	v.Set("cron_expression", cronExpression)
	body, err := c.call("add", v)
	if err != nil {
		return nil, err
	}
	err = json.Unmarshal(body, &out)
	if err != nil {
		return nil, err
	}
	return out, nil
}
func ( c * Client ) Add ( url string , cronExpression string , v url . Values ) ( out * AddOutput , err error ) { v = c . defaultValues ( v ) v . Set ( " " , url ) v . Set ( " " , cronExpression ) body , err := c . call ( " " , v ) if err != nil { return nil , err } err = json . Unmarshal ( body , & out ) if err != nil { return nil , err } return out , nil }
Add creates a new cron job.
Add creates a new cron job .