iVanPan / Cordova_weibo
Licence: mit
A Cordova wrapper around the Sina WeiboSDK for Android and iOS. Provides access to ssoLogin, WeiboSharing etc...
Stars: ✭ 202
Labels
Projects that are alternatives of or similar to Cordova weibo
Simpler
Simpler是一款轻量级的第三方微博应用,具有微博的基础功能,兼有外观优雅,运行流畅,内存占用低,省电省流量等特点。
Stars: ✭ 27 (-86.63%)
Mutual labels: weibo, sina
Weibo terminater
Final Weibo Crawler Scrap Anything From Weibo, comments, weibo contents, followers, anything. The Terminator
Stars: ✭ 2,295 (+1036.14%)
Mutual labels: sina, weibo
Weibospider
⚡ A distributed crawler for weibo, building with celery and requests.
Stars: ✭ 4,670 (+2211.88%)
Mutual labels: sina, weibo
Weibo Picture Store
🖼 新浪微博图床 Chrome/Firefox 扩展,支持同步到微相册
Stars: ✭ 624 (+208.91%)
Mutual labels: sina, weibo
Weibospider
This is a sina weibo spider built by scrapy [微博爬虫/持续维护]
Stars: ✭ 2,408 (+1092.08%)
Mutual labels: sina, weibo
Cordova Plugin Baidumaplocation
Get device current Location from Baidu Map
Stars: ✭ 137 (-32.18%)
Mutual labels: cordova-plugin
Ionic Native
Native features for mobile apps built with Cordova/PhoneGap and open web technologies. Complete with TypeScript support.
Stars: ✭ 2,129 (+953.96%)
Mutual labels: cordova-plugin
Flutter hrlweibo
Flutter仿微博客户端, 包含首页、视频、发现、消息(仿微博聊界面)及个人中心模块
Stars: ✭ 2,336 (+1056.44%)
Mutual labels: weibo
Sina Weibo Album Downloader
Multithreading download all HD photos / pictures from someone's Sina Weibo album.
Stars: ✭ 125 (-38.12%)
Mutual labels: weibo
Upic
📤uPic is a native, powerful, beautiful and simple picture and file upload tool for macOS.
Stars: ✭ 2,465 (+1120.3%)
Mutual labels: weibo
Nine grid view
Flutter NineGridView & DragSortView. Similar to Weibo / WeChat nine grid view controls to display pictures. Flutter仿微信/微博九宫格、拖拽排序,微信群组,钉钉群组,QQ讨论组头像。
Stars: ✭ 169 (-16.34%)
Mutual labels: weibo
cordova-plugin-weibosdk
A Cordova wrapper around the Sina WeiboSDK for Android and iOS. Provides access to ssoLogin, WeiboSharing etc... 简体中文
Feature
- Weibo SSO Login
- Weibo Logout
- Weibo Share (WebPage,Text,Image)
- Check Weibo Client is Installed
Requirements
- Cordova Version 3.5+
- Cordova-Android >= 7.0
- Cordova-iOS >= 4.0
Installation
cordova plugin add cordova-plugin-weibosdk --variable WEIBO_APP_ID=YOUR_WEIBO_APPID
- Add
<preference name="REDIRECTURI" value="YOUR_WEIBO_REDIRECTURI" />
in your config.xml If you don't add this preference the defualt redirecturi is https://api.weibo.com/oauth2/default.html - cordova build
Notes
- This plugin is required Cordova-Android version >= 4.0,so using Cordova 5.0 or higher is recommended
- This plugin should be used after the deviceready event has been fired!!!
-
If Cordova version <5.1.1,when two Cordova plugins are modifying “*-Info.plist” CFBundleURLTypes, only the first added plugin is getting the changes applied.so after installing plugin,please check the URLTypes in your Xcode project.You can find this issue here.Update:This Bug is fixed in last Cordova version(5.1.1)
Usage
Weibo SSO Login
WeiboSDK.ssoLogin(function (args) {
alert('access token is ' + args.access_token);
alert('userId is ' + args.userId);
alert('expires_time is ' + new Date(parseInt(args.expires_time)) + ' TimeStamp is ' + args.expires_time);
}, function (failReason) {
alert(failReason);
});
Weibo Logout
WeiboSDK.logout(function () {
alert('logout success');
}, function (failReason) {
alert(failReason);
});
Weibo WebPage Share
var args = {};
args.url = 'https://cordova.apache.org/';
args.title = 'Apache Cordova';
args.description = 'This is a Cordova Plugin';
args.image = 'https://cordova.apache.org/static/img/pluggy.png';
WeiboSDK.shareToWeibo(function () {
alert('share success');
}, function (failReason) {
alert(failReason);
}, args);
Weibo Image Share
var args = {};
args.image = 'https://cordova.apache.org/static/img/pluggy.png';
WeiboSDK.shareImageToWeibo(function () {
alert('share success');
}, function (failReason) {
alert(failReason);
}, args);
Weibo Text Share
var args = {};
args.text = 'This is a Cordova Plugin';
WeiboSDK.shareTextToWeibo(function () {
alert('share success');
}, function (failReason) {
alert(failReason);
}, args);
CheckClientInstalled
WeiboSDK.checkClientInstalled(function () {
alert('client is installed');
}, function () {
alert('client is not installed');
});
GetUserInfo
var url = 'https://api.weibo.com/2/users/show.json?uid=' + usrid + '&&access_token=' + token;
http.get(url)
Example
- install this plugin
- backup www folder in your cordova project
- replace www by example_www
- cordova build & test
About WeiboSdk
you can downlaod last weibosdk here .if you find any problem about weibosdk, open an isssus please.
Contributing
Feel free to contribute
License
cordova-plugin-weibosdk is released under the MIT license. See LICENSE file for more information.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].