Inciar sesión





¿Olvidó su contraseña?

cron.get

Returns details of one or more cron's.

Authentication & Action

This method needs authentication. It can be accessed by http and https.

Action type: HTTP GET.

Arguments

id (optional)

The id or id's of one or more cron's. Id's should be comma-seperated if more than one.

group_id (optional)

The id or id's of one or more groups. Id's should be comma-seperated if more than one.

name (optional)

The name of the cron. Allowed values: string (255)

status (optional)

The status of the cron. Allowed values: 1 = enabled / 0 = disabled

time_out (optional)

The time-out of the cron, in seconds. Allowed values: 30 / 180 / 600 / 1800 / 3600

one_off (optional)

show one-off cron's or not. Allowed values: 1 = show / 0 = don't show

page (optional)

The pagenumber of returned data. Allowed values: any integer

perpage (optional)

The max. number of cron's returned. Allowed values: any integer. The maximum value is 100. Default value is 10

 

If no arguments are send, all cron's will be returned.

Example Request

http://api.webcron.org/cron.get/id:19605

Example Response

<rsp status="ok" total="1" page="1" perpage="10">
   <cron id="19605" status="1" time_out="30" one_off="0">
      <name>My Cron</name>
      <url>http://www.launchthisurl.net/dailyCron.html</url>
      <login />
       <password />
       <time>
          <year>*</year>
          <month>*</month>
          <weekday>2</weekday>
          <day>*</day>
          <hour>*</hour>
          <minute>0,5,10,20,30</minute>
       </time>
      <group id="1204">My group name</group>
      <created>2009-02-24 18:17:02</created>
      <modified>2009-07-21 09:10:48</modified>
   </cron>
</rsp>