123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- //
- // NSMutableDictionary+ShareSDK.h
- // ShareSDK
- //
- // Created by 冯 鸿杰 on 15/2/6.
- // Copyright (c) 2015年 掌淘科技. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "SSDKTypeDefine.h"
- /**
- * 初始化分享平台相关
- */
- @interface NSMutableDictionary (SSDKInit)
- /**
- * 设置平台的授权配置
- *
- * @param authSettings 授权配置信息
- * 例如在配置新浪微博的初始化信息中设置授权配置信息:
- * [appInfo SSDKSetAuthSettings:@[@"follow_app_official_microblog"]];
- */
- - (void)SSDKSetAuthSettings:(NSArray *)authSettings;
- /**
- * 设置新浪微博应用信息
- *
- * @param appKey 应用标识
- * @param appSecret 应用密钥
- * @param redirectUri 回调地址
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupSinaWeiboByAppKey:(NSString *)appKey
- appSecret:(NSString *)appSecret
- redirectUri:(NSString *)redirectUri
- authType:(NSString *)authType;
- /**
- * 设置微信(微信好友,微信朋友圈、微信收藏)应用信息
- *
- * @param appId 应用标识
- * @param appSecret 应用密钥
- */
- - (void)SSDKSetupWeChatByAppId:(NSString *)appId
- appSecret:(NSString *)appSecret;
- /**
- * 设置Twitter应用信息
- *
- * @param consumerKey 应用标识
- * @param consumerSecret 应用密钥
- * @param redirectUri 回调地址
- */
- - (void)SSDKSetupTwitterByConsumerKey:(NSString *)consumerKey
- consumerSecret:(NSString *)consumerSecret
- redirectUri:(NSString *)redirectUri;
- /**
- * 设置QQ分享平台(QQ空间,QQ好友分享)应用信息
- *
- * @param appId 应用标识
- * @param appKey 应用Key
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupQQByAppId:(NSString *)appId
- appKey:(NSString *)appKey
- authType:(NSString *)authType;
- /**
- * 设置Facebook应用信息
- *
- * @param apiKey 应用标识
- * @param appSecret 应用密钥
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupFacebookByApiKey:(NSString *)apiKey
- appSecret:(NSString *)appSecret
- authType:(NSString *)authType;
- /**
- * 设置腾讯微博应用信息
- *
- * @param appKey 应用标识
- * @param appSecret 应用密钥
- * @param redirectUri 回调地址
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupTencentWeiboByAppKey:(NSString *)appKey
- appSecret:(NSString *)appSecret
- redirectUri:(NSString *)redirectUri;
- /**
- * 设置豆瓣应用信息
- *
- * @param apiKey 应用标识
- * @param secret 应用密钥
- * @param redirectUri 回调地址
- */
- - (void)SSDKSetupDouBanByApiKey:(NSString *)apiKey
- secret:(NSString *)secret
- redirectUri:(NSString *)redirectUri;
- /**
- * 设置人人网应用信息
- *
- * @param appId 应用标识
- * @param appKey 应用Key
- * @param secretKey 应用密钥
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupRenRenByAppId:(NSString *)appId
- appKey:(NSString *)appKey
- secretKey:(NSString *)secretKey
- authType:(NSString *)authType;
- /**
- * 设置开心网应用信息
- *
- * @param apiKey 应用标识
- * @param secretKey 应用密钥
- * @param redirectUri 回调地址
- */
- - (void)SSDKSetupKaiXinByApiKey:(NSString *)apiKey
- secretKey:(NSString *)secretKey
- redirectUri:(NSString *)redirectUri;
- /**
- * 设置Pocket应用信息
- *
- * @param consumerKey 应用标识
- * @param redirectUri 回调地址
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupPocketByConsumerKey:(NSString *)consumerKey
- redirectUri:(NSString *)redirectUri
- authType:(NSString *)authType;
- /**
- * 设置Google+应用信息
- *
- * @param clientId 应用标识
- * @param clientSecret 应用密钥
- * @param redirectUri 回调地址
- */
- - (void)SSDKSetupGooglePlusByClientID:(NSString *)clientId
- clientSecret:(NSString *)clientSecret
- redirectUri:(NSString *)redirectUri;
- /**
- * 设置Instagram应用信息
- *
- * @param clientId 应用标识
- * @param clientSecret 应用密钥
- * @param redirectUri 回调地址
- */
- - (void)SSDKSetupInstagramByClientID:(NSString *)clientId
- clientSecret:(NSString *)clientSecret
- redirectUri:(NSString *)redirectUri;
- /**
- * 设置LinkedIn应用信息
- *
- * @param apiKey 应用标识
- * @param secretKey 应用密钥
- * @param redirectUrl 回调地址
- */
- - (void)SSDKSetupLinkedInByApiKey:(NSString *)apiKey
- secretKey:(NSString *)secretKey
- redirectUrl:(NSString *)redirectUrl;
- /**
- * 设置Tumblr应用信息
- *
- * @param consumerKey 应用标识
- * @param consumerSecret 应用密钥
- * @param callbackUrl 回调地址
- */
- - (void)SSDKSetupTumblrByConsumerKey:(NSString *)consumerKey
- consumerSecret:(NSString *)consumerSecret
- callbackUrl:(NSString *)callbackUrl;
- /**
- * 设置Flickr应用信息
- *
- * @param apiKey 应用标识
- * @param apiSecret 应用密钥
- */
- - (void)SSDKSetupFlickrByApiKey:(NSString *)apiKey
- apiSecret:(NSString *)apiSecret;
- /**
- * 设置有道云笔记应用信息
- *
- * @param consumerKey 应用标识
- * @param consumerSecret 应用密钥
- * @param oauthCallback 回调地址
- */
- - (void)SSDKSetupYouDaoNoteByConsumerKey:(NSString *)consumerKey
- consumerSecret:(NSString *)consumerSecret
- oauthCallback:(NSString *)oauthCallback;
- /**
- * 设置印象笔记应用信息,注:中国版和国际版都是调用此接口进行初始化操作。
- *
- * @param consumerKey 应用标识
- * @param consumerSecret 应用密钥
- * @param sandbox 是否为沙箱模式, YES 沙箱模式,NO 非沙箱模式
- */
- - (void)SSDKSetupEvernoteByConsumerKey:(NSString *)consumerKey
- consumerSecret:(NSString *)consumerSecret
- sandbox:(BOOL)sandbox;
- /**
- * 设置支付宝好友应用信息
- *
- * @param appId 应用标识
- */
- - (void)SSDKSetupAliPaySocialByAppId:(NSString *)appId;
- /**
- * 设置Pinterest应用信息
- *
- * @param clientId 应用标识
- */
- - (void)SSDKSetupPinterestByClientId:(NSString *)clientId;
- /**
- * 设置KaKao应用信息
- *
- * @param appKey 应用标识, 当使用客户端授权分享和授权时需要传入该标识
- * @param restApiKey RestApi标识
- * @param reidrectUri 回调地址
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupKaKaoByAppKey:(NSString *)appKey
- restApiKey:(NSString *)restApiKey
- redirectUri:(NSString *)redirectUri
- authType:(NSString *)authType;
- /**
- * 设置Dropbox应用信息
- *
- * @param appKey 应用标识
- * @param appSecret 应用密钥
- * @param oauthCallback 回调地址
- */
- - (void)SSDKSetupDropboxByAppKey:(NSString *)appKey
- appSecret:(NSString *)appSecret
- oauthCallback:(NSString *)oauthCallback;
- /**
- * 设置VKontakte应用信息
- *
- * @param applicationId 应用标识
- * @param secretKey 应用密钥
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupVKontakteByApplicationId:(NSString *)applicationId
- secretKey:(NSString *)secretKey;
- - (void)SSDKSetupVKontakteByApplicationId:(NSString *)applicationId
- secretKey:(NSString *)secretKey
- authType:(NSString *)authType;
- /**
- * 设置明道应用信息
- *
- * @param appKey 应用标识
- * @param appSecret 应用密钥
- * @param redirectUri 回调地址
- */
- - (void)SSDKSetupMingDaoByAppKey:(NSString *)appKey
- appSecret:(NSString *)appSecret
- redirectUri:(NSString *)redirectUri;
- /**
- * 设置易信(易信好友,易信朋友圈、易信收藏)应用信息
- *
- * @param appId 应用标识
- * @param appSecret 应用密钥
- * @param redirectUri 回调地址
- * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
- */
- - (void)SSDKSetupYiXinByAppId:(NSString *)appId
- appSecret:(NSString *)appSecret
- redirectUri:(NSString *)redirectUri
- authType:(NSString *)authType;
- /**
- * 设置Instapaper
- *
- * @param consumerKey 应用标识
- * @param comsumerSecret 应用密钥
- */
- - (void)SSDKSetupInstapaperByConsumerKey:(NSString *)consumerKey
- consumerSecret:(NSString *)consumerSecret;
- /**
- * 设置钉钉应用信息
- *
- * @param appId 应用标识
- */
- - (void)SSDKSetupDingTalkByAppId:(NSString *)appId;
- @end
|