open-index/open-npm huggingface dataset:
npm package: @numetalsour/twitter-connect
Description: Ionic Native - Native plugins for ionic apps
Author: ionic
Latest version: 5.36.1
Deprecated: false


## [CREDITS TO chroa]
## [VERSION WITH verifyCredentials METHOD]

<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/twitter-connect/index.ts#L20">
  Improve this doc
</a>

# Twitter Connect

```
$ ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY=<Fabric API Key> --variable TWITTER_KEY=<Twitter Consumer Key> --variable TWITTER_SECRET=<Twitter Consumer Secret>
$ npm install @ionic-native/twitter-connect
```

## [Usage Documentation](https://ionicframework.com/docs/native/twitter-connect/)

Plugin Repo: [https://github.com/chroa/twitter-connect-plugin](https://github.com/chroa/twitter-connect-plugin)

Plugin to use Twitter Single Sign On
Uses Twitter's Fabric SDK
```typescript
import { TwitterConnect } from '@ionic-native/twitter-connect/ngx';

constructor(private twitter: TwitterConnect) { }

...

function onSuccess(response) {
  console.log(response);

  // Will console log something like:
  // {
  //   userName: 'myuser',
  //   userId: '12358102',
  //   secret: 'tokenSecret'
  //   token: 'accessTokenHere'
  // }
}

this.twitter.login().then(onSuccess, onError);

this.twitter.logout().then(onLogoutSuccess, onLogoutError);
```

## Supported platforms

- Android
  - iOS