https://github.com/bufferapp/buffer-code-exercise-api
A small api server which will be used in the Buffer interview code exercise.
https://github.com/bufferapp/buffer-code-exercise-api
Last synced: 7 months ago
JSON representation
A small api server which will be used in the Buffer interview code exercise.
- Host: GitHub
- URL: https://github.com/bufferapp/buffer-code-exercise-api
- Owner: bufferapp
- Created: 2018-05-16T21:18:42.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T03:21:35.000Z (about 3 years ago)
- Last Synced: 2025-04-19T19:13:30.530Z (9 months ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# buffer-code-exercise-api
This is a small api server which will be used in the Buffer interview code exercise.
The api is available at `https://code-exercise-api.buffer.com`.
## Endpoints
### `/getTweets`
Parameters
- `ids` - a comma-delineated list of tweet ids
Example request
```
https://code-exercise-api.buffer.com/getTweets?ids=989720051677741057,989479247084388353
```
Example response
```json
[
{
"id": "989720051677741057",
"screen_name": "buffer",
"text": "Here Are The Science-Backed Reasons You Shouldn't Share Your Goals š via @trello https://buff.ly/2F7Lor1",
"retweet_count": 20,
"favorite_count": 38,
"click_count": 169
},
{
"id": "989479247084388353",
"screen_name": "buffer",
"text": "It takes less than 2/10 of a second for someone to form a first opinion of your brand based on your website or social media profile.\n\nWe're chatting personal branding this week and why it's the most important asset you own! #BufferPodcast\n\n⨠https://buffer.com/podcast",
"retweet_count": 21,
"favorite_count": 54,
"click_count": 20
}
]
```
## License
MIT