Skip to content

Commit f0183c2

Browse files
authored
Implement base features of node-twitter-api (#1)
* Multiple auth support * Basic tests for every auth system * Base for usage of multiple instance for API versions * Updated static helpers * Respect prototype of readme for v2/v1.{get|delete} * Rewritten v1 and v2 to support read/write/dms permission system * Access to read/write instances * Read/write/DMs policy for global client * Fixed typo for class inheritence * RO/RW clients * Read/write adjustement, tweet endpoint * Media send * Concurrent uploads for uploading medias * Usage of Promise.race to await the first promise * Tweet paginator for v2 search * Better exports
1 parent 34a9dd6 commit f0183c2

21 files changed

+1593
-24
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ They caused me some frustration:
2020
## Goals:
2121

2222
- [x] bearer token auth
23-
- [ ] token auth
24-
- [ ] link auth
25-
- [ ] read/write/DM aware typing
26-
- [ ] get/post methods
23+
- [x] token auth
24+
- [x] link auth
25+
- [x] read/write/DM aware typing
26+
- [x] get/post methods
2727
- [ ] Twitter API V2 tweets methods
2828
- [ ] Twitter API V2 users methods
2929
- [ ] Auto pagination

package-lock.json

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
"license": "Apache-2.0",
1313
"devDependencies": {
1414
"@types/node": "^14.6.4",
15+
"commander": "^6.1.0",
16+
"dotenv": "^8.2.0",
1517
"typescript": "^4.0.2"
1618
},
1719
"bugs": {
1820
"url": "https://github.com/plhery/node-twitter-api/issues"
21+
},
22+
"dependencies": {
23+
"form-data": "^3.0.0",
24+
"oauth-1.0a": "^2.2.6"
1925
}
2026
}

0 commit comments

Comments
 (0)