Create a List and Add a Member by Username
A 3-step recipe with X (Twitter). We can help you get access.
Recipe · 3 steps
Create a List and Add a Member by Username
with X (Twitter)
Create a List then add a resolved user to it.
- Create a new List for the authenticated user.
- Resolve the member's username into a numeric user id.
- Add the resolved user as a member of the newly created List.
What you'll need to have ready
- name: The name of the List to create (1-25 characters).
- description: An optional description for the List (up to 100 characters).
- private: Whether the List should be private.
- memberUsername: The @username of the user to add as a member, without the leading @.
- authorization: OAuth2 user token to authorize the requests (e.g. "Bearer xxx").
For your developer
Arazzo workflow twitter:create-list-add-member, 3 operations: createLists → getUsersByUsername → addListsMember. Specs on APIs.io.