REST API v1.0 - Create a new task
Here we want to describe how you can make your first task using API.
https://api.atrigger.com/v1/tasks/create? key=APIKEY //required &secret=APISECRET //required &timeSlice=1month //required &count=12 //required &url=http%3A%2F%2Fexample.com%2FmyTask%3Fquery%3Dsample //required
All About ParametersSome queries are required to create a task. More optional parameters are available for advanced usages. Also POST and GET requests to API has different meanings.
Parameters: URL Queries
key: Your API Key
secret: Your API Secret
timeSlice: When should be called? read more at timeSlice possible
count: How many cycles should be repeated?
url: The target url that A Trigger will call it at defined TimeSlice. MUST BE URL ENCRYPTED
retries: How many times should try if your server failed(or it was down)? default value: 3
first: When should be the first call? You are not required to set time value by default. read more at first parameter
Parameters: POST DataThis is an optional advanced feature. In a sentence: On task creation using API, Any data you are POSTing to "Create API URL", will be POSTed to your task URL at the time of fire.
You can forward details such as user information and useful data for your task as POST data to A Trigger API. This information will be passed to your task url at the time of fire.
- Files and images will be ignored.
- There are some size limits.
- POST data should be well formated by Keys/Values.