0.0.9 • Published 5 years ago

cordova-plugin-twitter-composer v0.0.9

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

cordova-plugin-twitter-composer

Screen Shot

iOS

2018-11-22 00 49 56

Android

screenshot_20181128-212416

Instalation

$ cordova plugin add cordova-plugin-twitter-composer

or

add below code on config.xml

<plugin name="cordova-plugin-twitter-composer" spec="0.0.1">
    <variable name="TWITTERCONSUMERKEY" value="xxxx" />
    <variable name="TWITTERCONSUMERSECRET" value="xxxx" />
</plugin>

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
});
0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago