https://github.com/snuffy/cordova-plugin-twitter-composer
cordova-plugin-twitter-composer
https://github.com/snuffy/cordova-plugin-twitter-composer
android cordova ios twitter
Last synced: 3 months ago
JSON representation
cordova-plugin-twitter-composer
- Host: GitHub
- URL: https://github.com/snuffy/cordova-plugin-twitter-composer
- Owner: snuffy
- Created: 2018-11-21T05:30:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-28T16:25:44.000Z (over 6 years ago)
- Last Synced: 2025-03-22T18:11:24.133Z (3 months ago)
- Topics: android, cordova, ios, twitter
- Language: Java
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cordova-plugin-twitter-composer
## Screen Shot
iOS

Android

## Instalation
```
$ cordova plugin add cordova-plugin-twitter-composer
```or
add below code on config.xml
```
```
## Cocoapod
This plugin use cocoapods. please install cocoapods
```
$ gem install cocoapods
$ pod setup
```## Example
```
let text = 'This is a cat';
let imageURL = 'http://img.yaplog.jp/img/15/pc/k/u/r/kuro-memo/1/1357.jpg';// login and compose
TWComposer.compse(text, imageURL).then(res => {
// success or canceling tweet
res.status // ['success', 'cancel']// you can setting the action after tweeting
}).catch(error => {
// faild
res.status // ['failed']
});// logout method
TWComposer.logout().then(() => {
// after logout
});
```