1.0.0 • Published 3 years ago

tweet-something v1.0.0

Weekly downloads
97
License
MIT
Repository
github
Last release
3 years ago

tweet-something

build npm

Just because... I don't know

Install

npm install tweet-something

Usage

import tweetSomething from "tweet-something";

(async () => {
	const config = {
		message: "Hello Everyone",
		token: "****************",
		authToken: "*************",
		ct0: "*************",
	};

	await tweetSomething(config);
	// tweet sent
})();

API

tweetSomethig(options)

options

Type: Object

The required parameters to send a tweet.

  • token: All of the endpoints requires OAuth2 Authorizations. Note that they refuse OAuth2 Bearer tokens obtained from POST oauth2/token.
  • authToken: You can get it from your browser's cookie
  • ct0: You can get it from your browser's cookie

If you want to read more about those values, check this.

License

MIT © Abraham Hernandez