1. Get direction details (api1/directions/details)
This method will answer with a collection of derection details.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/directions/details |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/directions/details |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| id |
Direction ID |
Yes |
Response
{
"street": "50 Hunter Street",
"postcode": "2000",
"suburb": "Sydney",
"sublocality": "City of Sydney",
"state": "New South Wales",
"country": "Australia",
"latitude": "-33.865962596883854",
"longitude": "151.2095566772461",
"care_of": "",
"mmm_classification": ""
}
2. New direction (api1/directions/new)
This method will allow to create a new direction.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/tasks/new |
POST |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/tasks/new |
POST |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| street |
Street (i.e.: 50 Hunter Street) |
No |
| postcode |
Postcode (i.e.: 2000) |
No |
| suburb |
Suburb (i.e.: Sydney) |
No |
| sublocality |
Sublocality (i.e.: City of Sydney) |
No |
| state |
State (i.e.: New South Wales) |
No |
| country |
Country (i.e.: Australia) |
No |
| latitude |
Latitude (i.e.: -33.865962596883854) |
No |
| longitude |
Longitude (i.e.: -33.865962596883854) |
No |
| care_of |
Care of (i.e.: Test) |
No |
| mmm_classification |
mmm_classification (i.e.: 2) |
No |
Response
{
"response": "Direction successfuly created",
"id": 256
}
3. Update direction (api1/directions/update)
This method will allow to update a direction.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/tasks/update |
PUT |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/tasks/update |
PUT |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| id |
direction id (i.e.: 1) |
Yes |
| street |
Street (i.e.: 50 Hunter Street) |
No |
| postcode |
Postcode (i.e.: 2000) |
No |
| suburb |
Suburb (i.e.: Sydney) |
No |
| sublocality |
Sublocality (i.e.: City of Sydney) |
No |
| state |
State (i.e.: New South Wales) |
No |
| country |
Country (i.e.: Australia) |
No |
| latitude |
Latitude (i.e.: -33.865962596883854) |
No |
| longitude |
Longitude (i.e.: -33.865962596883854) |
No |
| care_of |
Care of (i.e.: Test) |
No |
| mmm_classification |
mmm_classification (i.e.: 2) |
No |
Response
{
"response": "Direction successfuly updated",
"id": 256
}