Public
Documentation Settings

Tweetmark

Navigating through your bookmarks is such a chore. With Tweetmark, we make that chore a delight and more.

Authentication

GETLogin

https://tweetmark.acel.dev/api/users/twitter_login/

This redirects to a twitter-generated login page for them to grant our app access to their account.
We then store the tokens gotten in the DB and redirect to our frontend authenticate page passing their user_id alongside it.

Example Request
curl
curl --location 'https://tweetmark.acel.dev/api/users/twitter_login/'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTToken Refresh

https://tweetmark.acel.dev/api/users/token_refresh/

Returns a new access token.

Bodyraw (json)
json
{
    "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY5MDU1OTY0MywiaWF0IjoxNjg3OTY3NjQzLCJqdGkiOiI3MDU4NjFiNGJhM2M0MTFlOGFiMmJiNDNmZmYxNzk1OSIsInVzZXJfaWQiOiIxMDQwNDkyNzAxMzYyMzk3MTg0In0.t6yFYuY5GLDY5TsAwN-14JIjomMXOKgIxT5xx1rsX80"
}
Example Request
curl
curl --location 'https://tweetmark.acel.dev/api/users/token_refresh/' \
--data '{
    "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY5MDU1OTY0MywiaWF0IjoxNjg3OTY3NjQzLCJqdGkiOiI3MDU4NjFiNGJhM2M0MTFlOGFiMmJiNDNmZmYxNzk1OSIsInVzZXJfaWQiOiIxMDQwNDkyNzAxMzYyMzk3MTg0In0.t6yFYuY5GLDY5TsAwN-14JIjomMXOKgIxT5xx1rsX80"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

GETGet User Details

https://tweetmark.acel.dev/api/users/user_details/

Returns the details of the user's twitter account. Specifically:

  • name
  • username
  • id
  • profile_image_url
HEADERS
Authorization

JWT

Example Request
curl
curl --location 'https://tweetmark.acel.dev/api/users/user_details/' \
--header 'Authorization: JWT '
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

GETSyncronize Author Details

https://tweetmark.acel.dev/api/users/syncronize_author_details/

Twitter users very often change their details like name, username, profile picture etc. And this can be an hindrance when searching for a bookmark.

This endpoint updates the user details of every tweet that has been bookmarked by the given user.

HEADERS
Authorization

JWT

Example Request
curl
curl --location 'https://tweetmark.acel.dev/api/users/syncronize_author_details/' \
--header 'Authorization: JWT '
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers