Skip to main content

Get list of tags

Gets the list of tags of the selected files

Function GetTagList(Val Token, Val Paths) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Paths--pathsString, Array of StringPath or set of paths to the files

Returns: Map Of KeyAndValue - serialized JSON response from Dropbox


1C:Enterprise/OneScript code example
    Token = "sl.B_msgdiPWezavqeIij7xO0CoH6lFDkcxzp9wOv6yyW7dixfCrQAW21oFDnvVjkfZa4UegdzdP0...";

PathsArray = New Array;
PathsArray.Add("/New/Dogs.mp3");
PathsArray.Add("/New/mydoc.docx");

Result = OPI_Dropbox.GetTagList(Token, PathsArray);
    oint dropbox GetTagList \
--token "***" \
--paths "/New/mydoc.docx"
Result
{
"paths_to_tags": [
{
"path": "/New/Dogs.mp3",
"tags": []
},
{
"path": "/New/mydoc.docx",
"tags": [
{
".tag": "user_generated_tag",
"tag_text": "important"
}
]
}
]
}