A Twitter API client library for React Native. Currently not maintained as my main motivation of creating this library was to use the User Streams API.
I am getting one problem when I implement rest.get
var tokens = {
consumerKey: this.state.config.twitter.consumerKey,
consumerSecret: this.state.config.twitter.consumerSecret,
accessToken: this.state.config.twitter.oauth_token,
accessTokenSecret: this.state.config.twitter.oauth_verifier
};
const {rest, stream} = twitter(tokens);
rest.get("account/settings").then(() => {Alert.alert('done');}).catch(console.error);
I get this error :
Error: 89 Invalid or expired token.
I am getting one problem when I implement rest.get var tokens = { consumerKey: this.state.config.twitter.consumerKey, consumerSecret: this.state.config.twitter.consumerSecret, accessToken: this.state.config.twitter.oauth_token, accessTokenSecret: this.state.config.twitter.oauth_verifier }; const {rest, stream} = twitter(tokens); rest.get("account/settings").then(() => {Alert.alert('done');}).catch(console.error);
I get this error : Error: 89 Invalid or expired token.