mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update docs
This commit is contained in:
@@ -13,6 +13,6 @@ AttributeString result = await databases.updateStringAttribute(
|
||||
key: '',
|
||||
xrequired: false,
|
||||
xdefault: '<DEFAULT>',
|
||||
size: 0, // (optional)
|
||||
size: 1, // (optional)
|
||||
newKey: '', // (optional)
|
||||
);
|
||||
|
||||
@@ -9,8 +9,8 @@ Messaging messaging = Messaging(client);
|
||||
|
||||
Message result = await messaging.createPush(
|
||||
messageId: '<MESSAGE_ID>',
|
||||
title: '<TITLE>',
|
||||
body: '<BODY>',
|
||||
title: '<TITLE>', // (optional)
|
||||
body: '<BODY>', // (optional)
|
||||
topics: [], // (optional)
|
||||
users: [], // (optional)
|
||||
targets: [], // (optional)
|
||||
@@ -21,7 +21,10 @@ Message result = await messaging.createPush(
|
||||
sound: '<SOUND>', // (optional)
|
||||
color: '<COLOR>', // (optional)
|
||||
tag: '<TAG>', // (optional)
|
||||
badge: '<BADGE>', // (optional)
|
||||
badge: 0, // (optional)
|
||||
draft: false, // (optional)
|
||||
scheduledAt: '', // (optional)
|
||||
contentAvailable: false, // (optional)
|
||||
critical: false, // (optional)
|
||||
priority: MessagePriority.normal, // (optional)
|
||||
);
|
||||
|
||||
@@ -24,4 +24,7 @@ Message result = await messaging.updatePush(
|
||||
badge: 0, // (optional)
|
||||
draft: false, // (optional)
|
||||
scheduledAt: '', // (optional)
|
||||
contentAvailable: false, // (optional)
|
||||
critical: false, // (optional)
|
||||
priority: MessagePriority.normal, // (optional)
|
||||
);
|
||||
|
||||
@@ -13,6 +13,6 @@ const response = await databases.updateStringAttribute(
|
||||
'', // key
|
||||
false, // required
|
||||
'<DEFAULT>', // default
|
||||
null, // size (optional)
|
||||
1, // size (optional)
|
||||
'' // newKey (optional)
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts";
|
||||
import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -9,8 +9,8 @@ const messaging = new Messaging(client);
|
||||
|
||||
const response = await messaging.createPush(
|
||||
'<MESSAGE_ID>', // messageId
|
||||
'<TITLE>', // title
|
||||
'<BODY>', // body
|
||||
'<TITLE>', // title (optional)
|
||||
'<BODY>', // body (optional)
|
||||
[], // topics (optional)
|
||||
[], // users (optional)
|
||||
[], // targets (optional)
|
||||
@@ -21,7 +21,10 @@ const response = await messaging.createPush(
|
||||
'<SOUND>', // sound (optional)
|
||||
'<COLOR>', // color (optional)
|
||||
'<TAG>', // tag (optional)
|
||||
'<BADGE>', // badge (optional)
|
||||
null, // badge (optional)
|
||||
false, // draft (optional)
|
||||
'' // scheduledAt (optional)
|
||||
'', // scheduledAt (optional)
|
||||
false, // contentAvailable (optional)
|
||||
false, // critical (optional)
|
||||
MessagePriority.Normal // priority (optional)
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts";
|
||||
import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -23,5 +23,8 @@ const response = await messaging.updatePush(
|
||||
'<TAG>', // tag (optional)
|
||||
null, // badge (optional)
|
||||
false, // draft (optional)
|
||||
'' // scheduledAt (optional)
|
||||
'', // scheduledAt (optional)
|
||||
false, // contentAvailable (optional)
|
||||
false, // critical (optional)
|
||||
MessagePriority.Normal // priority (optional)
|
||||
);
|
||||
|
||||
@@ -15,6 +15,6 @@ AttributeString result = await databases.UpdateStringAttribute(
|
||||
key: "",
|
||||
required: false,
|
||||
default: "<DEFAULT>",
|
||||
size: 0, // optional
|
||||
size: 1, // optional
|
||||
newKey: "" // optional
|
||||
);
|
||||
@@ -1,4 +1,5 @@
|
||||
using Appwrite;
|
||||
using Appwrite.Enums;
|
||||
using Appwrite.Models;
|
||||
using Appwrite.Services;
|
||||
|
||||
@@ -11,8 +12,8 @@ Messaging messaging = new Messaging(client);
|
||||
|
||||
Message result = await messaging.CreatePush(
|
||||
messageId: "<MESSAGE_ID>",
|
||||
title: "<TITLE>",
|
||||
body: "<BODY>",
|
||||
title: "<TITLE>", // optional
|
||||
body: "<BODY>", // optional
|
||||
topics: new List<string>(), // optional
|
||||
users: new List<string>(), // optional
|
||||
targets: new List<string>(), // optional
|
||||
@@ -23,7 +24,10 @@ Message result = await messaging.CreatePush(
|
||||
sound: "<SOUND>", // optional
|
||||
color: "<COLOR>", // optional
|
||||
tag: "<TAG>", // optional
|
||||
badge: "<BADGE>", // optional
|
||||
badge: 0, // optional
|
||||
draft: false, // optional
|
||||
scheduledAt: "" // optional
|
||||
scheduledAt: "", // optional
|
||||
contentAvailable: false, // optional
|
||||
critical: false, // optional
|
||||
priority: MessagePriority.Normal // optional
|
||||
);
|
||||
@@ -1,4 +1,5 @@
|
||||
using Appwrite;
|
||||
using Appwrite.Enums;
|
||||
using Appwrite.Models;
|
||||
using Appwrite.Services;
|
||||
|
||||
@@ -25,5 +26,8 @@ Message result = await messaging.UpdatePush(
|
||||
tag: "<TAG>", // optional
|
||||
badge: 0, // optional
|
||||
draft: false, // optional
|
||||
scheduledAt: "" // optional
|
||||
scheduledAt: "", // optional
|
||||
contentAvailable: false, // optional
|
||||
critical: false, // optional
|
||||
priority: MessagePriority.Normal // optional
|
||||
);
|
||||
@@ -20,7 +20,7 @@ func main() {
|
||||
"",
|
||||
false,
|
||||
"<DEFAULT>",
|
||||
databases.WithUpdateStringAttributeSize(0),
|
||||
databases.WithUpdateStringAttributeSize(1),
|
||||
databases.WithUpdateStringAttributeNewKey(""),
|
||||
)
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ func main() {
|
||||
service := messaging.NewMessaging(client)
|
||||
response, error := service.CreatePush(
|
||||
"<MESSAGE_ID>",
|
||||
"<TITLE>",
|
||||
"<BODY>",
|
||||
messaging.WithCreatePushTitle("<TITLE>"),
|
||||
messaging.WithCreatePushBody("<BODY>"),
|
||||
messaging.WithCreatePushTopics([]interface{}{}),
|
||||
messaging.WithCreatePushUsers([]interface{}{}),
|
||||
messaging.WithCreatePushTargets([]interface{}{}),
|
||||
@@ -28,9 +28,12 @@ func main() {
|
||||
messaging.WithCreatePushSound("<SOUND>"),
|
||||
messaging.WithCreatePushColor("<COLOR>"),
|
||||
messaging.WithCreatePushTag("<TAG>"),
|
||||
messaging.WithCreatePushBadge("<BADGE>"),
|
||||
messaging.WithCreatePushBadge(0),
|
||||
messaging.WithCreatePushDraft(false),
|
||||
messaging.WithCreatePushScheduledAt(""),
|
||||
messaging.WithCreatePushContentAvailable(false),
|
||||
messaging.WithCreatePushCritical(false),
|
||||
messaging.WithCreatePushPriority("normal"),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
@@ -31,6 +31,9 @@ func main() {
|
||||
messaging.WithUpdatePushBadge(0),
|
||||
messaging.WithUpdatePushDraft(false),
|
||||
messaging.WithUpdatePushScheduledAt(""),
|
||||
messaging.WithUpdatePushContentAvailable(false),
|
||||
messaging.WithUpdatePushCritical(false),
|
||||
messaging.WithUpdatePushPriority("normal"),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
@@ -33,6 +33,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ query {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
default
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ mutation {
|
||||
error
|
||||
attributes
|
||||
orders
|
||||
_createdAt
|
||||
_updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
format
|
||||
default
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
format
|
||||
default
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
elements
|
||||
format
|
||||
default
|
||||
|
||||
@@ -15,6 +15,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
min
|
||||
max
|
||||
default
|
||||
|
||||
@@ -13,5 +13,7 @@ mutation {
|
||||
error
|
||||
attributes
|
||||
orders
|
||||
_createdAt
|
||||
_updatedAt
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
min
|
||||
max
|
||||
default
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
format
|
||||
default
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
relatedCollection
|
||||
relationType
|
||||
twoWay
|
||||
|
||||
@@ -15,6 +15,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
size
|
||||
default
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
format
|
||||
default
|
||||
}
|
||||
|
||||
@@ -19,6 +19,8 @@ query {
|
||||
error
|
||||
attributes
|
||||
orders
|
||||
_createdAt
|
||||
_updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,5 +10,7 @@ query {
|
||||
error
|
||||
attributes
|
||||
orders
|
||||
_createdAt
|
||||
_updatedAt
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@ query {
|
||||
error
|
||||
attributes
|
||||
orders
|
||||
_createdAt
|
||||
_updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ query {
|
||||
error
|
||||
attributes
|
||||
orders
|
||||
_createdAt
|
||||
_updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
default
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ mutation {
|
||||
error
|
||||
attributes
|
||||
orders
|
||||
_createdAt
|
||||
_updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
format
|
||||
default
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
format
|
||||
default
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
elements
|
||||
format
|
||||
default
|
||||
|
||||
@@ -15,6 +15,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
min
|
||||
max
|
||||
default
|
||||
|
||||
@@ -15,6 +15,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
min
|
||||
max
|
||||
default
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
format
|
||||
default
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
relatedCollection
|
||||
relationType
|
||||
twoWay
|
||||
|
||||
@@ -5,7 +5,7 @@ mutation {
|
||||
key: "",
|
||||
required: false,
|
||||
default: "<DEFAULT>",
|
||||
size: 0,
|
||||
size: 1,
|
||||
newKey: ""
|
||||
) {
|
||||
key
|
||||
@@ -14,6 +14,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
size
|
||||
default
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ mutation {
|
||||
error
|
||||
required
|
||||
array
|
||||
_createdAt
|
||||
_updatedAt
|
||||
format
|
||||
default
|
||||
}
|
||||
|
||||
@@ -13,9 +13,12 @@ mutation {
|
||||
sound: "<SOUND>",
|
||||
color: "<COLOR>",
|
||||
tag: "<TAG>",
|
||||
badge: "<BADGE>",
|
||||
badge: 0,
|
||||
draft: false,
|
||||
scheduledAt: ""
|
||||
scheduledAt: "",
|
||||
contentAvailable: false,
|
||||
critical: false,
|
||||
priority: "normal"
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
|
||||
@@ -17,6 +17,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
userId
|
||||
userName
|
||||
|
||||
@@ -16,6 +16,7 @@ query {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
userId
|
||||
userName
|
||||
|
||||
@@ -19,6 +19,7 @@ query {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
userId
|
||||
userName
|
||||
|
||||
@@ -13,6 +13,7 @@ query {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,10 @@ mutation {
|
||||
tag: "<TAG>",
|
||||
badge: 0,
|
||||
draft: false,
|
||||
scheduledAt: ""
|
||||
scheduledAt: "",
|
||||
contentAvailable: false,
|
||||
critical: false,
|
||||
priority: "normal"
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
|
||||
@@ -33,6 +33,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -15,5 +15,6 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -11,5 +11,6 @@ query {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ query {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ query {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ query {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
accessedAt
|
||||
}
|
||||
|
||||
@@ -14,5 +14,6 @@ mutation {
|
||||
providerId
|
||||
providerType
|
||||
identifier
|
||||
expired
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ databases.updateStringAttribute(
|
||||
"", // key
|
||||
false, // required
|
||||
"<DEFAULT>", // default
|
||||
0, // size (optional)
|
||||
1, // size (optional)
|
||||
"", // newKey (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
|
||||
@@ -11,8 +11,8 @@ Messaging messaging = new Messaging(client);
|
||||
|
||||
messaging.createPush(
|
||||
"<MESSAGE_ID>", // messageId
|
||||
"<TITLE>", // title
|
||||
"<BODY>", // body
|
||||
"<TITLE>", // title (optional)
|
||||
"<BODY>", // body (optional)
|
||||
listOf(), // topics (optional)
|
||||
listOf(), // users (optional)
|
||||
listOf(), // targets (optional)
|
||||
@@ -23,9 +23,12 @@ messaging.createPush(
|
||||
"<SOUND>", // sound (optional)
|
||||
"<COLOR>", // color (optional)
|
||||
"<TAG>", // tag (optional)
|
||||
"<BADGE>", // badge (optional)
|
||||
0, // badge (optional)
|
||||
false, // draft (optional)
|
||||
"", // scheduledAt (optional)
|
||||
false, // contentAvailable (optional)
|
||||
false, // critical (optional)
|
||||
MessagePriority.NORMAL, // priority (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -26,6 +26,9 @@ messaging.updatePush(
|
||||
0, // badge (optional)
|
||||
false, // draft (optional)
|
||||
"", // scheduledAt (optional)
|
||||
false, // contentAvailable (optional)
|
||||
false, // critical (optional)
|
||||
MessagePriority.NORMAL, // priority (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -15,6 +15,6 @@ val response = databases.updateStringAttribute(
|
||||
key = "",
|
||||
required = false,
|
||||
default = "<DEFAULT>",
|
||||
size = 0, // optional
|
||||
size = 1, // optional
|
||||
newKey = "" // optional
|
||||
)
|
||||
|
||||
@@ -11,8 +11,8 @@ val messaging = Messaging(client)
|
||||
|
||||
val response = messaging.createPush(
|
||||
messageId = "<MESSAGE_ID>",
|
||||
title = "<TITLE>",
|
||||
body = "<BODY>",
|
||||
title = "<TITLE>", // optional
|
||||
body = "<BODY>", // optional
|
||||
topics = listOf(), // optional
|
||||
users = listOf(), // optional
|
||||
targets = listOf(), // optional
|
||||
@@ -23,7 +23,10 @@ val response = messaging.createPush(
|
||||
sound = "<SOUND>", // optional
|
||||
color = "<COLOR>", // optional
|
||||
tag = "<TAG>", // optional
|
||||
badge = "<BADGE>", // optional
|
||||
badge = 0, // optional
|
||||
draft = false, // optional
|
||||
scheduledAt = "" // optional
|
||||
scheduledAt = "", // optional
|
||||
contentAvailable = false, // optional
|
||||
critical = false, // optional
|
||||
priority = "normal" // optional
|
||||
)
|
||||
|
||||
@@ -25,5 +25,8 @@ val response = messaging.updatePush(
|
||||
tag = "<TAG>", // optional
|
||||
badge = 0, // optional
|
||||
draft = false, // optional
|
||||
scheduledAt = "" // optional
|
||||
scheduledAt = "", // optional
|
||||
contentAvailable = false, // optional
|
||||
critical = false, // optional
|
||||
priority = "normal" // optional
|
||||
)
|
||||
|
||||
@@ -13,6 +13,6 @@ const result = await databases.updateStringAttribute(
|
||||
'', // key
|
||||
false, // required
|
||||
'<DEFAULT>', // default
|
||||
null, // size (optional)
|
||||
1, // size (optional)
|
||||
'' // newKey (optional)
|
||||
);
|
||||
|
||||
@@ -9,8 +9,8 @@ const messaging = new sdk.Messaging(client);
|
||||
|
||||
const result = await messaging.createPush(
|
||||
'<MESSAGE_ID>', // messageId
|
||||
'<TITLE>', // title
|
||||
'<BODY>', // body
|
||||
'<TITLE>', // title (optional)
|
||||
'<BODY>', // body (optional)
|
||||
[], // topics (optional)
|
||||
[], // users (optional)
|
||||
[], // targets (optional)
|
||||
@@ -21,7 +21,10 @@ const result = await messaging.createPush(
|
||||
'<SOUND>', // sound (optional)
|
||||
'<COLOR>', // color (optional)
|
||||
'<TAG>', // tag (optional)
|
||||
'<BADGE>', // badge (optional)
|
||||
null, // badge (optional)
|
||||
false, // draft (optional)
|
||||
'' // scheduledAt (optional)
|
||||
'', // scheduledAt (optional)
|
||||
false, // contentAvailable (optional)
|
||||
false, // critical (optional)
|
||||
sdk.MessagePriority.Normal // priority (optional)
|
||||
);
|
||||
|
||||
@@ -23,5 +23,8 @@ const result = await messaging.updatePush(
|
||||
'<TAG>', // tag (optional)
|
||||
null, // badge (optional)
|
||||
false, // draft (optional)
|
||||
'' // scheduledAt (optional)
|
||||
'', // scheduledAt (optional)
|
||||
false, // contentAvailable (optional)
|
||||
false, // critical (optional)
|
||||
sdk.MessagePriority.Normal // priority (optional)
|
||||
);
|
||||
|
||||
@@ -16,6 +16,6 @@ $result = $databases->updateStringAttribute(
|
||||
key: '',
|
||||
required: false,
|
||||
default: '<DEFAULT>',
|
||||
size: null, // optional
|
||||
size: 1, // optional
|
||||
newKey: '' // optional
|
||||
);
|
||||
@@ -12,8 +12,8 @@ $messaging = new Messaging($client);
|
||||
|
||||
$result = $messaging->createPush(
|
||||
messageId: '<MESSAGE_ID>',
|
||||
title: '<TITLE>',
|
||||
body: '<BODY>',
|
||||
title: '<TITLE>', // optional
|
||||
body: '<BODY>', // optional
|
||||
topics: [], // optional
|
||||
users: [], // optional
|
||||
targets: [], // optional
|
||||
@@ -24,7 +24,10 @@ $result = $messaging->createPush(
|
||||
sound: '<SOUND>', // optional
|
||||
color: '<COLOR>', // optional
|
||||
tag: '<TAG>', // optional
|
||||
badge: '<BADGE>', // optional
|
||||
badge: null, // optional
|
||||
draft: false, // optional
|
||||
scheduledAt: '' // optional
|
||||
scheduledAt: '', // optional
|
||||
contentAvailable: false, // optional
|
||||
critical: false, // optional
|
||||
priority: MessagePriority::NORMAL() // optional
|
||||
);
|
||||
@@ -26,5 +26,8 @@ $result = $messaging->updatePush(
|
||||
tag: '<TAG>', // optional
|
||||
badge: null, // optional
|
||||
draft: false, // optional
|
||||
scheduledAt: '' // optional
|
||||
scheduledAt: '', // optional
|
||||
contentAvailable: false, // optional
|
||||
critical: false, // optional
|
||||
priority: MessagePriority::NORMAL() // optional
|
||||
);
|
||||
@@ -13,6 +13,6 @@ result = databases.update_string_attribute(
|
||||
key = '',
|
||||
required = False,
|
||||
default = '<DEFAULT>',
|
||||
size = None, # optional
|
||||
size = 1, # optional
|
||||
new_key = '' # optional
|
||||
)
|
||||
|
||||
@@ -9,8 +9,8 @@ messaging = Messaging(client)
|
||||
|
||||
result = messaging.create_push(
|
||||
message_id = '<MESSAGE_ID>',
|
||||
title = '<TITLE>',
|
||||
body = '<BODY>',
|
||||
title = '<TITLE>', # optional
|
||||
body = '<BODY>', # optional
|
||||
topics = [], # optional
|
||||
users = [], # optional
|
||||
targets = [], # optional
|
||||
@@ -21,7 +21,10 @@ result = messaging.create_push(
|
||||
sound = '<SOUND>', # optional
|
||||
color = '<COLOR>', # optional
|
||||
tag = '<TAG>', # optional
|
||||
badge = '<BADGE>', # optional
|
||||
badge = None, # optional
|
||||
draft = False, # optional
|
||||
scheduled_at = '' # optional
|
||||
scheduled_at = '', # optional
|
||||
content_available = False, # optional
|
||||
critical = False, # optional
|
||||
priority = MessagePriority.NORMAL # optional
|
||||
)
|
||||
|
||||
@@ -23,5 +23,8 @@ result = messaging.update_push(
|
||||
tag = '<TAG>', # optional
|
||||
badge = None, # optional
|
||||
draft = False, # optional
|
||||
scheduled_at = '' # optional
|
||||
scheduled_at = '', # optional
|
||||
content_available = False, # optional
|
||||
critical = False, # optional
|
||||
priority = MessagePriority.NORMAL # optional
|
||||
)
|
||||
|
||||
@@ -8,6 +8,6 @@ X-Appwrite-Key: <YOUR_API_KEY>
|
||||
{
|
||||
"required": false,
|
||||
"default": "<DEFAULT>",
|
||||
"size": 0,
|
||||
"size": 1,
|
||||
"newKey":
|
||||
}
|
||||
|
||||
@@ -19,7 +19,10 @@ X-Appwrite-Key: <YOUR_API_KEY>
|
||||
"sound": "<SOUND>",
|
||||
"color": "<COLOR>",
|
||||
"tag": "<TAG>",
|
||||
"badge": "<BADGE>",
|
||||
"badge": 0,
|
||||
"draft": false,
|
||||
"scheduledAt":
|
||||
"scheduledAt": ,
|
||||
"contentAvailable": false,
|
||||
"critical": false,
|
||||
"priority": "normal"
|
||||
}
|
||||
|
||||
@@ -20,5 +20,8 @@ X-Appwrite-Key: <YOUR_API_KEY>
|
||||
"tag": "<TAG>",
|
||||
"badge": 0,
|
||||
"draft": false,
|
||||
"scheduledAt":
|
||||
"scheduledAt": ,
|
||||
"contentAvailable": false,
|
||||
"critical": false,
|
||||
"priority": "normal"
|
||||
}
|
||||
|
||||
@@ -15,6 +15,6 @@ result = databases.update_string_attribute(
|
||||
key: '',
|
||||
required: false,
|
||||
default: '<DEFAULT>',
|
||||
size: null, # optional
|
||||
size: 1, # optional
|
||||
new_key: '' # optional
|
||||
)
|
||||
|
||||
@@ -11,8 +11,8 @@ messaging = Messaging.new(client)
|
||||
|
||||
result = messaging.create_push(
|
||||
message_id: '<MESSAGE_ID>',
|
||||
title: '<TITLE>',
|
||||
body: '<BODY>',
|
||||
title: '<TITLE>', # optional
|
||||
body: '<BODY>', # optional
|
||||
topics: [], # optional
|
||||
users: [], # optional
|
||||
targets: [], # optional
|
||||
@@ -23,7 +23,10 @@ result = messaging.create_push(
|
||||
sound: '<SOUND>', # optional
|
||||
color: '<COLOR>', # optional
|
||||
tag: '<TAG>', # optional
|
||||
badge: '<BADGE>', # optional
|
||||
badge: null, # optional
|
||||
draft: false, # optional
|
||||
scheduled_at: '' # optional
|
||||
scheduled_at: '', # optional
|
||||
content_available: false, # optional
|
||||
critical: false, # optional
|
||||
priority: MessagePriority::NORMAL # optional
|
||||
)
|
||||
|
||||
@@ -25,5 +25,8 @@ result = messaging.update_push(
|
||||
tag: '<TAG>', # optional
|
||||
badge: null, # optional
|
||||
draft: false, # optional
|
||||
scheduled_at: '' # optional
|
||||
scheduled_at: '', # optional
|
||||
content_available: false, # optional
|
||||
critical: false, # optional
|
||||
priority: MessagePriority::NORMAL # optional
|
||||
)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user