post_list | R Documentation |
Create, add users, and destroy Twitter lists.
post_list(
users = NULL,
name = NULL,
description = NULL,
private = FALSE,
destroy = FALSE,
list_id = NULL,
slug = NULL,
token = NULL
)
users |
Character vectors of users to be added to list. |
name |
Name of new list to create. |
description |
Optional, description of list (single character string). |
private |
Logical indicating whether created list should be private. Defaults to false, meaning the list would be public. Not applicable if list already exists. |
destroy |
Logical indicating whether to delete a list. Either |
list_id |
Optional, numeric ID of list. |
slug |
Optional, list slug. |
token |
Use this to override authentication for
a single API call. In many cases you are better off changing the
default for all calls. See |
Response object from HTTP request.
Create: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-create Destroy: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy Add users: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-members-create, https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-members-create_all Remove users: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy, https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy_all
rtweet-deprecated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.