API v3 reference - partner
Version 3 of the Amilia API is the latest supported version. If you are using an older version, we recommend you switch to this one.
Activities
In Amilia, an activity is a class or specific offering. Other systems may call this a program, whereas in Amilia a program is a container of similar activities.
PARAMETERS | ||
---|---|---|
language (string) |
Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en' |
Required |
id (integer) |
Activity id |
Required |
showTaxes (boolean) |
Default value is False |
Optional |
#
Get an activity's occurrences
Returns a list of activity (events), with the option to define a start and end date and to show those that have been edited
PARAMETERS | ||
---|---|---|
language (string) |
Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en' |
Required |
id (integer) |
Activity id |
Required |
showEdited (boolean) |
Option to show items that have been modified. Default value is False |
Optional |
start (date) |
Inclusive start limit of a date range filter. Format is YYYY-MM-DD. When both start and end are omitted, returns events for today |
Optional |
end (date) |
Inclusive end limit of a date range filter. Format is YYYY-MM-DD. If end is omitted, retrieves only for one day specified by start |
Optional |
page (integer) |
Result page number that appears first. Default value is 1 |
Optional |
perPage (integer) |
Number of results per page. Default value is 200 |
Optional |
Authentication
#
Authenticate the user in the API
Returns a token to be used for all other calls. Note that the call (written with the full path below) does not contain the {language} parameter
There are no parameters for this call.
Keywords
Keywords summarize specific types of and are related to
#
Get keywords
Returns a list of supported keywords, with the option to specify a partner name
PARAMETERS | ||
---|---|---|
language (string) |
Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en' |
Required |
partner (string) |
Partner name. Default value is null |
Optional |
#
Get a keyword
Returns an individual keyword by id, with the option to specify a partner name
PARAMETERS | ||
---|---|---|
language (string) |
Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en' |
Required |
id (integer) |
Keyword id |
Required |
partner (string) |
Partner name. Default value is null |
Optional |
Locations
Physical places where activities happen
#
Get locations
You must specify area type and coordinates. You also have the option to specify a radius and an activity keyword id. You can also show children locations that have the given keyword
PARAMETERS | ||
---|---|---|
language (string) |
Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en' |
Required |
type (string) |
Shape of search area: circle (search by Radius), rectangle (search by BoundingBox) or polygon (search by Polygon). |
Required |
coordinates (list of doubles) |
Pairs of points on a 2D map. Each pair has the format 45.00,73.00. Extra pairs are appended with a comma like so: 45.00,73.00,10.00,10.00. In the search by BoundingBox, the rectangle is defined by its top-left and bottom-right coordinates (so four numbers).In the search by Polygon, the polygon is defined by all its coordinates (an even number of numbers, and more than four numbers). The polygon points must be ordered either clockwise or counterclockwise to prevent the enclosed area from folding over itself and give unexpected results. |
Required |
radius (integer) |
In the search by Radius, the circle is defined by its radius in km. Default value is null |
Optional |
keywordId (integer) |
Activity keyword id. Default value is null |
Optional |
showChildrenKeywords (boolean) |
Option to also show children locations containing the given keywords Default value is False |
Optional |
page (integer) |
Result page number that appears first. Default value is 1 |
Optional |
perPage (integer) |
Number of results per page. Default value is 200 |
Optional |
#
Get activities by location
You can get the location id from /locations. Returns a list of taking place at the given location, with the option to show hidden and cancelled activities as well as activities in children locations, and to specify an activity keyword id and children locations containing the given keyword. It's possible to sort this list on the Id, Name or Date field.
PARAMETERS | ||
---|---|---|
language (string) |
Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en' |
Required |
id (integer) |
Location id |
Required |
showHidden (boolean) |
Option to return hidden items. Default value is False |
Optional |
showCancelled (boolean) |
Option to also return cancelled items. Default value is False |
Optional |
showChildrenActivities (boolean) |
Option to also show activities in children locations. Default value is False |
Optional |
keywordId (integer) |
Activity keyword id. Default value is null |
Optional |
showChildrenKeywords (boolean) |
Option to also show children locations containing the given keywords Default value is False |
Optional |
page (integer) |
Result page number that appears first. Default value is 1 |
Optional |
perPage (integer) |
Number of results per page. Default value is 200 |
Optional |
sortBy (string) |
Value to sort by. Can be id, name or date. Default value is id |
Optional |
PARAMETERS | ||
---|---|---|
language (string) |
Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en' |
Required |
id (integer) |
Location id |
Required |