Skip to content

How to change your API endpoint?

Tim Arney edited this page Sep 23, 2019 · 13 revisions

When setting up your Notify api client for the Canadian endpoint you need to pass a base url parameter before your api key.

Examples:

Node JS

NotifyClient("https://api.notification.alpha.canada.ca", apiKey)

Java

public NotificationClient(final String apiKey, final String baseUrl) {

.Net

public NotificationClient(string baseUrl, string apiKey) 

PHP

See config options: https://github.com/alphagov/notifications-php-client/blob/master/src/Client.php#L84