Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweet endpoints #12

Closed
bolubee101 opened this issue Oct 23, 2022 · 0 comments · Fixed by #13
Closed

Tweet endpoints #12

bolubee101 opened this issue Oct 23, 2022 · 0 comments · Fixed by #13

Comments

@bolubee101
Copy link
Owner

Create the tweet endpoint

This is a post endpoint. When this endpoint is hit with a JSON payload as shown below, it would post the tweet and save it to the DB. If the text is more than 208 characters, an error message is thrown. The response would be the tweet data from Twitter.

{
    "tweet": "tweet text" 
}

For now, the authentication for tweeting is going to be a generated token hard coded as an env variable AUTH_TOKEN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant