Skip to content

Commit

Permalink
Merge pull request #477 from Rishikant181/dev
Browse files Browse the repository at this point in the history
Fixed documentation for stream
  • Loading branch information
Rishikant181 authored Feb 27, 2024
2 parents e506369 + 744cd78 commit f820aa5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Rettiwt-API can be used with or without logging in to Twitter. As such, the two
- Tweet Favoriters (likes)
- Tweet Retweeters (retweets)
- Tweet Search
- Tweet Stream
- Tweet List
- User Details
- User Followers
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rettiwt-api",
"version": "2.6.1",
"version": "2.6.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "An API for fetching data from TwitterAPI, without any rate limits!",
Expand Down
4 changes: 2 additions & 2 deletions src/services/public/TweetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class TweetService extends FetcherService {
* const rettiwt = new Rettiwt({ apiKey: API_KEY });
*
* // Streaming all upcoming tweets from user 'user1'
* async () => {
* (async () => {
* try {
* for await (const tweet of rettiwt.tweet.stream({ fromUsers: ['user1'] }, 1000)) {
* console.log(tweet.fullText);
Expand All @@ -127,7 +127,7 @@ export class TweetService extends FetcherService {
* catch (err) {
* console.log(err);
* }
* }();
* })();
* ```
*
* @public
Expand Down

0 comments on commit f820aa5

Please sign in to comment.