From fdd9741936e7d581f9ddb5a0787d380520029b6a Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sun, 26 Mar 2023 21:19:10 +0100 Subject: [PATCH] Documentation updates. --- Q-Apps.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/Q-Apps.md b/Q-Apps.md index d2196d44..6f76a0f3 100644 --- a/Q-Apps.md +++ b/Q-Apps.md @@ -227,6 +227,7 @@ Here is a list of currently supported actions: - GET_QDN_RESOURCE_PROPERTIES - FETCH_QDN_RESOURCE - PUBLISH_QDN_RESOURCE +- PUBLISH_MULTIPLE_QDN_RESOURCES - GET_WALLET_BALANCE - GET_BALANCE - SEND_COIN @@ -388,7 +389,38 @@ await qortalRequest({ // title: "Title", // Optional // description: "Description", // Optional // category: "TECHNOLOGY", // Optional - // tags: ["tag1", "tag2", "tag3", "tag4", "tag5"] // Optional + // tag1: "any", // Optional + // tag2: "strings", // Optional + // tag3: "can", // Optional + // tag4: "go", // Optional + // tag5: "here" // Optional +}); +``` + +### Publish multiple resources at once to QDN +_Requires user approval_.
+Note: each resource being published consists of a single, base64-encoded file, each in its own transaction. Useful for publishing two or more related things, such as a video and a video thumbnail. +``` +await qortalRequest({ + action: "PUBLISH_MULTIPLE_QDN_RESOURCES", + resources: [ + name: "Demo", // Publisher must own the registered name - use GET_ACCOUNT_NAMES for a list + service: "IMAGE", + identifier: "myapp-image1234" // Optional + data64: "base64_encoded_data", + // filename: "image.jpg", // Optional - to help apps determine the file's type + // title: "Title", // Optional + // description: "Description", // Optional + // category: "TECHNOLOGY", // Optional + // tag1: "any", // Optional + // tag2: "strings", // Optional + // tag3: "can", // Optional + // tag4: "go", // Optional + // tag5: "here" // Optional + ], + [ + ... more resources here if needed ... + ] }); ```