Skip to content

Commit

Permalink
docs(changelog): 📝 update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
MerleLiuKun committed May 23, 2022
1 parent 4e5e43e commit 54a8a14
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file.

## [0.7.7](https://github.com/sns-sdks/python-twitter/v0.7.7) (2021-05-23)

### Features

- New apis for get user timelines by reverse chronological.


## [0.7.6](https://github.com/sns-sdks/python-twitter/v0.7.6) (2021-04-07)

### Features
Expand Down
12 changes: 9 additions & 3 deletions docs/docs/usage/tweets/timelines.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
The user Tweet timeline endpoints provides access to Tweets published by a specific Twitter account.

Get user timelines
## User Tweet timeline

The user Tweet timeline endpoint provides access to Tweets published by a specific Twitter account.

```python
api.get_timelines(user_id="2244994945")
# Response(data=[Tweet(id=1364275610764201984, text=If you're newly approved for the Academic...), Tweet(id=1362876655061073928, text=From our living rooms to yours 🐱‍💻🛋️Our...), Tweet(id=1362439338978467841, text=“To quote my creator Jerome Gangneux, I always...), Tweet(id=1362439338169016324, text=“In the 20th century, managers managed humans,...), Tweet(id=1362439336910675970, text=Meet one of the useful Twitter bots out there:...), Tweet(id=1359912509940011010, text=Valentine’s Day is approaching! 💙 Over the...), Tweet(id=1359554366051504129, text=Go ahead, follow another puppy account. We...), Tweet(id=1357371424487268354, text=Learn how academics can get historical Tweets...), Tweet(id=1356991771553583106, text=Who knew an API could be delicious?...), Tweet(id=1354215875998437376, text=RT @TwitterOSS: Today we’re happy to share...)])
```

Get collection of the most recent Tweets and Retweets posted by you and users you follow
## Reverse chronological home timeline

This endpoint enables you to retrieve the most recent Tweets, Retweets, and replies posted by the authenticated user and the accounts they follow.

```python
my_api.get_timelines_reverse_chronological(user_id="2244994945")
# Response(data=[Tweet(id=1524796546306478083, text=Today marks the launch of Devs in the Details...), Tweet(id=1524468552404668416, text=📢 Join @jessicagarson @alanbenlee and @i_am_daniele tomorrow...))
```

Get tweets which mention target user
## User mention timeline

The user mention timeline endpoint allows you to request Tweets mentioning a specific Twitter user.

```python
api.get_mentions(user_id="2244994945")
Expand Down

0 comments on commit 54a8a14

Please sign in to comment.