GET Advisories
Returns all advisories.
Request Information
https://511.gnb.ca/api/v2/get/alerts
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
Developer Key |
string |
Required |
format |
Valid values are 'xml' or 'json', default 'json'. |
string |
Optional |
lang |
Valid values are 'en' or 'fr', default 'en'. |
string |
Optional |
Response Information
Resource Description
Name | Description | Type |
---|---|---|
Id |
A unique identifier. |
integer |
Message |
The advisory details. |
string |
Notes |
Additional advisory details. |
string |
StartTime |
The start time of the advisory in Unix time. More information |
integer |
EndTime |
The end time of the advisory in Unix time. More information |
integer |
HighImportance |
Whether the advisory is flagged as high importance. |
boolean |
SendNotification |
Whether the advisory is disseminated over communication channels (SMS, Email, IVR). |
boolean |
Response Formats
JSON
[
{
"Id": 1,
"Message": "Bridge Repair on HWY-8 Southbound at Northwest Miramichi",
"Notes": null,
"StartTime": 1661789280,
"EndTime": 1661875620,
"HighImportance": true,
"SendNotification": true
},
{
"Id": 2,
"Message": "Washouts on HWY-615 Both Directions",
"Notes": null,
"StartTime": 1661790240,
"EndTime": 1661876580,
"HighImportance": true,
"SendNotification": true
}
]
XML
<AlertsList>
<Alerts>
<Id>1</Id>
<Message>Bridge Repair on HWY-8 Southbound at Northwest Miramichi</Message>
<Notes/>
<StartTime>1661789280</StartTime>
<EndTime>1661875620</EndTime>
<HighImportance>true</HighImportance>
<SendNotification>true</SendNotification>
</Alerts>
<Alerts>
<Id>2</Id>
<Message>Washouts on HWY-615 Both Directions</Message>
<Notes/>
<StartTime>1661790240</StartTime>
<EndTime>1661876580</EndTime>
<HighImportance>true</HighImportance>
<SendNotification>true</SendNotification>
</Alerts>
</AlertsList>