/bz17/BZClasses/BZCommon/ShareSDK/ShareSDK.framework/Headers/NSMutableDictionary+SSDKInit.h

https://gitlab.com/bigmanhxx/17-muxie · C Header · 291 lines · 78 code · 30 blank · 183 comment · 0 complexity · c42605b4de8acfd2a8b73db7777aa98e MD5 · raw file

  1. //
  2. // NSMutableDictionary+ShareSDK.h
  3. // ShareSDK
  4. //
  5. // Created by 冯 鸿杰 on 15/2/6.
  6. // Copyright (c) 2015年 掌淘科技. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "SSDKTypeDefine.h"
  10. /**
  11. * 初始化分享平台相关
  12. */
  13. @interface NSMutableDictionary (SSDKInit)
  14. /**
  15. * 设置新浪微博应用信息
  16. *
  17. * @param appKey 应用标识
  18. * @param appSecret 应用密钥
  19. * @param redirectUri 回调地址
  20. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  21. */
  22. - (void)SSDKSetupSinaWeiboByAppKey:(NSString *)appKey
  23. appSecret:(NSString *)appSecret
  24. redirectUri:(NSString *)redirectUri
  25. authType:(NSString *)authType;
  26. /**
  27. * 设置微信(微信好友,微信朋友圈、微信收藏)应用信息
  28. *
  29. * @param appId 应用标识
  30. * @param appSecret 应用密钥
  31. */
  32. - (void)SSDKSetupWeChatByAppId:(NSString *)appId
  33. appSecret:(NSString *)appSecret;
  34. /**
  35. * 设置Twitter应用信息
  36. *
  37. * @param consumerKey 应用标识
  38. * @param consumerSecret 应用密钥
  39. * @param redirectUri 回调地址
  40. */
  41. - (void)SSDKSetupTwitterByConsumerKey:(NSString *)consumerKey
  42. consumerSecret:(NSString *)consumerSecret
  43. redirectUri:(NSString *)redirectUri;
  44. /**
  45. * 设置QQ分享平台(QQ空间,QQ好友分享)应用信息
  46. *
  47. * @param appId 应用标识
  48. * @param appKey 应用Key
  49. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  50. */
  51. - (void)SSDKSetupQQByAppId:(NSString *)appId
  52. appKey:(NSString *)appKey
  53. authType:(NSString *)authType;
  54. /**
  55. * 设置Facebook应用信息
  56. *
  57. * @param apiKey 应用标识
  58. * @param appSecret 应用密钥
  59. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  60. */
  61. - (void)SSDKSetupFacebookByApiKey:(NSString *)apiKey
  62. appSecret:(NSString *)appSecret
  63. authType:(NSString *)authType;
  64. /**
  65. * 设置腾讯微博应用信息
  66. *
  67. * @param appKey 应用标识
  68. * @param appSecret 应用密钥
  69. * @param redirectUri 回调地址
  70. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  71. */
  72. - (void)SSDKSetupTencentWeiboByAppKey:(NSString *)appKey
  73. appSecret:(NSString *)appSecret
  74. redirectUri:(NSString *)redirectUri;
  75. /**
  76. * 设置豆瓣应用信息
  77. *
  78. * @param apiKey 应用标识
  79. * @param secret 应用密钥
  80. * @param redirectUri 回调地址
  81. */
  82. - (void)SSDKSetupDouBanByApiKey:(NSString *)apiKey
  83. secret:(NSString *)secret
  84. redirectUri:(NSString *)redirectUri;
  85. /**
  86. * 设置人人网应用信息
  87. *
  88. * @param appId 应用标识
  89. * @param appKey 应用Key
  90. * @param secretKey 应用密钥
  91. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  92. */
  93. - (void)SSDKSetupRenRenByAppId:(NSString *)appId
  94. appKey:(NSString *)appKey
  95. secretKey:(NSString *)secretKey
  96. authType:(NSString *)authType;
  97. /**
  98. * 设置开心网应用信息
  99. *
  100. * @param apiKey 应用标识
  101. * @param secretKey 应用密钥
  102. * @param redirectUri 回调地址
  103. */
  104. - (void)SSDKSetupKaiXinByApiKey:(NSString *)apiKey
  105. secretKey:(NSString *)secretKey
  106. redirectUri:(NSString *)redirectUri;
  107. /**
  108. * 设置Pocket应用信息
  109. *
  110. * @param consumerKey 应用标识
  111. * @param redirectUri 回调地址
  112. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  113. */
  114. - (void)SSDKSetupPocketByConsumerKey:(NSString *)consumerKey
  115. redirectUri:(NSString *)redirectUri
  116. authType:(NSString *)authType;
  117. /**
  118. * 设置Google+应用信息
  119. *
  120. * @param clientId 应用标识
  121. * @param clientSecret 应用密钥
  122. * @param redirectUri 回调地址
  123. */
  124. - (void)SSDKSetupGooglePlusByClientID:(NSString *)clientId
  125. clientSecret:(NSString *)clientSecret
  126. redirectUri:(NSString *)redirectUri;
  127. /**
  128. * 设置Instagram应用信息
  129. *
  130. * @param clientId 应用标识
  131. * @param clientSecret 应用密钥
  132. * @param redirectUri 回调地址
  133. */
  134. - (void)SSDKSetupInstagramByClientID:(NSString *)clientId
  135. clientSecret:(NSString *)clientSecret
  136. redirectUri:(NSString *)redirectUri;
  137. /**
  138. * 设置LinkedIn应用信息
  139. *
  140. * @param apiKey 应用标识
  141. * @param secretKey 应用密钥
  142. * @param redirectUrl 回调地址
  143. */
  144. - (void)SSDKSetupLinkedInByApiKey:(NSString *)apiKey
  145. secretKey:(NSString *)secretKey
  146. redirectUrl:(NSString *)redirectUrl;
  147. /**
  148. * 设置Tumblr应用信息
  149. *
  150. * @param consumerKey 应用标识
  151. * @param consumerSecret 应用密钥
  152. * @param callbackUrl 回调地址
  153. */
  154. - (void)SSDKSetupTumblrByConsumerKey:(NSString *)consumerKey
  155. consumerSecret:(NSString *)consumerSecret
  156. callbackUrl:(NSString *)callbackUrl;
  157. /**
  158. * 设置Flickr应用信息
  159. *
  160. * @param apiKey 应用标识
  161. * @param apiSecret 应用密钥
  162. */
  163. - (void)SSDKSetupFlickrByApiKey:(NSString *)apiKey
  164. apiSecret:(NSString *)apiSecret;
  165. /**
  166. * 设置有道云笔记应用信息
  167. *
  168. * @param consumerKey 应用标识
  169. * @param consumerSecret 应用密钥
  170. * @param oauthCallback 回调地址
  171. */
  172. - (void)SSDKSetupYouDaoNoteByConsumerKey:(NSString *)consumerKey
  173. consumerSecret:(NSString *)consumerSecret
  174. oauthCallback:(NSString *)oauthCallback;
  175. /**
  176. * 设置印象笔记应用信息,注:中国版和国际版都是调用此接口进行初始化操作。
  177. *
  178. * @param consumerKey 应用标识
  179. * @param consumerSecret 应用密钥
  180. * @param sandbox 是否为沙箱模式, YES 沙箱模式,NO 非沙箱模式
  181. */
  182. - (void)SSDKSetupEvernoteByConsumerKey:(NSString *)consumerKey
  183. consumerSecret:(NSString *)consumerSecret
  184. sandbox:(BOOL)sandbox;
  185. /**
  186. * 设置支付宝好友应用信息
  187. *
  188. * @param appId 应用标识
  189. */
  190. - (void)SSDKSetupAliPaySocialByAppId:(NSString *)appId;
  191. /**
  192. * 设置Pinterest应用信息
  193. *
  194. * @param clientId 应用标识
  195. */
  196. - (void)SSDKSetupPinterestByClientId:(NSString *)clientId;
  197. /**
  198. * 设置KaKao应用信息
  199. *
  200. * @param appKey 应用标识, 当使用客户端授权分享和授权时需要传入该标识
  201. * @param restApiKey RestApi标识
  202. * @param reidrectUri 回调地址
  203. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  204. */
  205. - (void)SSDKSetupKaKaoByAppKey:(NSString *)appKey
  206. restApiKey:(NSString *)restApiKey
  207. redirectUri:(NSString *)redirectUri
  208. authType:(NSString *)authType;
  209. /**
  210. * 设置Dropbox应用信息
  211. *
  212. * @param appKey 应用标识
  213. * @param appSecret 应用密钥
  214. * @param oauthCallback 回调地址
  215. */
  216. - (void)SSDKSetupDropboxByAppKey:(NSString *)appKey
  217. appSecret:(NSString *)appSecret
  218. oauthCallback:(NSString *)oauthCallback;
  219. /**
  220. * 设置VKontakte应用信息
  221. *
  222. * @param applicationId 应用标识
  223. * @param secretKey 应用密钥
  224. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  225. */
  226. - (void)SSDKSetupVKontakteByApplicationId:(NSString *)applicationId
  227. secretKey:(NSString *)secretKey;
  228. - (void)SSDKSetupVKontakteByApplicationId:(NSString *)applicationId
  229. secretKey:(NSString *)secretKey
  230. authType:(NSString *)authType;
  231. /**
  232. * 设置明道应用信息
  233. *
  234. * @param appKey 应用标识
  235. * @param appSecret 应用密钥
  236. * @param redirectUri 回调地址
  237. */
  238. - (void)SSDKSetupMingDaoByAppKey:(NSString *)appKey
  239. appSecret:(NSString *)appSecret
  240. redirectUri:(NSString *)redirectUri;
  241. /**
  242. * 设置易信(易信好友,易信朋友圈、易信收藏)应用信息
  243. *
  244. * @param appId 应用标识
  245. * @param appSecret 应用密钥
  246. * @param redirectUri 回调地址
  247. * @param authType 授权方式。值可以是:SSDKAuthTypeSSO、SSDKAuthTypeWeb、SSDKAuthTypeBoth,分别代表SSO、网页授权、SSO+网页授权。
  248. */
  249. - (void)SSDKSetupYiXinByAppId:(NSString *)appId
  250. appSecret:(NSString *)appSecret
  251. redirectUri:(NSString *)redirectUri
  252. authType:(NSString *)authType;
  253. /**
  254. * 设置Instapaper
  255. *
  256. * @param consumerKey 应用标识
  257. * @param comsumerSecret 应用密钥
  258. */
  259. - (void)SSDKSetupInstapaperByConsumerKey:(NSString *)consumerKey
  260. consumerSecret:(NSString *)consumerSecret;
  261. @end