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(
|
||||
'<PROVIDER_ID>', // providerId
|
||||
'<NAME>', // name
|
||||
'+12065550100', // from (optional)
|
||||
'<TEMPLATE_ID>', // templateId (optional)
|
||||
'<SENDER_ID>', // senderId (optional)
|
||||
'<AUTH_KEY>', // authKey (optional)
|
||||
false // enabled (optional)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
);
|
|
@ -2,7 +2,7 @@ mutation {
|
|||
messagingCreateMsg91Provider(
|
||||
providerId: "<PROVIDER_ID>",
|
||||
name: "<NAME>",
|
||||
from: "+12065550100",
|
||||
templateId: "<TEMPLATE_ID>",
|
||||
senderId: "<SENDER_ID>",
|
||||
authKey: "<AUTH_KEY>",
|
||||
enabled: false
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
);
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue