ShareSDKDevInfo.cs 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. using UnityEngine;
  2. using System.Collections;
  3. using System;
  4. namespace cn.sharesdk.unity3d
  5. {
  6. public class DevInfoSet
  7. {
  8. public Facebook facebook = new Facebook();
  9. //public GooglePlus googlePlus = new GooglePlus();
  10. public SinaWeiboDevInfo sinaweibo = new SinaWeiboDevInfo();
  11. public QQ qq = new QQ();
  12. public QZone qzone = new QZone();
  13. //public WeChat wechat = new WeChat();
  14. //public WeChatMoments wechatMoments = new WeChatMoments();
  15. //public TencentWeiboDevInfo tencentweibo;
  16. //public Twitter twitter;
  17. //public Email email;
  18. //public ShortMessage shortMessage;
  19. //public Douban douban;
  20. //public Renren renren;
  21. //public KaiXin kaiXin;
  22. //public Pocket pocket;
  23. //public Instagram instagram;
  24. //public LinkedIn linkedIn;
  25. //public Tumblr tumblr;
  26. //public YouDao youDao;
  27. //public Flickr flickr;
  28. //public Evernote evernote;
  29. //public WhatsApp whatsApp;
  30. //public Line line;
  31. //public Dropbox dropbox;
  32. //public VKontakte vkontakte;
  33. //public Pinterest pinterest;
  34. //public Mingdao mingdao;
  35. //public KakaoTalk kakaoTalk;
  36. //public KakaoStory kakaoStory;
  37. //public WeChatFavorites wechatFavorites;
  38. //public Yixin yixin;
  39. //public YixinMoments yixinMoments;
  40. //public FacebookMessenger facebookMessenger;
  41. //public Instapaper instapaper;
  42. //public Alipay alipay;
  43. //public AlipayMoments alipayMoments;
  44. //public Dingding dingTalk;
  45. //public Youtube youtube;
  46. //public MeiPai meiPai;
  47. //#if UNITY_ANDROID
  48. //public FourSquare fourSquare;
  49. //#elif UNITY_IPHONE
  50. //public Copy copy;
  51. //public YixinFavorites yixinFavorites; //易信收藏,仅iOS端支持 [仅支持iOS端]
  52. //public YixinSeries yixinSeries; //iOS端易信系列, 可直接配置易信三个子平台 [仅支持iOS端]
  53. //public WechatSeries wechatSeries; //iOS端微信系列, 可直接配置微信三个子平台 [仅支持iOS端]
  54. //public QQSeries qqSeries; //iOS端QQ系列, 可直接配置QQ系列两个子平台 [仅支持iOS端]
  55. //public KakaoSeries kakaoSeries; //iOS端Kakao系列, 可直接配置Kakao系列两个子平台 [仅支持iOS端]
  56. //public EvernoteInternational evernoteInternational; //iOS配置印象笔记国内版在Evernote中配置;国际版在EvernoteInternational中配置
  57. ////安卓配置印象笔记国内与国际版直接在Evernote中配置
  58. //#endif
  59. }
  60. public class DevInfo
  61. {
  62. public bool Enable = true;
  63. }
  64. public class SinaWeiboDevInfo : DevInfo
  65. {
  66. #if UNITY_ANDROID
  67. public const int type = (int) PlatformType.SinaWeibo;
  68. public string SortId = "4";
  69. public string AppKey = ShareSDK.SinaAppKey;
  70. public string AppSecret = ShareSDK.SinaAppSecrete;
  71. public string RedirectUrl = "http://www.dashgame.com/";
  72. public bool ShareByAppClient = false;
  73. #elif UNITY_IPHONE
  74. public const int type = (int) PlatformType.SinaWeibo;
  75. public string app_key = ShareSDK.SinaAppKey;
  76. public string app_secret = ShareSDK.SinaAppSecrete;
  77. public string redirect_uri = "http://www.dashgame.com/";
  78. public string auth_type = "both"; //can pass "both","sso",or "web"
  79. #endif
  80. }
  81. public class TencentWeiboDevInfo : DevInfo
  82. {
  83. #if UNITY_ANDROID
  84. public const int type = (int) PlatformType.TencentWeibo;
  85. public string SortId = "3";
  86. public string AppKey = "801307650";
  87. public string AppSecret = "ae36f4ee3946e1cbb98d6965b0b2ff5c";
  88. public string RedirectUri = "http://sharesdk.cn";
  89. #elif UNITY_IPHONE
  90. public const int type = (int) PlatformType.TencentWeibo;
  91. public string app_key = "801307650";
  92. public string app_secret = "ae36f4ee3946e1cbb98d6965b0b2ff5c";
  93. public string redirect_uri = "http://sharesdk.cn";
  94. #endif
  95. }
  96. public class QQ : DevInfo
  97. {
  98. #if UNITY_ANDROID
  99. public const int type = (int) PlatformType.QQ;
  100. public string SortId = "2";
  101. public string AppId = ShareSDK.QQAppKey;
  102. public string AppKey = ShareSDK.QQAppSecrete;
  103. public bool ShareByAppClient = true;
  104. #elif UNITY_IPHONE
  105. public const int type = (int) PlatformType.QQ;
  106. public string app_id = ShareSDK.QQAppKey;
  107. public string app_key = ShareSDK.QQAppSecrete;
  108. public string auth_type = "both"; //can pass "both","sso",or "web"
  109. #endif
  110. }
  111. public class QZone : DevInfo
  112. {
  113. #if UNITY_ANDROID
  114. public string SortId = "1";
  115. public const int type = (int) PlatformType.QZone;
  116. public string AppId = ShareSDK.QQZoneAppKey;
  117. public string AppKey = ShareSDK.QQZoneAppSecreteForAndroid;
  118. public bool ShareByAppClient = true;
  119. #elif UNITY_IPHONE
  120. public const int type = (int) PlatformType.QZone;
  121. public string app_id = ShareSDK.QQZoneAppKey;
  122. public string app_key = ShareSDK.QQZoneAppSecreteForIOS;
  123. public string auth_type = "both"; //can pass "both","sso",or "web"
  124. #endif
  125. }
  126. public class WeChat : DevInfo
  127. {
  128. #if UNITY_ANDROID
  129. public string SortId = "5";
  130. public const int type = (int) PlatformType.WeChat;
  131. //public string AppId = ShareSDK.WeChatAppKey;
  132. //public string AppSecret = ShareSDK.WeChatSecrete;
  133. public bool BypassApproval = true;
  134. #elif UNITY_IPHONE
  135. public const int type = (int) PlatformType.WeChat;
  136. //public string app_id = ShareSDK.WeChatAppKey;
  137. //public string app_secret = ShareSDK.WeChatSecrete;
  138. #endif
  139. }
  140. public class WeChatMoments : DevInfo
  141. {
  142. #if UNITY_ANDROID
  143. public string SortId = "6";
  144. public const int type = (int) PlatformType.WeChatMoments;
  145. //public string AppId = ShareSDK.WeChatAppKey;
  146. //public string AppSecret = ShareSDK.WeChatSecrete;
  147. public bool BypassApproval = false;
  148. #elif UNITY_IPHONE
  149. public const int type = (int) PlatformType.WeChatMoments;
  150. //public string app_id = ShareSDK.WeChatAppKey;
  151. //public string app_secret = ShareSDK.WeChatSecrete;
  152. #endif
  153. }
  154. public class WeChatFavorites : DevInfo
  155. {
  156. #if UNITY_ANDROID
  157. public string SortId = "7";
  158. public const int type = (int) PlatformType.WeChatFavorites;
  159. public string AppId = "wx4868b35061f87885";
  160. public string AppSecret = "64020361b8ec4c99936c0e3999a9f249";
  161. #elif UNITY_IPHONE
  162. public const int type = (int) PlatformType.WeChatFavorites;
  163. public string app_id = "wx4868b35061f87885";
  164. public string app_secret = "64020361b8ec4c99936c0e3999a9f249";
  165. #endif
  166. }
  167. public class Facebook : DevInfo
  168. {
  169. #if UNITY_ANDROID
  170. public string SortId = "8";
  171. public const int type = (int) PlatformType.Facebook;
  172. public string ConsumerKey = ShareSDK.FacebookAppKey;
  173. public string ConsumerSecret = ShareSDK.FacebookAppSecrete;
  174. public string RedirectUrl = "http://mob.com/";
  175. #elif UNITY_IPHONE
  176. public const int type = (int) PlatformType.Facebook;
  177. public string api_key = ShareSDK.FacebookAppKey;
  178. public string app_secret = ShareSDK.FacebookAppSecrete;
  179. public string auth_type = "both"; //can pass "both","sso",or "web"
  180. public string display_name = "ShareSDK";//如果需要使用客户端分享,必填且需与FB 后台配置一样
  181. #endif
  182. }
  183. public class Twitter : DevInfo
  184. {
  185. #if UNITY_ANDROID
  186. public string SortId = "9";
  187. public const int type = (int) PlatformType.Twitter;
  188. public string ConsumerKey = "LRBM0H75rWrU9gNHvlEAA2aOy";
  189. public string ConsumerSecret = "gbeWsZvA9ELJSdoBzJ5oLKX0TU09UOwrzdGfo9Tg7DjyGuMe8G";
  190. public string CallbackUrl = "http://mob.com";
  191. #elif UNITY_IPHONE
  192. public const int type = (int) PlatformType.Twitter;
  193. public string consumer_key = "LRBM0H75rWrU9gNHvlEAA2aOy";
  194. public string consumer_secret = "gbeWsZvA9ELJSdoBzJ5oLKX0TU09UOwrzdGfo9Tg7DjyGuMe8G";
  195. public string redirect_uri = "http://mob.com";
  196. #endif
  197. }
  198. public class Renren : DevInfo
  199. {
  200. #if UNITY_ANDROID
  201. public string SortId = "10";
  202. public const int type = (int) PlatformType.Renren;
  203. public string AppId = "226427";
  204. public string ApiKey = "fc5b8aed373c4c27a05b712acba0f8c3";
  205. public string SecretKey = "f29df781abdd4f49beca5a2194676ca4";
  206. #elif UNITY_IPHONE
  207. public const int type = (int) PlatformType.Renren;
  208. public string app_id = "226427";
  209. public string app_key = "fc5b8aed373c4c27a05b712acba0f8c3";
  210. public string secret_key = "f29df781abdd4f49beca5a2194676ca4";
  211. public string auth_type = "both"; //can pass "both","sso",or "web"
  212. #endif
  213. }
  214. public class KaiXin : DevInfo
  215. {
  216. #if UNITY_ANDROID
  217. public string SortId = "11";
  218. public const int type = (int) PlatformType.Kaixin;
  219. public string AppKey = "358443394194887cee81ff5890870c7c";
  220. public string AppSecret = "da32179d859c016169f66d90b6db2a23";
  221. public string RedirectUri = "http://www.sharesdk.cn";
  222. #elif UNITY_IPHONE
  223. public const int type = (int) PlatformType.Kaixin;
  224. public string api_key = "358443394194887cee81ff5890870c7c";
  225. public string secret_key = "da32179d859c016169f66d90b6db2a23";
  226. public string redirect_uri = "http://www.sharesdk.cn";
  227. #endif
  228. }
  229. public class Email : DevInfo
  230. {
  231. #if UNITY_ANDROID
  232. public string SortId = "12";
  233. public const int type = (int) PlatformType.Mail;
  234. #elif UNITY_IPHONE
  235. public const int type = (int) PlatformType.Mail;
  236. #endif
  237. }
  238. public class ShortMessage : DevInfo
  239. {
  240. #if UNITY_ANDROID
  241. public string SortId = "13";
  242. public const int type = (int) PlatformType.SMS;
  243. #elif UNITY_IPHONE
  244. public const int type = (int) PlatformType.SMS;
  245. #endif
  246. }
  247. public class Douban : DevInfo
  248. {
  249. #if UNITY_ANDROID
  250. public string SortId = "14";
  251. public const int type = (int) PlatformType.DouBan;
  252. public string ApiKey = "02e2cbe5ca06de5908a863b15e149b0b";
  253. public string Secret = "9f1e7b4f71304f2f";
  254. public string RedirectUri = "http://www.sharesdk.cn";
  255. #elif UNITY_IPHONE
  256. public const int type = (int) PlatformType.DouBan;
  257. public string api_key = "02e2cbe5ca06de5908a863b15e149b0b";
  258. public string secret = "9f1e7b4f71304f2f";
  259. public string redirect_uri = "http://www.sharesdk.cn";
  260. #endif
  261. }
  262. public class YouDao : DevInfo
  263. {
  264. #if UNITY_ANDROID
  265. public string SortId = "15";
  266. public const int type = (int) PlatformType.YouDaoNote;
  267. public string HostType = "product";
  268. public string ConsumerKey = "dcde25dca105bcc36884ed4534dab940";
  269. public string ConsumerSecret = "d98217b4020e7f1874263795f44838fe";
  270. public string RedirectUri = "http://www.sharesdk.cn/";
  271. #elif UNITY_IPHONE
  272. public const int type = (int) PlatformType.YouDaoNote;
  273. public string consumer_key = "dcde25dca105bcc36884ed4534dab940";
  274. public string consumer_secret = "d98217b4020e7f1874263795f44838fe";
  275. public string oauth_callback = "http://www.sharesdk.cn/";
  276. #endif
  277. }
  278. // 安卓描述:
  279. // 在中国大陆,印象笔记有两个服务器,一个是沙箱(sandbox),一个是生产服务器(china)。
  280. // 一般你注册应用,它会先让你使用sandbox,当你完成测试以后,可以到
  281. // http://dev.yinxiang.com/support/上激活你的ConsumerKey,激活成功后,修改HostType
  282. // 为china就好了。至于如果您申请的是国际版的印象笔记(Evernote),则其生产服务器类型为
  283. // “product”。
  284. // 如果目标设备上已经安装了印象笔记客户端,ShareSDK允许应用调用本地API来完成分享,但
  285. // 是需要将应用信息中的“ShareByAppClient”设置为true,此字段默认值为false。
  286. //
  287. // iOS描述:
  288. // 配置好consumerKey 和 secret, 如果为沙箱模式,请对参数isSandBox传入非0值,否则传入0.
  289. //在以下的配置里,安卓请选择Evernote配置。
  290. //iOS则需要区分,国内版为Evernote,国际版EvernoteInternational。
  291. public class Evernote : DevInfo
  292. {
  293. #if UNITY_ANDROID
  294. public string SortId = "17";
  295. public const int type = (int) PlatformType.Evernote;
  296. public enum HostType{sandbox = 1, china = 2, product = 3}
  297. public string ConsumerKey = "sharesdk-7807";
  298. public string ConsumerSecret = "d05bf86993836004";
  299. public bool ShareByAppClient = false;
  300. #elif UNITY_IPHONE
  301. public const int type = (int) PlatformType.Evernote;
  302. public string consumer_key = "sharesdk-7807";
  303. public string consumer_secret = "d05bf86993836004";
  304. public int isSandBox = 1; //"0" mean NO with SandBox, !0 mean YES with SandBox
  305. #endif
  306. }
  307. public class EvernoteInternational : DevInfo
  308. {
  309. #if UNITY_ANDROID
  310. //ANDROID do not support this platform
  311. #elif UNITY_IPHONE
  312. public const int type = (int)PlatformType.EvernoteInternational;
  313. public string consumer_key = "sharesdk-7807";
  314. public string consumer_secret = "d05bf86993836004";
  315. public int isSandBox = 0; //"0" mean NO with SandBox, !0 mean YES with SandBox
  316. #endif
  317. }
  318. public class LinkedIn : DevInfo
  319. {
  320. #if UNITY_ANDROID
  321. public string SortId = "18";
  322. public const int type = (int) PlatformType.LinkedIn;
  323. public string ApiKey = "ejo5ibkye3vo";
  324. public string SecretKey = "cC7B2jpxITqPLZ5M";
  325. public string RedirectUrl = "http://sharesdk.cn";
  326. #elif UNITY_IPHONE
  327. public const int type = (int) PlatformType.LinkedIn;
  328. public string api_key = "ejo5ibkye3vo";
  329. public string secret_key = "cC7B2jpxITqPLZ5M";
  330. public string redirect_url = "http://sharesdk.cn";
  331. #endif
  332. }
  333. public class GooglePlus : DevInfo
  334. {
  335. #if UNITY_ANDROID
  336. public string SortId = "19";
  337. public const int type = (int) PlatformType.GooglePlus;
  338. //public string ClientID = ShareSDK.GoogleAppKey;
  339. public string RedirectUrl = "http://localhost";
  340. public bool ShareByAppClient = false;
  341. #elif UNITY_IPHONE
  342. public const int type = (int) PlatformType.GooglePlus;
  343. //public string client_id = ShareSDK.GoogleAppKey;
  344. //public string client_secret = ShareSDK.GoogleAppSecrete;
  345. public string redirect_uri = "http://localhost";
  346. public string auth_type = "both"; //can pass "both","sso",or "web"
  347. #endif
  348. }
  349. public class FourSquare : DevInfo
  350. {
  351. #if UNITY_ANDROID
  352. public string SortId = "20";
  353. public const int type = (int) PlatformType.Foursquare;
  354. public string ClientID = "G0ZI20FM30SJAJTX2RIBGD05QV1NE2KVIM2SPXML2XUJNXEU";
  355. public string ClientSecret = "3XHQNSMMHIFBYOLWEPONNV4DOTCDBQH0AEMVGCBG0MZ32XNU";
  356. public string RedirectUrl = "http://www.sharesdk.cn";
  357. #elif UNITY_IPHONE
  358. //iOS do not support this platform
  359. #endif
  360. }
  361. public class Pinterest : DevInfo
  362. {
  363. #if UNITY_ANDROID
  364. public string SortId = "21";
  365. public const int type = (int) PlatformType.Pinterest;
  366. public string ClientId = "1432928";
  367. #elif UNITY_IPHONE
  368. public const int type = (int) PlatformType.Pinterest;
  369. public string client_id = "4797078908495202393";
  370. #endif
  371. }
  372. public class Flickr : DevInfo
  373. {
  374. #if UNITY_ANDROID
  375. public string SortId = "22";
  376. public const int type = (int) PlatformType.Flickr;
  377. public string ApiKey = "33d833ee6b6fca49943363282dd313dd";
  378. public string ApiSecret = "3a2c5b42a8fbb8bb";
  379. public string RedirectUri = "http://www.sharesdk.cn";
  380. #elif UNITY_IPHONE
  381. public const int type = (int) PlatformType.Flickr;
  382. public string api_key = "33d833ee6b6fca49943363282dd313dd";
  383. public string api_secret = "3a2c5b42a8fbb8bb";
  384. #endif
  385. }
  386. public class Tumblr : DevInfo
  387. {
  388. #if UNITY_ANDROID
  389. public string SortId = "23";
  390. public const int type = (int) PlatformType.Tumblr;
  391. public string OAuthConsumerKey = "2QUXqO9fcgGdtGG1FcvML6ZunIQzAEL8xY6hIaxdJnDti2DYwM";
  392. public string SecretKey = "3Rt0sPFj7u2g39mEVB3IBpOzKnM3JnTtxX2bao2JKk4VV1gtNo";
  393. public string CallbackUrl = "http://sharesdk.cn";
  394. #elif UNITY_IPHONE
  395. public const int type = (int) PlatformType.Tumblr;
  396. public string consumer_key = "2QUXqO9fcgGdtGG1FcvML6ZunIQzAEL8xY6hIaxdJnDti2DYwM";
  397. public string consumer_secret = "3Rt0sPFj7u2g39mEVB3IBpOzKnM3JnTtxX2bao2JKk4VV1gtNo";
  398. public string callback_url = "http://sharesdk.cn";
  399. #endif
  400. }
  401. public class Dropbox : DevInfo
  402. {
  403. #if UNITY_ANDROID
  404. public string SortId = "24";
  405. public const int type = (int) PlatformType.Dropbox;
  406. public string AppKey = "7janx53ilz11gbs";
  407. public string AppSecret = "c1hpx5fz6tzkm32";
  408. #elif UNITY_IPHONE
  409. public const int type = (int) PlatformType.Dropbox;
  410. public string app_key = "i5vw2mex1zcgjcj";
  411. public string app_secret = "3i9xifsgb4omr0s";
  412. public string oauth_callback = "https://www.sharesdk.cn";
  413. #endif
  414. }
  415. public class VKontakte : DevInfo
  416. {
  417. #if UNITY_ANDROID
  418. public string SortId = "25";
  419. public const int type = (int) PlatformType.VKontakte;
  420. public string ApplicationId = "3921561";
  421. #elif UNITY_IPHONE
  422. public const int type = (int) PlatformType.VKontakte;
  423. public string application_id = "3921561";
  424. public string secret_key = "6Qf883ukLDyz4OBepYF1";
  425. public string auth_type = "both";
  426. #endif
  427. }
  428. public class Instagram : DevInfo
  429. {
  430. #if UNITY_ANDROID
  431. public string SortId = "26";
  432. public const int type = (int) PlatformType.Instagram;
  433. public string ClientId = "ff68e3216b4f4f989121aa1c2962d058";
  434. public string ClientSecret = "1b2e82f110264869b3505c3fe34e31a1";
  435. public string RedirectUri = "http://sharesdk.cn";
  436. #elif UNITY_IPHONE
  437. public const int type = (int) PlatformType.Instagram;
  438. public string client_id = "ff68e3216b4f4f989121aa1c2962d058";
  439. public string client_secret = "1b2e82f110264869b3505c3fe34e31a1";
  440. public string redirect_uri = "http://sharesdk.cn";
  441. #endif
  442. }
  443. //Yixin易信和YixinMoments易信朋友圈的appid是一样的;
  444. //注意:开发者不能用我们这两个平台的appid,否则分享不了
  445. //易信测试的时候需要先签名打包出apk,
  446. //sample测试易信,要先签名打包,keystore在sample项目中,密码123456
  447. //BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
  448. //审核的应用也可以执行分享,但是仅限于分享文字或图片,不能分享其他类型,
  449. //默认值为false。
  450. public class Yixin : DevInfo
  451. {
  452. #if UNITY_ANDROID
  453. public string SortId = "27";
  454. public const int type = (int) PlatformType.YiXinSession;
  455. public string AppId = "yx0d9a9f9088ea44d78680f3274da1765f";
  456. public bool BypassApproval = true;
  457. #elif UNITY_IPHONE
  458. public const int type = (int) PlatformType.YiXinSession;
  459. public string app_id = "yx0d9a9f9088ea44d78680f3274da1765f";
  460. public string app_secret = "1a5bd421ae089c3";
  461. public string redirect_uri = "https://open.yixin.im/resource/oauth2_callback.html";
  462. public string auth_type = "both"; //can pass "both","sso",or "web"
  463. #endif
  464. }
  465. public class YixinMoments : DevInfo
  466. {
  467. #if UNITY_ANDROID
  468. public string SortId = "28";
  469. public const int type = (int) PlatformType.YiXinTimeline;
  470. public string AppId = "yx0d9a9f9088ea44d78680f3274da1765f";
  471. public bool BypassApproval = true;
  472. #elif UNITY_IPHONE
  473. public const int type = (int) PlatformType.YiXinTimeline;
  474. public string app_id = "yx0d9a9f9088ea44d78680f3274da1765f";
  475. public string app_secret = "1a5bd421ae089c3";
  476. public string redirect_uri = "https://open.yixin.im/resource/oauth2_callback.html";
  477. public string auth_type = "both"; //can pass "both","sso",or "web"
  478. #endif
  479. }
  480. public class Mingdao : DevInfo
  481. {
  482. #if UNITY_ANDROID
  483. public string SortId = "29";
  484. public const int type = (int) PlatformType.MingDao;
  485. public string AppKey = "EEEE9578D1D431D3215D8C21BF5357E3";
  486. public string AppSecret = "5EDE59F37B3EFA8F65EEFB9976A4E933";
  487. public string RedirectUri = "http://sharesdk.cn";
  488. #elif UNITY_IPHONE
  489. public const int type = (int) PlatformType.MingDao;
  490. public string app_key = "EEEE9578D1D431D3215D8C21BF5357E3";
  491. public string app_secret = "5EDE59F37B3EFA8F65EEFB9976A4E933";
  492. public string redirect_uri = "http://sharesdk.cn";
  493. #endif
  494. }
  495. public class Line : DevInfo
  496. {
  497. #if UNITY_ANDROID
  498. public string SortId = "30";
  499. public const int type = (int) PlatformType.Line;
  500. #elif UNITY_IPHONE
  501. public const int type = (int) PlatformType.Line;
  502. #endif
  503. }
  504. public class KakaoTalk : DevInfo
  505. {
  506. #if UNITY_ANDROID
  507. public string SortId = "31";
  508. public const int type = (int) PlatformType.KakaoTalk;
  509. #elif UNITY_IPHONE
  510. public const int type = (int) PlatformType.KakaoTalk;
  511. public string app_key = "48d3f524e4a636b08d81b3ceb50f1003";
  512. public string rest_api_key = "ac360fa50b5002637590d24108e6cb10";
  513. public string redirect_uri = "http://www.mob.com/oauth";
  514. public string auth_type = "both"; //can pass "both","sso",or "web"
  515. #endif
  516. }
  517. public class KakaoStory : DevInfo
  518. {
  519. #if UNITY_ANDROID
  520. public string SortId = "32";
  521. public const int type = (int) PlatformType.KakaoStory;
  522. #elif UNITY_IPHONE
  523. public const int type = (int) PlatformType.KakaoStory;
  524. public string app_key = "48d3f524e4a636b08d81b3ceb50f1003";
  525. public string rest_api_key = "ac360fa50b5002637590d24108e6cb10";
  526. public string redirect_uri = "http://www.mob.com/oauth";
  527. public string auth_type = "both"; //can pass "both","sso",or "web"
  528. #endif
  529. }
  530. public class WhatsApp : DevInfo
  531. {
  532. #if UNITY_ANDROID
  533. public string SortId = "33";
  534. public const int type = (int) PlatformType.WhatsApp;
  535. #elif UNITY_IPHONE
  536. public const int type = (int) PlatformType.WhatsApp;
  537. #endif
  538. }
  539. public class Bluetooth : DevInfo
  540. {
  541. #if UNITY_ANDROID
  542. public string SortId = "34";
  543. public const int type = (int) PlatformType.Bluetooth;
  544. #elif UNITY_IPHONE
  545. public const int type = (int) PlatformType.Bluetooth;
  546. #endif
  547. }
  548. public class Pocket : DevInfo
  549. {
  550. #if UNITY_ANDROID
  551. public string SortId = "35";
  552. public const int type = (int) PlatformType.Pocket;
  553. public string ConsumerKey = "32741-389c565043c49947ba7edf05";
  554. #elif UNITY_IPHONE
  555. public const int type = (int) PlatformType.Pocket;
  556. public string consumer_key = "11496-de7c8c5eb25b2c9fcdc2b627";
  557. public string redirect_uri = "pocketapp1234";
  558. public string auth_type = "both"; //can pass "both","sso",or "web"
  559. #endif
  560. }
  561. public class Instapaper : DevInfo
  562. {
  563. #if UNITY_ANDROID
  564. public string SortId = "36";
  565. public const int type = (int) PlatformType.Instapaper;
  566. public string ConsumerKey = "4rDJORmcOcSAZL1YpqGHRI605xUvrLbOhkJ07yO0wWrYrc61FA";
  567. public string ConsumerSecret = "GNr1GespOQbrm8nvd7rlUsyRQsIo3boIbMguAl9gfpdL0aKZWe";
  568. #elif UNITY_IPHONE
  569. public const int type = (int) PlatformType.Instapaper;
  570. public string consumer_key = "4rDJORmcOcSAZL1YpqGHRI605xUvrLbOhkJ07yO0wWrYrc61FA";
  571. public string consumer_secret = "GNr1GespOQbrm8nvd7rlUsyRQsIo3boIbMguAl9gfpdL0aKZWe";
  572. #endif
  573. }
  574. public class FacebookMessenger : DevInfo
  575. {
  576. #if UNITY_ANDROID
  577. public string SortId = "37";
  578. public const int type = (int) PlatformType.FacebookMessenger;
  579. public string ConsumerKey = "107704292745179";
  580. public string ConsumerSecret = "38053202e1a5fe26c80c753071f0b573";
  581. public string RedirectUrl = "http://mob.com";
  582. #elif UNITY_IPHONE
  583. public const int type = (int) PlatformType.FacebookMessenger;
  584. #endif
  585. }
  586. public class Copy : DevInfo
  587. {
  588. #if UNITY_ANDROID
  589. public const int type = (int) PlatformType.Copy;
  590. #elif UNITY_IPHONE
  591. public const int type = (int) PlatformType.Copy;
  592. #endif
  593. }
  594. public class YixinSeries : DevInfo
  595. {
  596. #if UNITY_ANDROID
  597. //for android,please set the configuraion in class "Yixin" or class "YixinMoments"
  598. //(Android do not support YixinFavorites)
  599. //对于安卓端,Yixin或YixinMoments中配置相关信息(安卓端不支持易信收藏YixinFavorites)
  600. #elif UNITY_IPHONE
  601. public const int type = (int) PlatformType.YixinPlatform;
  602. public string app_id = "yx0d9a9f9088ea44d78680f3274da1765f";
  603. public string app_secret = "1a5bd421ae089c3";
  604. public string redirect_uri = "https://open.yixin.im/resource/oauth2_callback.html";
  605. public string auth_type = "both"; //can pass "both","sso",or "web"
  606. #endif
  607. }
  608. public class YixinFavorites : DevInfo
  609. {
  610. #if UNITY_ANDROID
  611. //for android,please set the configuraion in class "Yixin" or class "YixinMoments"
  612. //(Android do not support YixinFavorites)
  613. //对于安卓端,Yixin或YixinMoments中配置相关信息(安卓端不支持易信收藏YixinFavorites)
  614. #elif UNITY_IPHONE
  615. public const int type = (int) PlatformType.YiXinFav;
  616. public string app_id = "yx0d9a9f9088ea44d78680f3274da1765f";
  617. public string app_secret = "1a5bd421ae089c3";
  618. public string redirect_uri = "https://open.yixin.im/resource/oauth2_callback.html";
  619. public string auth_type = "both"; //can pass "both","sso",or "web"
  620. #endif
  621. }
  622. public class Alipay : DevInfo
  623. {
  624. #if UNITY_ANDROID
  625. public string SortId = "50";
  626. public const int type = (int) PlatformType.Alipay;
  627. public string AppId = "2015072400185895";
  628. #elif UNITY_IPHONE
  629. public const int type = (int) PlatformType.Alipay;
  630. public string app_id = "2015072400185895";
  631. #endif
  632. }
  633. public class AlipayMoments : DevInfo
  634. {
  635. #if UNITY_ANDROID
  636. public string SortId = "51";
  637. public const int type = (int) PlatformType.AlipayMoments;
  638. public string AppId = "2015072400185895";
  639. #elif UNITY_IPHONE
  640. public const int type = (int) PlatformType.AlipayMoments;
  641. public string app_id = "2015072400185895";
  642. #endif
  643. }
  644. public class Dingding : DevInfo
  645. {
  646. #if UNITY_ANDROID
  647. //安卓暂不支持,请留意更新
  648. public const int type = (int) PlatformType.Dingding;
  649. #elif UNITY_IPHONE
  650. public const int type = (int) PlatformType.Dingding;
  651. public string app_id = "dingoanxyrpiscaovl4qlw";
  652. #endif
  653. }
  654. public class WechatSeries : DevInfo
  655. {
  656. #if UNITY_ANDROID
  657. //for android,please set the configuraion in class "Wechat" ,class "WechatMoments" or class "WechatFavorite"
  658. //对于安卓端,请在类Wechat,WechatMoments或WechatFavorite中配置相关信息↑
  659. #elif UNITY_IPHONE
  660. public const int type = (int) PlatformType.WechatPlatform;
  661. public string app_id = "wx4868b35061f87885";
  662. public string app_secret = "64020361b8ec4c99936c0e3999a9f249";
  663. #endif
  664. }
  665. public class QQSeries : DevInfo
  666. {
  667. #if UNITY_ANDROID
  668. //for android,please set the configuraion in class "QQ" and class "QZone"
  669. //对于安卓端,请在类QQ或QZone中配置相关信息↑
  670. #elif UNITY_IPHONE
  671. public const int type = (int) PlatformType.QQPlatform;
  672. public string app_id = "100371282";
  673. public string app_key = "aed9b0303e3ed1e27bae87c33761161d";
  674. public string auth_type = "both"; //can pass "both","sso",or "web"
  675. #endif
  676. }
  677. public class KakaoSeries : DevInfo
  678. {
  679. #if UNITY_ANDROID
  680. //for android,please set the configuraion in class "KakaoTalk" and class "KakaoStory"
  681. //对于安卓端,请在类KakaoTalk或KakaoStory中配置相关信息
  682. #elif UNITY_IPHONE
  683. public const int type = (int) PlatformType.KakaoPlatform;
  684. public string app_key = "48d3f524e4a636b08d81b3ceb50f1003";
  685. public string rest_api_key = "ac360fa50b5002637590d24108e6cb10";
  686. public string redirect_uri = "http://www.mob.com/oauth";
  687. public string auth_type = "both"; //can pass "both","sso",or "web"
  688. #endif
  689. }
  690. public class Youtube : DevInfo
  691. {
  692. #if UNITY_ANDROID
  693. public string SortId = "53";
  694. public const int type = (int) PlatformType.Youtube;
  695. public string ClientID = "370141748022-bicrnsjfiije93bvdt63dh3728m4shas.apps.googleusercontent.com";
  696. public string RedirectUrl="http://localhost";
  697. public string ShareByAppClient = "true";
  698. #elif UNITY_IPHONE
  699. public const int type = (int) PlatformType.Youtube;
  700. public string client_id = "906418427202-jinnbqal1niq4s8isbg2ofsqc5ddkcgr.apps.googleusercontent.com";
  701. public string client_secret = "";
  702. public string redirect_uri = "http://localhost";
  703. #endif
  704. }
  705. public class MeiPai : DevInfo
  706. {
  707. #if UNITY_ANDROID
  708. public string SortId = "54";
  709. public const int type = (int) PlatformType.MeiPai;
  710. public string ClientID = "1089867596";
  711. public string RedirectUrl="http://localhost";
  712. public string ShareByAppClient = "true";
  713. #elif UNITY_IPHONE
  714. public const int type = (int) PlatformType.MeiPai;
  715. public string app_key = "1089867596";
  716. #endif
  717. }
  718. }