Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-twitter-composer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-twitter-composer

cordova-plugin-twitter-composer

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 28 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc