Giter Club home page Giter Club logo

bqlauthengine's Introduction

BQLAuthEngine

利用QQ、微信的原生SDK实现的的三方分享工具,包括了QQ、微信、以及微博的登录分享功能,每一个功能点我都亲测无误,如果还有其他问题请联系我,谢谢你们的支持!

/**
 QQ登录
 
 @param success 成功回调(用户信息)
 
 @param failure 失败回调
 
 */
 
- (void)auth_qq_login:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 QQ分享文本(仅支持分享至好友)
 
 @param model 分享模型(model.text)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
 
 - (void)auth_qq_share_text:(BQLShareModel *)model success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 QQ分享图片(仅支持分享至好友,可接收有效参数:model.title、model.describe)
 
 @param model 分享模型
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_qq_share_image:(BQLShareModel *)model success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 QQ分享链接
 
 @param model 分享模型(model.urlString必填,可接收有效参数:model.title、model.describe、model.previewImage或者model.previewUrlString)
 
 @param scene 分享目标(好友、空间)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_qq_share_link:(BQLShareModel *)model scene:(QQShareScene )scene success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微信登录
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_wechat_login:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微信文本分享
 
 @param model 分享模型
 
 @param scene 分享目标(好友、朋友圈、收藏)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_wechat_share_text:(BQLShareModel *)model scene:(WechatShareScene )scene success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微信图片分享
 
 @param model 分享模型(取model.image注意的是:image不能超过10M,可接收有效参数:model.previewImage)
 
 @param scene 分享目标(好友、朋友圈、收藏)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_wechat_share_image:(BQLShareModel *)model scene:(WechatShareScene )scene success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微信链接分享
 
 @param model 分享模型(model.urlString,可接收有效参数:model.title、model.describe、model.previewImage)
 
 @param scene 分享目标(好友、朋友圈、收藏)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_wechat_share_link:(BQLShareModel *)model scene:(WechatShareScene )scene success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微信音乐分享
 
 @param model 分享模型(model.urlString必填,可接收有效参数:model.title、model.describe、model.previewImage)
 
 @param scene 分享目标(好友、朋友圈、收藏)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_wechat_share_music:(BQLShareModel *)model scene:(WechatShareScene )scene success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微信视频分享
 
 @param model 分享模型(model.urlString必填,可接收有效参数:model.title、model.describe、model.previewImage)
 
 @param scene 分享目标(好友、朋友圈、收藏)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_wechat_share_video:(BQLShareModel *)model scene:(WechatShareScene )scene success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微博登录
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_sina_login:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微博文本分享
 
 @param model 分享模型(model.text)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_sina_share_text:(BQLShareModel *)model success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微博链接分享
 
 @param model 分享模型(model.urlString必填,可接收有效参数:model.text、model.image)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_sina_share_link:(BQLShareModel *)model success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;
/**
 微博图片分享
 
 @param model 分享模型(model.image必填 不得超过10M)
 
 @param success 成功回调
 
 @param failure 失败回调
 
 */
- (void)auth_sina_share_image:(BQLShareModel *)model success:(BQLAuthSuccessBlock)success failure:(BQLAuthFailureBlock)failure;

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.