You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/main/kotlin/io/appwrite/services/Messaging.kt
+10-10
Original file line number
Diff line number
Diff line change
@@ -941,9 +941,9 @@ class Messaging(client: Client) : Service(client) {
941
941
*
942
942
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
943
943
* @param name Provider name.
944
-
* @param from Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
945
-
* @param senderId Msg91 Sender ID.
946
-
* @param authKey Msg91 Auth Key.
944
+
* @param templateId Msg91 template ID
945
+
* @param senderId Msg91 sender ID.
946
+
* @param authKey Msg91 auth key.
947
947
* @param enabled Set as enabled.
948
948
* @return [io.appwrite.models.Provider]
949
949
*/
@@ -952,7 +952,7 @@ class Messaging(client: Client) : Service(client) {
952
952
suspendfuncreateMsg91Provider(
953
953
providerId:String,
954
954
name:String,
955
-
from:String? = null,
955
+
templateId:String? = null,
956
956
senderId:String? = null,
957
957
authKey:String? = null,
958
958
enabled:Boolean? = null,
@@ -962,7 +962,7 @@ class Messaging(client: Client) : Service(client) {
962
962
val apiParams = mutableMapOf<String, Any?>(
963
963
"providerId" to providerId,
964
964
"name" to name,
965
-
"from" to from,
965
+
"templateId" to templateId,
966
966
"senderId" to senderId,
967
967
"authKey" to authKey,
968
968
"enabled" to enabled,
@@ -991,9 +991,9 @@ class Messaging(client: Client) : Service(client) {
991
991
* @param providerId Provider ID.
992
992
* @param name Provider name.
993
993
* @param enabled Set as enabled.
994
-
* @param senderId Msg91 Sender ID.
995
-
* @param authKey Msg91 Auth Key.
996
-
* @param from Sender number.
994
+
* @param templateId Msg91 template ID.
995
+
* @param senderId Msg91 sender ID.
996
+
* @param authKey Msg91 auth key.
997
997
* @return [io.appwrite.models.Provider]
998
998
*/
999
999
@JvmOverloads
@@ -1002,19 +1002,19 @@ class Messaging(client: Client) : Service(client) {
1002
1002
providerId:String,
1003
1003
name:String? = null,
1004
1004
enabled:Boolean? = null,
1005
+
templateId:String? = null,
1005
1006
senderId:String? = null,
1006
1007
authKey:String? = null,
1007
-
from:String? = null,
1008
1008
): io.appwrite.models.Provider {
1009
1009
val apiPath ="/messaging/providers/msg91/{providerId}"
0 commit comments