Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Commit b5f3687

Browse files
authored
Merge branch 'main' into OHBV5uaK/3175-webhook-doc
2 parents 7a0f182 + 9515161 commit b5f3687

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

docs/quick-start/send-a-notification.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,13 @@ require 'openssl'
9292

9393
class NotificationAPI
9494
def initialize(client_id, client_secret)
95+
# if in the CA region, use 'https://api.ca.notificationapi.com'
96+
# if in the EU region, use 'https://api.eu.notificationapi.com'
9597
@base_url = 'https://api.notificationapi.com'
9698
@client_id = client_id
9799
@auth_token = Base64.strict_encode64("#{client_id}:#{client_secret}")
100+
# if in the CA region, use 'api.ca.notificationapi.com'
101+
# if in the EU region, use 'api.eu.notificationapi.com'
98102
@http_client = Net::HTTP.new('api.notificationapi.com', 443)
99103
@http_client.use_ssl = true
100104
end
@@ -200,7 +204,9 @@ values={[
200204
import notificationapi from 'notificationapi-node-server-sdk';
201205
// const notificationapi = require('notificationapi-node-server-sdk').default
202206

203-
// init
207+
// initialize notificationapi (default US region)
208+
// if in the CA region, add 'https://api.ca.notificationapi.com' after CLIENT_SECRET
209+
// if in the EU region, add 'https://api.eu.notificationapi.com' after CLIENT_SECRET
204210
notificationapi.init('CLIENT_ID', 'CLIENT_SECRET');
205211

206212
// send
@@ -230,7 +236,9 @@ notificationapi.send({
230236
import asyncio
231237
from notificationapi_python_server_sdk import (notificationapi)
232238

233-
# init
239+
# initialize notificationapi (default US region)
240+
# if in the CA region, add 'https://api.ca.notificationapi.com' after CLIENT_SECRET
241+
# if in the EU region, add 'https://api.eu.notificationapi.com' after CLIENT_SECRET
234242
notificationapi.init("CLIENT_ID", "CLIENT_SECRET")
235243

236244
# send
@@ -336,7 +344,9 @@ func main() {
336344
using NotificationApi.Server;
337345
using NotificationApi.Server.Models;
338346

339-
//initialize
347+
// initialize notificationapi (default US region)
348+
// if in the CA region, add 'https://api.ca.notificationapi.com' after boolean argument
349+
// if in the EU region, add 'https://api.eu.notificationapi.com' after boolean argument
340350
var notificationApi = new NotificationApiServer("CLIENT_ID", "CLIENT_SECRET", false);
341351

342352
//send
@@ -366,7 +376,9 @@ await notificationApi.Send(new SendNotificationData("order_tracking", user)
366376
# require:
367377
require './NotificationAPI'
368378

369-
# init
379+
# initialize notificationapi (default US region)
380+
# if in the CA region, add 'https://api.ca.notificationapi.com' after CLIENT_SECRET
381+
# if in the EU region, add 'https://api.eu.notificationapi.com' after CLIENT_SECRET
370382
notificationapi = NotificationAPI.new("CLIENT_ID", "CLIENT_SECRET")
371383

372384
# send

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)