DiFi › class › Deviation
From Botdom Documentation
This class is used to handle the various functions that are used on the Deviations page, including +faving and the "Would you like to +devWATCH ____" message that appears after you've faved several deviations from one artist.
Contents |
CheckCrosswatch
Used to check if you have +faved several deviations from an artist; if you have, it is used to create a modal asking you if you would like to watch that artist.
Arguments
| Username of artist to be watched | Any valid deviantART username. |
Limitations
- Must be called using POST; returns a const-correctness error otherwise.
Example
deleteSingle
Used to delete a deviation.
Arguments
| ID of Deviation | ID of the deviation to be deleted. |
| Reason ID | An integer corresponding to a reason for deleting the Deviation. 1 = Updating with newer revision |
Example
- untested
Favourite
Used to +fav or -fav a Deviation. Toggles; if the Deviation is already faved, it unfaves it.
Arguments
| ID of Deviation | ID of the deviation to be (+/-)faved. |
Limitations
- Must be called using POST; returns a const-correctness error otherwise.
RequestPrint
Used to send a request to the artist asking that they make the Deviation available for purchase as a print.
Arguments
| ID of Deviation | Any valid ID of a deviation |
Limitations
- Must be called using POST; returns a const-correctness error otherwise.
wantsComment
This method's purpose is currently unknown.
Arguments
| ID of Note? | To be investigated |

