ShareSDKDevInfo.cs 28 KB

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