capabilities.work

Search, Bookmark a Post, Then Remove the Bookmark

A 3-step recipe with X (Twitter). We can help you get access.

Recipe · 3 steps

Search, Bookmark a Post, Then Remove the Bookmark

Search, bookmark the top result, then remove the bookmark.

  1. Search recent posts and capture the id of the first match.
  2. Bookmark the first matching post for the authenticated user.
  3. Remove the bookmark to restore the original state.
What you'll need to have ready
  • authUserId: The numeric id of the authenticated user who owns the bookmarks.
  • query: The search query used to find a post to bookmark.
  • authorization: OAuth2 user token to authorize the requests (e.g. "Bearer xxx").
For your developer

Arazzo workflow twitter:bookmark-and-remove, 3 operations: searchPostsRecent → createUsersBookmark → deleteUsersBookmark. Specs on APIs.io.