chore(sdks): update msg91 examples
This commit is contained in:
parent
c6118c17e7
commit
b91fa98dc1
|
@ -9,7 +9,7 @@ const messaging = new Messaging(client);
|
||||||
const result = await messaging.createMsg91Provider(
|
const result = await messaging.createMsg91Provider(
|
||||||
'<PROVIDER_ID>', // providerId
|
'<PROVIDER_ID>', // providerId
|
||||||
'<NAME>', // name
|
'<NAME>', // name
|
||||||
'+12065550100', // from (optional)
|
'<TEMPLATE_ID>', // templateId (optional)
|
||||||
'<SENDER_ID>', // senderId (optional)
|
'<SENDER_ID>', // senderId (optional)
|
||||||
'<AUTH_KEY>', // authKey (optional)
|
'<AUTH_KEY>', // authKey (optional)
|
||||||
false // enabled (optional)
|
false // enabled (optional)
|
||||||
|
|
|
@ -10,9 +10,9 @@ const result = await messaging.updateMsg91Provider(
|
||||||
'<PROVIDER_ID>', // providerId
|
'<PROVIDER_ID>', // providerId
|
||||||
'<NAME>', // name (optional)
|
'<NAME>', // name (optional)
|
||||||
false, // enabled (optional)
|
false, // enabled (optional)
|
||||||
|
'<TEMPLATE_ID>', // templateId (optional)
|
||||||
'<SENDER_ID>', // senderId (optional)
|
'<SENDER_ID>', // senderId (optional)
|
||||||
'<AUTH_KEY>', // authKey (optional)
|
'<AUTH_KEY>' // authKey (optional)
|
||||||
'<FROM>' // from (optional)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -10,7 +10,7 @@ Messaging messaging = Messaging(client);
|
||||||
Provider result = await messaging.createMsg91Provider(
|
Provider result = await messaging.createMsg91Provider(
|
||||||
providerId: '<PROVIDER_ID>',
|
providerId: '<PROVIDER_ID>',
|
||||||
name: '<NAME>',
|
name: '<NAME>',
|
||||||
from: '+12065550100', // (optional)
|
templateId: '<TEMPLATE_ID>', // (optional)
|
||||||
senderId: '<SENDER_ID>', // (optional)
|
senderId: '<SENDER_ID>', // (optional)
|
||||||
authKey: '<AUTH_KEY>', // (optional)
|
authKey: '<AUTH_KEY>', // (optional)
|
||||||
enabled: false, // (optional)
|
enabled: false, // (optional)
|
||||||
|
|
|
@ -11,7 +11,7 @@ Provider result = await messaging.updateMsg91Provider(
|
||||||
providerId: '<PROVIDER_ID>',
|
providerId: '<PROVIDER_ID>',
|
||||||
name: '<NAME>', // (optional)
|
name: '<NAME>', // (optional)
|
||||||
enabled: false, // (optional)
|
enabled: false, // (optional)
|
||||||
|
templateId: '<TEMPLATE_ID>', // (optional)
|
||||||
senderId: '<SENDER_ID>', // (optional)
|
senderId: '<SENDER_ID>', // (optional)
|
||||||
authKey: '<AUTH_KEY>', // (optional)
|
authKey: '<AUTH_KEY>', // (optional)
|
||||||
from: '<FROM>', // (optional)
|
|
||||||
);
|
);
|
||||||
|
|
|
@ -10,7 +10,7 @@ const messaging = new Messaging(client);
|
||||||
const response = await messaging.createMsg91Provider(
|
const response = await messaging.createMsg91Provider(
|
||||||
'<PROVIDER_ID>', // providerId
|
'<PROVIDER_ID>', // providerId
|
||||||
'<NAME>', // name
|
'<NAME>', // name
|
||||||
'+12065550100', // from (optional)
|
'<TEMPLATE_ID>', // templateId (optional)
|
||||||
'<SENDER_ID>', // senderId (optional)
|
'<SENDER_ID>', // senderId (optional)
|
||||||
'<AUTH_KEY>', // authKey (optional)
|
'<AUTH_KEY>', // authKey (optional)
|
||||||
false // enabled (optional)
|
false // enabled (optional)
|
||||||
|
|
|
@ -11,7 +11,7 @@ const response = await messaging.updateMsg91Provider(
|
||||||
'<PROVIDER_ID>', // providerId
|
'<PROVIDER_ID>', // providerId
|
||||||
'<NAME>', // name (optional)
|
'<NAME>', // name (optional)
|
||||||
false, // enabled (optional)
|
false, // enabled (optional)
|
||||||
|
'<TEMPLATE_ID>', // templateId (optional)
|
||||||
'<SENDER_ID>', // senderId (optional)
|
'<SENDER_ID>', // senderId (optional)
|
||||||
'<AUTH_KEY>', // authKey (optional)
|
'<AUTH_KEY>' // authKey (optional)
|
||||||
'<FROM>' // from (optional)
|
|
||||||
);
|
);
|
||||||
|
|
|
@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
|
||||||
Provider result = await messaging.CreateMsg91Provider(
|
Provider result = await messaging.CreateMsg91Provider(
|
||||||
providerId: "<PROVIDER_ID>",
|
providerId: "<PROVIDER_ID>",
|
||||||
name: "<NAME>",
|
name: "<NAME>",
|
||||||
from: "+12065550100", // optional
|
templateId: "<TEMPLATE_ID>", // optional
|
||||||
senderId: "<SENDER_ID>", // optional
|
senderId: "<SENDER_ID>", // optional
|
||||||
authKey: "<AUTH_KEY>", // optional
|
authKey: "<AUTH_KEY>", // optional
|
||||||
enabled: false // optional
|
enabled: false // optional
|
||||||
|
|
|
@ -13,7 +13,7 @@ Provider result = await messaging.UpdateMsg91Provider(
|
||||||
providerId: "<PROVIDER_ID>",
|
providerId: "<PROVIDER_ID>",
|
||||||
name: "<NAME>", // optional
|
name: "<NAME>", // optional
|
||||||
enabled: false, // optional
|
enabled: false, // optional
|
||||||
|
templateId: "<TEMPLATE_ID>", // optional
|
||||||
senderId: "<SENDER_ID>", // optional
|
senderId: "<SENDER_ID>", // optional
|
||||||
authKey: "<AUTH_KEY>", // optional
|
authKey: "<AUTH_KEY>" // optional
|
||||||
from: "<FROM>" // optional
|
|
||||||
);
|
);
|
|
@ -2,7 +2,7 @@ mutation {
|
||||||
messagingCreateMsg91Provider(
|
messagingCreateMsg91Provider(
|
||||||
providerId: "<PROVIDER_ID>",
|
providerId: "<PROVIDER_ID>",
|
||||||
name: "<NAME>",
|
name: "<NAME>",
|
||||||
from: "+12065550100",
|
templateId: "<TEMPLATE_ID>",
|
||||||
senderId: "<SENDER_ID>",
|
senderId: "<SENDER_ID>",
|
||||||
authKey: "<AUTH_KEY>",
|
authKey: "<AUTH_KEY>",
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
|
@ -3,9 +3,9 @@ mutation {
|
||||||
providerId: "<PROVIDER_ID>",
|
providerId: "<PROVIDER_ID>",
|
||||||
name: "<NAME>",
|
name: "<NAME>",
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
templateId: "<TEMPLATE_ID>",
|
||||||
senderId: "<SENDER_ID>",
|
senderId: "<SENDER_ID>",
|
||||||
authKey: "<AUTH_KEY>",
|
authKey: "<AUTH_KEY>"
|
||||||
from: "<FROM>"
|
|
||||||
) {
|
) {
|
||||||
_id
|
_id
|
||||||
_createdAt
|
_createdAt
|
||||||
|
|
|
@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
|
||||||
messaging.createMsg91Provider(
|
messaging.createMsg91Provider(
|
||||||
"<PROVIDER_ID>", // providerId
|
"<PROVIDER_ID>", // providerId
|
||||||
"<NAME>", // name
|
"<NAME>", // name
|
||||||
"+12065550100", // from (optional)
|
"<TEMPLATE_ID>", // templateId (optional)
|
||||||
"<SENDER_ID>", // senderId (optional)
|
"<SENDER_ID>", // senderId (optional)
|
||||||
"<AUTH_KEY>", // authKey (optional)
|
"<AUTH_KEY>", // authKey (optional)
|
||||||
false, // enabled (optional)
|
false, // enabled (optional)
|
||||||
|
|
|
@ -13,9 +13,9 @@ messaging.updateMsg91Provider(
|
||||||
"<PROVIDER_ID>", // providerId
|
"<PROVIDER_ID>", // providerId
|
||||||
"<NAME>", // name (optional)
|
"<NAME>", // name (optional)
|
||||||
false, // enabled (optional)
|
false, // enabled (optional)
|
||||||
|
"<TEMPLATE_ID>", // templateId (optional)
|
||||||
"<SENDER_ID>", // senderId (optional)
|
"<SENDER_ID>", // senderId (optional)
|
||||||
"<AUTH_KEY>", // authKey (optional)
|
"<AUTH_KEY>", // authKey (optional)
|
||||||
"<FROM>", // from (optional)
|
|
||||||
new CoroutineCallback<>((result, error) -> {
|
new CoroutineCallback<>((result, error) -> {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
error.printStackTrace();
|
error.printStackTrace();
|
||||||
|
|
|
@ -12,7 +12,7 @@ val messaging = Messaging(client)
|
||||||
val response = messaging.createMsg91Provider(
|
val response = messaging.createMsg91Provider(
|
||||||
providerId = "<PROVIDER_ID>",
|
providerId = "<PROVIDER_ID>",
|
||||||
name = "<NAME>",
|
name = "<NAME>",
|
||||||
from = "+12065550100", // optional
|
templateId = "<TEMPLATE_ID>", // optional
|
||||||
senderId = "<SENDER_ID>", // optional
|
senderId = "<SENDER_ID>", // optional
|
||||||
authKey = "<AUTH_KEY>", // optional
|
authKey = "<AUTH_KEY>", // optional
|
||||||
enabled = false // optional
|
enabled = false // optional
|
||||||
|
|
|
@ -13,7 +13,7 @@ val response = messaging.updateMsg91Provider(
|
||||||
providerId = "<PROVIDER_ID>",
|
providerId = "<PROVIDER_ID>",
|
||||||
name = "<NAME>", // optional
|
name = "<NAME>", // optional
|
||||||
enabled = false, // optional
|
enabled = false, // optional
|
||||||
|
templateId = "<TEMPLATE_ID>", // optional
|
||||||
senderId = "<SENDER_ID>", // optional
|
senderId = "<SENDER_ID>", // optional
|
||||||
authKey = "<AUTH_KEY>", // optional
|
authKey = "<AUTH_KEY>" // optional
|
||||||
from = "<FROM>" // optional
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,7 +10,7 @@ const messaging = new sdk.Messaging(client);
|
||||||
const result = await messaging.createMsg91Provider(
|
const result = await messaging.createMsg91Provider(
|
||||||
'<PROVIDER_ID>', // providerId
|
'<PROVIDER_ID>', // providerId
|
||||||
'<NAME>', // name
|
'<NAME>', // name
|
||||||
'+12065550100', // from (optional)
|
'<TEMPLATE_ID>', // templateId (optional)
|
||||||
'<SENDER_ID>', // senderId (optional)
|
'<SENDER_ID>', // senderId (optional)
|
||||||
'<AUTH_KEY>', // authKey (optional)
|
'<AUTH_KEY>', // authKey (optional)
|
||||||
false // enabled (optional)
|
false // enabled (optional)
|
||||||
|
|
|
@ -11,7 +11,7 @@ const result = await messaging.updateMsg91Provider(
|
||||||
'<PROVIDER_ID>', // providerId
|
'<PROVIDER_ID>', // providerId
|
||||||
'<NAME>', // name (optional)
|
'<NAME>', // name (optional)
|
||||||
false, // enabled (optional)
|
false, // enabled (optional)
|
||||||
|
'<TEMPLATE_ID>', // templateId (optional)
|
||||||
'<SENDER_ID>', // senderId (optional)
|
'<SENDER_ID>', // senderId (optional)
|
||||||
'<AUTH_KEY>', // authKey (optional)
|
'<AUTH_KEY>' // authKey (optional)
|
||||||
'<FROM>' // from (optional)
|
|
||||||
);
|
);
|
||||||
|
|
|
@ -13,7 +13,7 @@ $messaging = new Messaging($client);
|
||||||
$result = $messaging->createMsg91Provider(
|
$result = $messaging->createMsg91Provider(
|
||||||
providerId: '<PROVIDER_ID>',
|
providerId: '<PROVIDER_ID>',
|
||||||
name: '<NAME>',
|
name: '<NAME>',
|
||||||
from: '+12065550100', // optional
|
templateId: '<TEMPLATE_ID>', // optional
|
||||||
senderId: '<SENDER_ID>', // optional
|
senderId: '<SENDER_ID>', // optional
|
||||||
authKey: '<AUTH_KEY>', // optional
|
authKey: '<AUTH_KEY>', // optional
|
||||||
enabled: false // optional
|
enabled: false // optional
|
||||||
|
|
|
@ -14,7 +14,7 @@ $result = $messaging->updateMsg91Provider(
|
||||||
providerId: '<PROVIDER_ID>',
|
providerId: '<PROVIDER_ID>',
|
||||||
name: '<NAME>', // optional
|
name: '<NAME>', // optional
|
||||||
enabled: false, // optional
|
enabled: false, // optional
|
||||||
|
templateId: '<TEMPLATE_ID>', // optional
|
||||||
senderId: '<SENDER_ID>', // optional
|
senderId: '<SENDER_ID>', // optional
|
||||||
authKey: '<AUTH_KEY>', // optional
|
authKey: '<AUTH_KEY>' // optional
|
||||||
from: '<FROM>' // optional
|
|
||||||
);
|
);
|
|
@ -10,7 +10,7 @@ messaging = Messaging(client)
|
||||||
result = messaging.create_msg91_provider(
|
result = messaging.create_msg91_provider(
|
||||||
provider_id = '<PROVIDER_ID>',
|
provider_id = '<PROVIDER_ID>',
|
||||||
name = '<NAME>',
|
name = '<NAME>',
|
||||||
from = '+12065550100', # optional
|
template_id = '<TEMPLATE_ID>', # optional
|
||||||
sender_id = '<SENDER_ID>', # optional
|
sender_id = '<SENDER_ID>', # optional
|
||||||
auth_key = '<AUTH_KEY>', # optional
|
auth_key = '<AUTH_KEY>', # optional
|
||||||
enabled = False # optional
|
enabled = False # optional
|
||||||
|
|
|
@ -11,7 +11,7 @@ result = messaging.update_msg91_provider(
|
||||||
provider_id = '<PROVIDER_ID>',
|
provider_id = '<PROVIDER_ID>',
|
||||||
name = '<NAME>', # optional
|
name = '<NAME>', # optional
|
||||||
enabled = False, # optional
|
enabled = False, # optional
|
||||||
|
template_id = '<TEMPLATE_ID>', # optional
|
||||||
sender_id = '<SENDER_ID>', # optional
|
sender_id = '<SENDER_ID>', # optional
|
||||||
auth_key = '<AUTH_KEY>', # optional
|
auth_key = '<AUTH_KEY>' # optional
|
||||||
from = '<FROM>' # optional
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,7 +8,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
|
||||||
{
|
{
|
||||||
"providerId": "<PROVIDER_ID>",
|
"providerId": "<PROVIDER_ID>",
|
||||||
"name": "<NAME>",
|
"name": "<NAME>",
|
||||||
"from": "+12065550100",
|
"templateId": "<TEMPLATE_ID>",
|
||||||
"senderId": "<SENDER_ID>",
|
"senderId": "<SENDER_ID>",
|
||||||
"authKey": "<AUTH_KEY>",
|
"authKey": "<AUTH_KEY>",
|
||||||
"enabled": false
|
"enabled": false
|
||||||
|
|
|
@ -8,7 +8,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
|
||||||
{
|
{
|
||||||
"name": "<NAME>",
|
"name": "<NAME>",
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
|
"templateId": "<TEMPLATE_ID>",
|
||||||
"senderId": "<SENDER_ID>",
|
"senderId": "<SENDER_ID>",
|
||||||
"authKey": "<AUTH_KEY>",
|
"authKey": "<AUTH_KEY>"
|
||||||
"from": "<FROM>"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ messaging = Messaging.new(client)
|
||||||
result = messaging.create_msg91_provider(
|
result = messaging.create_msg91_provider(
|
||||||
provider_id: '<PROVIDER_ID>',
|
provider_id: '<PROVIDER_ID>',
|
||||||
name: '<NAME>',
|
name: '<NAME>',
|
||||||
from: '+12065550100', # optional
|
template_id: '<TEMPLATE_ID>', # optional
|
||||||
sender_id: '<SENDER_ID>', # optional
|
sender_id: '<SENDER_ID>', # optional
|
||||||
auth_key: '<AUTH_KEY>', # optional
|
auth_key: '<AUTH_KEY>', # optional
|
||||||
enabled: false # optional
|
enabled: false # optional
|
||||||
|
|
|
@ -13,7 +13,7 @@ result = messaging.update_msg91_provider(
|
||||||
provider_id: '<PROVIDER_ID>',
|
provider_id: '<PROVIDER_ID>',
|
||||||
name: '<NAME>', # optional
|
name: '<NAME>', # optional
|
||||||
enabled: false, # optional
|
enabled: false, # optional
|
||||||
|
template_id: '<TEMPLATE_ID>', # optional
|
||||||
sender_id: '<SENDER_ID>', # optional
|
sender_id: '<SENDER_ID>', # optional
|
||||||
auth_key: '<AUTH_KEY>', # optional
|
auth_key: '<AUTH_KEY>' # optional
|
||||||
from: '<FROM>' # optional
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,7 +10,7 @@ let messaging = Messaging(client)
|
||||||
let provider = try await messaging.createMsg91Provider(
|
let provider = try await messaging.createMsg91Provider(
|
||||||
providerId: "<PROVIDER_ID>",
|
providerId: "<PROVIDER_ID>",
|
||||||
name: "<NAME>",
|
name: "<NAME>",
|
||||||
from: "+12065550100", // optional
|
templateId: "<TEMPLATE_ID>", // optional
|
||||||
senderId: "<SENDER_ID>", // optional
|
senderId: "<SENDER_ID>", // optional
|
||||||
authKey: "<AUTH_KEY>", // optional
|
authKey: "<AUTH_KEY>", // optional
|
||||||
enabled: false // optional
|
enabled: false // optional
|
||||||
|
|
|
@ -11,8 +11,8 @@ let provider = try await messaging.updateMsg91Provider(
|
||||||
providerId: "<PROVIDER_ID>",
|
providerId: "<PROVIDER_ID>",
|
||||||
name: "<NAME>", // optional
|
name: "<NAME>", // optional
|
||||||
enabled: false, // optional
|
enabled: false, // optional
|
||||||
|
templateId: "<TEMPLATE_ID>", // optional
|
||||||
senderId: "<SENDER_ID>", // optional
|
senderId: "<SENDER_ID>", // optional
|
||||||
authKey: "<AUTH_KEY>", // optional
|
authKey: "<AUTH_KEY>" // optional
|
||||||
from: "<FROM>" // optional
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue