1
0
Fork 0
mirror of synced 2024-05-17 11:12:41 +12:00

chore(sdks): update msg91 examples

This commit is contained in:
Steven Nguyen 2024-03-21 17:22:55 -07:00
parent c6118c17e7
commit b91fa98dc1
No known key found for this signature in database
26 changed files with 37 additions and 37 deletions

View file

@ -9,7 +9,7 @@ const messaging = new Messaging(client);
const result = await messaging.createMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name
'+12065550100', // from (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
false // enabled (optional)

View file

@ -10,9 +10,9 @@ const result = await messaging.updateMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name (optional)
false, // enabled (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
'<FROM>' // from (optional)
'<AUTH_KEY>' // authKey (optional)
);
console.log(response);

View file

@ -10,7 +10,7 @@ Messaging messaging = Messaging(client);
Provider result = await messaging.createMsg91Provider(
providerId: '<PROVIDER_ID>',
name: '<NAME>',
from: '+12065550100', // (optional)
templateId: '<TEMPLATE_ID>', // (optional)
senderId: '<SENDER_ID>', // (optional)
authKey: '<AUTH_KEY>', // (optional)
enabled: false, // (optional)

View file

@ -11,7 +11,7 @@ Provider result = await messaging.updateMsg91Provider(
providerId: '<PROVIDER_ID>',
name: '<NAME>', // (optional)
enabled: false, // (optional)
templateId: '<TEMPLATE_ID>', // (optional)
senderId: '<SENDER_ID>', // (optional)
authKey: '<AUTH_KEY>', // (optional)
from: '<FROM>', // (optional)
);

View file

@ -10,7 +10,7 @@ const messaging = new Messaging(client);
const response = await messaging.createMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name
'+12065550100', // from (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
false // enabled (optional)

View file

@ -11,7 +11,7 @@ const response = await messaging.updateMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name (optional)
false, // enabled (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
'<FROM>' // from (optional)
'<AUTH_KEY>' // authKey (optional)
);

View file

@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
Provider result = await messaging.CreateMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>",
from: "+12065550100", // optional
templateId: "<TEMPLATE_ID>", // optional
senderId: "<SENDER_ID>", // optional
authKey: "<AUTH_KEY>", // optional
enabled: false // optional

View file

@ -13,7 +13,7 @@ Provider result = await messaging.UpdateMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>", // optional
enabled: false, // optional
templateId: "<TEMPLATE_ID>", // optional
senderId: "<SENDER_ID>", // optional
authKey: "<AUTH_KEY>", // optional
from: "<FROM>" // optional
authKey: "<AUTH_KEY>" // optional
);

View file

