|
@@ 1465-1472 (lines=8) @@
|
| 1462 |
|
* @param string $id The id of the list. |
| 1463 |
|
* @param string $userId The id or screen name of the user to add as a member of the list. |
| 1464 |
|
*/ |
| 1465 |
|
public function userListMembersCreate($user, $id, $userId) |
| 1466 |
|
{ |
| 1467 |
|
// build parameters |
| 1468 |
|
$parameters['id'] = (string)$userId; |
| 1469 |
|
|
| 1470 |
|
// make the call |
| 1471 |
|
return (array)$this->doCall((string)$user . '/' . (string)$id . '/members.json', $parameters, true, 'POST'); |
| 1472 |
|
} |
| 1473 |
|
|
| 1474 |
|
/** |
| 1475 |
|
* Removes the specified member from the list. The authenticated user must be the list's owner to remove members from the list. |
|
@@ 1482-1490 (lines=9) @@
|
| 1479 |
|
* @param string $id The id of the list. |
| 1480 |
|
* @param string $userId Specfies the ID of the user for whom to return results for. |
| 1481 |
|
*/ |
| 1482 |
|
public function userListMembersDelete($user, $id, $userId) |
| 1483 |
|
{ |
| 1484 |
|
// build parameters |
| 1485 |
|
$parameters['id'] = (string)$userId; |
| 1486 |
|
$parameters['_method'] = 'DELETE'; |
| 1487 |
|
|
| 1488 |
|
// make the call |
| 1489 |
|
return (array)$this->doCall((string)$user . '/' . (string)$id . '/members.json', $parameters, true, 'POST'); |
| 1490 |
|
} |
| 1491 |
|
|
| 1492 |
|
/** |
| 1493 |
|
* Check if a user is a member of the specified list. |
|
@@ 1554-1561 (lines=8) @@
|
| 1551 |
|
* @param string $user The user. |
| 1552 |
|
* @param string $id The id of the list. |
| 1553 |
|
*/ |
| 1554 |
|
public function userListSubscribersDelete($user, $id) |
| 1555 |
|
{ |
| 1556 |
|
// build parameters |
| 1557 |
|
$parameters['_method'] = 'DELETE'; |
| 1558 |
|
|
| 1559 |
|
// make the call |
| 1560 |
|
return (array)$this->doCall((string)$user . '/' . (string)$id . '/subscribers.json', $parameters, true, 'POST'); |
| 1561 |
|
} |
| 1562 |
|
|
| 1563 |
|
/** |
| 1564 |
|
* Check if the specified user is a subscriber of the specified list. |