Deck - danopia/deviantart-difi GitHub Wiki

categoryPathHelp

Returns basic information on a deviation category, basically what it means and what you'd find in it.

Usage

  • Used by the category browser when you click "Help"

Params

Response

Returns a list of title/description pairs, for display. The descriptions contain HTML tags that can be safely stripped AFAIK.

[{"title":"Games",
  "description":"<p class="read">Anthromorphic artwork based copyrighted Games created using pencils,
                ink, paint, markers, etc.</p>"},
 {"title":"Traditional",
  "description":"<p class="read">Anthromorphic artwork based other copyrighted sources created using
                 pencils, ink, paint, markers, etc.</p>"},
 . . .
]

loadDeckItemsMulti

Load Deck Items (TODO: I'm pretty sure this was called during an image upload process)

Usage

Loading deck items?

Params

  • deck_id: number?

Response

Unknown

deleteDeckItem

Usage

Deleting deck items?

Params

  • deck_id: number?

Response

Unknown

loadLicense

Loads license information

Params

  • license_type: string?

Response

Given license type in ('by', 'by-sa', 'by-nd', 'by-nc', 'by-nc-sa', 'by-nc-nd'), returns Creative Commons RDF data.

loadLicenseHelp

Loads license help

Usage

  • When selecting a license in the Deviation edit page

Params

  • license_type: string?

Response

Given license type (as in loadLicense()), returns a html document with a plain-english explanation of the chosen license.

categoryHelpPreview

Similar to categoryPathHelp, but with thumbnail previews

Params

  • categoryid

loadDeckItemsFull

undocumented

Params

None

processDeviationCategory

Given category id, returns an object with boolean attributes 'showismobile', 'catisprintable', and 'isscrap' describing the category.