DiscoveryTags - danopia/deviantart-difi GitHub Wiki
This class is used to return deviation tags.
More information about this class can be acquired by studying the following files:
getAutotagsForCategoryId
Usage
- Called when submitting a new Deviation
- Used on the Deviation edit page
Params
category_id
: int (e.g. "1123")
Response
Returns nothing.
complete
Returns list of suggested keywords based on user input
Usage
- Called when submitting a new Deviation
- Used on the Deviation edit page
Params
query
: string
Response
Returns an array of completed tags on success, e.g.:
"response": {
"status": "SUCCESS",
"content": [
"query1",
"query2",
"..."
]
}
If no autocomplete results are found, a FAIL
status is usually generated:
"response": {
"status": "FAIL",
"content": {
"error": "No autocomplete results"
}
}
removeDeviationTags
Usage
- When removing a tag from http://my.deviantart.com/tags/
Params
tagnames_remove
: array (contains all tags to be removed)deviationids
: array (contains all Deviation ids from which to remove tags)
addDeviationTags
Usage
- When adding a tag on http://my.deviantart.com/tags/
Params
tagnames_add
: array (contains all tags to be added)deviationids
: array (contains all deviation ids for which to add tags)
Response
"status": "SUCCESS"
: on successful"content": 3
:???
(TODO)
approveDeviationTags
Params
tagnames_approve
: array (contains all tags to be approved)deviationids
: array (contains all deviation ids for which to approve tags)
getAutotagsForCategoryPath
Params
path
: string
Response
undocumented