@ -2,7 +2,7 @@ mutation {
messagingCreateMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>",
from: "+12065550100",
templateId: "<TEMPLATE_ID>",
senderId: "<SENDER_ID>",
authKey: "<AUTH_KEY>",
enabled: false

View file

@ -3,9 +3,9 @@ mutation {
providerId: "<PROVIDER_ID>",
name: "<NAME>",
enabled: false,
templateId: "<TEMPLATE_ID>",
senderId: "<SENDER_ID>",
authKey: "<AUTH_KEY>",
from: "<FROM>"
authKey: "<AUTH_KEY>"
) {
_id
_createdAt

View file

@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
messaging.createMsg91Provider(
"<PROVIDER_ID>", // providerId
"<NAME>", // name
"+12065550100", // from (optional)
"<TEMPLATE_ID>", // templateId (optional)
"<SENDER_ID>", // senderId (optional)
"<AUTH_KEY>", // authKey (optional)
false, // enabled (optional)

View file

@ -13,9 +13,9 @@ messaging.updateMsg91Provider(
"<PROVIDER_ID>", // providerId
"<NAME>", // name (optional)
false, // enabled (optional)
"<TEMPLATE_ID>", // templateId (optional)
"<SENDER_ID>", // senderId (optional)
"<AUTH_KEY>", // authKey (optional)
"<FROM>", // from (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();

View file

@ -12,7 +12,7 @@ val messaging = Messaging(client)
val response = messaging.createMsg91Provider(
providerId = "<PROVIDER_ID>",
name = "<NAME>",
from = "+12065550100", // optional
templateId = "<TEMPLATE_ID>", // optional
senderId = "<SENDER_ID>", // optional
authKey = "<AUTH_KEY>", // optional
enabled = false // optional

View file

@ -13,7 +13,7 @@ val response = messaging.updateMsg91Provider(
providerId = "<PROVIDER_ID>",
name = "<NAME>", // optional
enabled = false, // optional
templateId = "<TEMPLATE_ID>", // optional
senderId = "<SENDER_ID>", // optional
authKey = "<AUTH_KEY>", // optional
from = "<FROM>" // optional
authKey = "<AUTH_KEY>" // optional
)

View file

@ -10,7 +10,7 @@ const messaging = new sdk.Messaging(client);
const result = await messaging.createMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name
'+12065550100', // from (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
false // enabled (optional)

View file

@ -11,7 +11,7 @@ const result = await messaging.updateMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name (optional)
false, // enabled (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
'<FROM>' // from (optional)
'<AUTH_KEY>' // authKey (optional)
);

View file

@ -13,7 +13,7 @@ $messaging = new Messaging($client);
$result = $messaging->createMsg91Provider(
providerId: '<PROVIDER_ID>',
name: '<NAME>',
from: '+12065550100', // optional
templateId: '<TEMPLATE_ID>', // optional
senderId: '<SENDER_ID>', // optional
authKey: '<AUTH_KEY>', // optional
enabled: false // optional

View file

@ -14,7 +14,7 @@ $result = $messaging->updateMsg91Provider(
providerId: '<PROVIDER_ID>',
name: '<NAME>', // optional
enabled: false, // optional
templateId: '<TEMPLATE_ID>', // optional
senderId: '<SENDER_ID>', // optional
authKey: '<AUTH_KEY>', // optional
from: '<FROM>' // optional
authKey: '<AUTH_KEY>' // optional
);

View file

@ -10,7 +10,7 @@ messaging = Messaging(client)
result = messaging.create_msg91_provider(
provider_id = '<PROVIDER_ID>',
name = '<NAME>',
from = '+12065550100', # optional
template_id = '<TEMPLATE_ID>', # optional
sender_id = '<SENDER_ID>', # optional
auth_key = '<AUTH_KEY>', # optional
enabled = False # optional

View file

@ -11,7 +11,7 @@ result = messaging.update_msg91_provider(
provider_id = '<PROVIDER_ID>',
name = '<NAME>', # optional
enabled = False, # optional
template_id = '<TEMPLATE_ID>', # optional
sender_id = '<SENDER_ID>', # optional
auth_key = '<AUTH_KEY>', # optional
from = '<FROM>' # optional
auth_key = '<AUTH_KEY>' # optional
)

View file

@ -8,7 +8,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
{
"providerId": "<PROVIDER_ID>",
"name": "<NAME>",
"from": "+12065550100",
"templateId": "<TEMPLATE_ID>",
"senderId": "<SENDER_ID>",
"authKey": "<AUTH_KEY>",
"enabled": false

View file

@ -8,7 +8,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
{
"name": "<NAME>",
"enabled": false,
"templateId": "<TEMPLATE_ID>",
"senderId": "<SENDER_ID>",
"authKey": "<AUTH_KEY>",
"from": "<FROM>"
"authKey": "<AUTH_KEY>"
}

View file

@ -12,7 +12,7 @@ messaging = Messaging.new(client)
result = messaging.create_msg91_provider(
provider_id: '<PROVIDER_ID>',
name: '<NAME>',
from: '+12065550100', # optional
template_id: '<TEMPLATE_ID>', # optional
sender_id: '<SENDER_ID>', # optional
auth_key: '<AUTH_KEY>', # optional
enabled: false # optional

View file

@ -13,7 +13,7 @@ result = messaging.update_msg91_provider(
provider_id: '<PROVIDER_ID>',
name: '<NAME>', # optional
enabled: false, # optional
template_id: '<TEMPLATE_ID>', # optional
sender_id: '<SENDER_ID>', # optional
auth_key: '<AUTH_KEY>', # optional
from: '<FROM>' # optional
auth_key: '<AUTH_KEY>' # optional
)

View file

@ -10,7 +10,7 @@ let messaging = Messaging(client)
let provider = try await messaging.createMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>",
from: "+12065550100", // optional
templateId: "<TEMPLATE_ID>", // optional
senderId: "<SENDER_ID>", // optional
authKey: "<AUTH_KEY>", // optional
enabled: false // optional

View file

@ -11,8 +11,8 @@ let provider = try await messaging.updateMsg91Provider(
providerId: "<PROVIDER_ID>",
name: "<NAME>", // optional
enabled: false, // optional
templateId: "<TEMPLATE_ID>", // optional
senderId: "<SENDER_ID>", // optional
authKey: "<AUTH_KEY>", // optional
from: "<FROM>" // optional
authKey: "<AUTH_KEY>" // optional
)