All Projects → iVanPan → Cordova_weibo

iVanPan / Cordova_weibo

Licence: mit
A Cordova wrapper around the Sina WeiboSDK for Android and iOS. Provides access to ssoLogin, WeiboSharing etc...

Projects that are alternatives of or similar to Cordova weibo

Simpler
Simpler是一款轻量级的第三方微博应用,具有微博的基础功能,兼有外观优雅,运行流畅,内存占用低,省电省流量等特点。
Stars: ✭ 27 (-86.63%)
Mutual labels:  weibo, sina
Weibo image uploader
PHP 实现的微博图床上传轮子
Stars: ✭ 129 (-36.14%)
Mutual labels:  sina, weibo
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
Sinaweibo Emotion Classification
新浪微博情感分析应用
Stars: ✭ 118 (-41.58%)
Mutual labels:  sina, weibo
Wecase
The Linux Sina Weibo Client
Stars: ✭ 108 (-46.53%)
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
Weibo Topic Spider
微博超级话题爬虫,微博词频统计+情感分析+简单分类,新增肺炎超话爬取数据
Stars: ✭ 128 (-36.63%)
Mutual labels:  weibo
Weibo Img Crypto
自动加密解密微博上传的图片
Stars: ✭ 176 (-12.87%)
Mutual labels:  weibo
Yaofang
药方 YAWF 火狐扩展 新浪微博 微博过滤版面改造和美化等
Stars: ✭ 120 (-40.59%)
Mutual labels:  weibo
Weibo v6
适用于 Stylus 等插件的微博美化样式
Stars: ✭ 129 (-36.14%)
Mutual labels:  weibo
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
News spider
新闻抓取(微信、微博、头条...)
Stars: ✭ 190 (-5.94%)
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
Weibo wordcloud
根据关键词抓取微博数据,再生成词云
Stars: ✭ 154 (-23.76%)
Mutual labels:  weibo

cordova-plugin-weibosdk

npm npm platform GitHub license

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

  1. cordova plugin add cordova-plugin-weibosdk --variable WEIBO_APP_ID=YOUR_WEIBO_APPID
  2. 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
  3. cordova build

Notes

  1. This plugin is required Cordova-Android version >= 4.0,so using Cordova 5.0 or higher is recommended
  2. This plugin should be used after the deviceready event has been fired!!!
  3. 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

  1. install this plugin
  2. backup www folder in your cordova project
  3. replace www by example_www
  4. cordova build & test
example

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].