=Lists=
Getting list:
Request:
$result = $DVIP->get('/lists/get-list', array('list' => LIST));
Valid LIST type:
- blocked
- favorites
- ignored
- private
- requests
==Examples==
Success when list is empty:
{
"data": [],
"success": 1
}
Success when list have data:
{
"data": [
"1870705",
"1874923",
"1881969",
"1914392",
"2034177"
],
"success": 1
}
Error example:
{
"errors": [
"Invalid list name"
],
"success": 0
}
==Adding user to list==
Request:
$result = $DVIP->get('/lists/add-to-list', array('list' => LIST, 'user_id' => 1234));
Optional parameters:
- comment (string, why user is on that list)
Success:
{
"success": 1
}
Error example:
{
"errors": [
"Invalid list name"
],
"success": 0
}
==Removing user from list==
Request:
$result = $DVIP->get('/lists/remove-from-list', array('list' => LIST, 'user_id' => 1234));
Success:
{
"success": 1
}
Error:
{
"errors": [
"Invalid list name"
],
"success": 0
}