From 8e1d9c50a8336298da3b7b26ca7b5d17b41b1ade Mon Sep 17 00:00:00 2001 From: Danny Simms <103758200+GreyNewfie@users.noreply.github.com> Date: Tue, 15 Apr 2025 20:46:37 -0230 Subject: [PATCH 1/4] Add region support comments to Python Quick Start sample --- docs/quick-start/send-a-notification.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/quick-start/send-a-notification.md b/docs/quick-start/send-a-notification.md index 93605b8..6a482c3 100644 --- a/docs/quick-start/send-a-notification.md +++ b/docs/quick-start/send-a-notification.md @@ -230,7 +230,9 @@ notificationapi.send({ import asyncio from notificationapi_python_server_sdk import (notificationapi) -# init +# initialize notificationapi (default US region) +# if in the CA region, add 'https://api.ca.notificationapi.com' after CLIENT_SECRET +# if in the EU region, add 'https://api.eu.notificationapi.com' after CLIENT_SECRET notificationapi.init("CLIENT_ID", "CLIENT_SECRET") # send From 958c25ea1d050050d2f2b8f8049532f73355e3c6 Mon Sep 17 00:00:00 2001 From: Danny Simms <103758200+GreyNewfie@users.noreply.github.com> Date: Tue, 15 Apr 2025 20:51:44 -0230 Subject: [PATCH 2/4] Add region support comments to Node Quick Start sample --- docs/quick-start/send-a-notification.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/quick-start/send-a-notification.md b/docs/quick-start/send-a-notification.md index 6a482c3..13f857b 100644 --- a/docs/quick-start/send-a-notification.md +++ b/docs/quick-start/send-a-notification.md @@ -200,7 +200,9 @@ values={[ import notificationapi from 'notificationapi-node-server-sdk'; // const notificationapi = require('notificationapi-node-server-sdk').default -// init +// initialize notificationapi (default US region) +// if in the CA region, add 'https://api.ca.notificationapi.com' after CLIENT_SECRET +// if in the EU region, add 'https://api.eu.notificationapi.com' after CLIENT_SECRET notificationapi.init('CLIENT_ID', 'CLIENT_SECRET'); // send From d30b0d78ec09b137a1d2b74420e72995ba0eb330 Mon Sep 17 00:00:00 2001 From: Danny Simms <103758200+GreyNewfie@users.noreply.github.com> Date: Tue, 15 Apr 2025 20:57:20 -0230 Subject: [PATCH 3/4] Add region support comments to CSharp Quick Start sample --- docs/quick-start/send-a-notification.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/quick-start/send-a-notification.md b/docs/quick-start/send-a-notification.md index 13f857b..d49cd5e 100644 --- a/docs/quick-start/send-a-notification.md +++ b/docs/quick-start/send-a-notification.md @@ -340,7 +340,9 @@ func main() { using NotificationApi.Server; using NotificationApi.Server.Models; -//initialize +// initialize notificationapi (default US region) +// if in the CA region, add 'https://api.ca.notificationapi.com' after boolean argument +// if in the EU region, add 'https://api.eu.notificationapi.com' after boolean argument var notificationApi = new NotificationApiServer("CLIENT_ID", "CLIENT_SECRET", false); //send From f63cf03a4ba6f8dbdff257a019e5d294c9ca6cbe Mon Sep 17 00:00:00 2001 From: Danny Simms <103758200+GreyNewfie@users.noreply.github.com> Date: Tue, 15 Apr 2025 21:23:35 -0230 Subject: [PATCH 4/4] Add region support comments to Ruby Quick Start sample --- docs/quick-start/send-a-notification.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/quick-start/send-a-notification.md b/docs/quick-start/send-a-notification.md index d49cd5e..5ad477f 100644 --- a/docs/quick-start/send-a-notification.md +++ b/docs/quick-start/send-a-notification.md @@ -92,9 +92,13 @@ require 'openssl' class NotificationAPI def initialize(client_id, client_secret) + # if in the CA region, use 'https://api.ca.notificationapi.com' + # if in the EU region, use 'https://api.eu.notificationapi.com' @base_url = 'https://api.notificationapi.com' @client_id = client_id @auth_token = Base64.strict_encode64("#{client_id}:#{client_secret}") + # if in the CA region, use 'api.ca.notificationapi.com' + # if in the EU region, use 'api.eu.notificationapi.com' @http_client = Net::HTTP.new('api.notificationapi.com', 443) @http_client.use_ssl = true end @@ -372,7 +376,9 @@ await notificationApi.Send(new SendNotificationData("order_tracking", user) # require: require './NotificationAPI' -# init +# initialize notificationapi (default US region) +# if in the CA region, add 'https://api.ca.notificationapi.com' after CLIENT_SECRET +# if in the EU region, add 'https://api.eu.notificationapi.com' after CLIENT_SECRET notificationapi = NotificationAPI.new("CLIENT_ID", "CLIENT_SECRET") # send