Aggregations - danopia/deviantart-difi GitHub Wiki
This class is used in the collections feature of deviantART.
DEPRECATED: See Gallections instead.
undocumented
Adds a deviation to a gallery.
- Drag-and-drop actions between folders.
- Copying or moving deviations using the context menu.
- Adding deviations directly to the gallections.
-
userid
: number -
???
: number/string (observed0
and"326330479"
) (TODO: might be the deviation to place this one before)
NOTE Recently observed that this was omitted when adding a deviation to the Gallections. -
foldertype
: number (20 for Gallery, 21 for Favorites) -
gallectionid
: number (e.g. 62756121) NOTE Observed only when adding deviations to a gallection. Otherwise omitted. -
resourcetype
: number (e.g. 1) NOTE Observed only when adding deviations to a gallection. Otherwise omitted. -
deviationid
: number (i.e. 42787550) -
???
: number (1) NOTE This was observed only when the second param had a non-zero value. Otherwise this param is omitted. Completely. -
???
: number (0)
Return true on success.
The following DiFi request is called when a user adds a deviation to a gallection:
(Here, foldertype
is 21)
"Gallections","add_resource",["`userid`","`foldertype`","`gallectionid`","1","`deviationid`","0"]
Returns an array of galleries that belong to a user.
This method usually returns the first gallery page of a user's gallery on deviantART. Assumed to work for any user, but only tested on the current user. Also tells you what you can do to each gallery and a list of a few deviations in the gallery, for the purpose of showing the gallery to the user.
- "Collect" menu
- Drag-n-drop to add to Favorites
-
userid
: string -
foldertype
: number (20 for Gallery, 21 for Favorites) -
???
: number (1)
Returns an array of galleries. Example gallery structure:
{"galleryid":42231485,
"type":21,
"position":0,
"parentid":null,
"title":"Featured",
"approx_total":42,
"pageid":null,
"attributes":0,
"behavior":{
"create_folder":true,
"delete_folder":true,
"edit_folder":true,
"view_folder":true,
"contribute_deviations":true,
"recommend_deviations":true,
"delete":true,
"view":true,
"log":true,
"options_button":true,
"arrange_folders":true,
"edit_button":true,
"blue_buttons":true,
"drop_resources":true,
"arrange_resources":true,
"rename":true,
"contribute":true,
"recommend":true},
"ids":[
[1,196390464,0], [1,196469601,0], [1,102922651,0]],
"top_resources":[
[1,196390464,"<div class=\"tt-aa\" collect_rid=\"1:196390464\" usericon=http:\/\/a.deviantart.net\/avatars\/c\/
i\/cinderrainfall.jpg?9> . . . <\/div>"],
[1,196469601, . . . ],
[1,102922651, . . . ]]}