Giter Club home page Giter Club logo

cordova-plugin-sharesdk's Introduction

安装

ionic platform add ios
ionic platform add android

ionic plugin add https://github.com/raistlinzx/cordova-plugin-sharesdk.git \
	--variable SHARESDK_IOS_APPKEY=<ShareSDK iOS App Key> \
    --variable SHARESDK_ANDROID_APPKEY=<ShareSDK Android App Key> \
	--variable QQAPPID=<QQ App Id> \
	--variable QQAPPKEY=<QQ App Key> \
	--variable WECHATAPPID=<WeChat App Id> \
	--variable WECHATAPPSECRET=<WeChat App Secret> \
	--variable QQURLSCHEME=<QQ Url Scheme For iOS Only> \
	--variable WBAPPKEY=<SinaWeibo App Key> \
	--variable WBAPPSECRET=<SinaWeibo App Secret> \
	--variable WBREDIRECTURL=<SinaWeibo Redirect Url>
参数 说明
SHARESDK_IOS_APPKEY ShareSDK注册(IOS)
SHARESDK_ANDROID_APPKEY ShareSDK注册(ANDROID)
QQAPPID QQ开放平台注册
QQAPPKEY QQ开放平台注册
QQURLSCHEME QQ回调Scheme。例如:QQ41DF25B4
WECHATAPPID 微信开放平台注册
WECHATAPPSECRET 微信开放平台注册
WBAPPKEY 新浪微博
WBAPPSECRET 新浪微博
WBREDIRECTURL 新浪微博回调地址。必须与注册时一致

卸载重新安装

ionic plugin remove com.ryanzx.cordova.plugin.sharesdk

JS调用

function test() {
	cordova.exec(function(result) {
		alert('分享成功');
    }, function(error) {
		alert('分享失败');
		console.debug(error)
    }, "ShareSDK", "share", ['测试分享标题','你们好啊这里是测试分享','http://cdn.qiyestore.com/openapi/upload/2015/12/25/EYZZ17L785.png','http://www.qiyestore.com']);
}
参数 说明
参数1 标题
参数2 文字内容
参数3 图片URL
参数4 分享查看URL

cordova-plugin-sharesdk's People

Contributors

raistlinzx avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.