123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781 |
- using UnityEngine;
- using System.Collections;
- using System;
- namespace cn.sharesdk.unity3d
- {
- public class DevInfoSet
- {
- public Facebook facebook = new Facebook();
- //public GooglePlus googlePlus = new GooglePlus();
- public SinaWeiboDevInfo sinaweibo = new SinaWeiboDevInfo();
- public QQ qq = new QQ();
- public QZone qzone = new QZone();
- //public WeChat wechat = new WeChat();
- //public WeChatMoments wechatMoments = new WeChatMoments();
- //public TencentWeiboDevInfo tencentweibo;
- //public Twitter twitter;
- //public Email email;
- //public ShortMessage shortMessage;
- //public Douban douban;
- //public Renren renren;
- //public KaiXin kaiXin;
- //public Pocket pocket;
- //public Instagram instagram;
- //public LinkedIn linkedIn;
- //public Tumblr tumblr;
- //public YouDao youDao;
- //public Flickr flickr;
- //public Evernote evernote;
- //public WhatsApp whatsApp;
- //public Line line;
- //public Dropbox dropbox;
- //public VKontakte vkontakte;
- //public Pinterest pinterest;
- //public Mingdao mingdao;
- //public KakaoTalk kakaoTalk;
- //public KakaoStory kakaoStory;
- //public WeChatFavorites wechatFavorites;
- //public Yixin yixin;
- //public YixinMoments yixinMoments;
- //public FacebookMessenger facebookMessenger;
- //public Instapaper instapaper;
- //public Alipay alipay;
- //public AlipayMoments alipayMoments;
- //public Dingding dingTalk;
- //public Youtube youtube;
- //public MeiPai meiPai;
- //#if UNITY_ANDROID
- //public FourSquare fourSquare;
- //#elif UNITY_IPHONE
- //public Copy copy;
- //public YixinFavorites yixinFavorites; //易信收藏,仅iOS端支持 [仅支持iOS端]
- //public YixinSeries yixinSeries; //iOS端易信系列, 可直接配置易信三个子平台 [仅支持iOS端]
- //public WechatSeries wechatSeries; //iOS端微信系列, 可直接配置微信三个子平台 [仅支持iOS端]
- //public QQSeries qqSeries; //iOS端QQ系列, 可直接配置QQ系列两个子平台 [仅支持iOS端]
- //public KakaoSeries kakaoSeries; //iOS端Kakao系列, 可直接配置Kakao系列两个子平台 [仅支持iOS端]
- //public EvernoteInternational evernoteInternational; //iOS配置印象笔记国内版在Evernote中配置;国际版在EvernoteInternational中配置
- ////安卓配置印象笔记国内与国际版直接在Evernote中配置
- //#endif
- }
- public class DevInfo
- {
- public bool Enable = true;
- }
- public class SinaWeiboDevInfo : DevInfo
- {
- #if UNITY_ANDROID
- public const int type = (int) PlatformType.SinaWeibo;
- public string SortId = "4";
- public string AppKey = ShareSDK.SinaAppKey;
- public string AppSecret = ShareSDK.SinaAppSecrete;
- public string RedirectUrl = "http://www.dashgame.com/";
- public bool ShareByAppClient = false;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.SinaWeibo;
- public string app_key = ShareSDK.SinaAppKey;
- public string app_secret = ShareSDK.SinaAppSecrete;
- public string redirect_uri = "http://www.dashgame.com/";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class TencentWeiboDevInfo : DevInfo
- {
- #if UNITY_ANDROID
- public const int type = (int) PlatformType.TencentWeibo;
- public string SortId = "3";
- public string AppKey = "801307650";
- public string AppSecret = "ae36f4ee3946e1cbb98d6965b0b2ff5c";
- public string RedirectUri = "http://sharesdk.cn";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.TencentWeibo;
- public string app_key = "801307650";
- public string app_secret = "ae36f4ee3946e1cbb98d6965b0b2ff5c";
- public string redirect_uri = "http://sharesdk.cn";
- #endif
- }
- public class QQ : DevInfo
- {
- #if UNITY_ANDROID
- public const int type = (int) PlatformType.QQ;
- public string SortId = "2";
- public string AppId = ShareSDK.QQAppKey;
- public string AppKey = ShareSDK.QQAppSecrete;
- public bool ShareByAppClient = true;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.QQ;
- public string app_id = ShareSDK.QQAppKey;
- public string app_key = ShareSDK.QQAppSecrete;
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class QZone : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "1";
- public const int type = (int) PlatformType.QZone;
- public string AppId = ShareSDK.QQZoneAppKey;
- public string AppKey = ShareSDK.QQZoneAppSecreteForAndroid;
- public bool ShareByAppClient = true;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.QZone;
- public string app_id = ShareSDK.QQZoneAppKey;
- public string app_key = ShareSDK.QQZoneAppSecreteForIOS;
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class WeChat : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "5";
- public const int type = (int) PlatformType.WeChat;
- //public string AppId = ShareSDK.WeChatAppKey;
- //public string AppSecret = ShareSDK.WeChatSecrete;
- public bool BypassApproval = true;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.WeChat;
- //public string app_id = ShareSDK.WeChatAppKey;
- //public string app_secret = ShareSDK.WeChatSecrete;
- #endif
- }
- public class WeChatMoments : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "6";
- public const int type = (int) PlatformType.WeChatMoments;
- //public string AppId = ShareSDK.WeChatAppKey;
- //public string AppSecret = ShareSDK.WeChatSecrete;
- public bool BypassApproval = false;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.WeChatMoments;
- //public string app_id = ShareSDK.WeChatAppKey;
- //public string app_secret = ShareSDK.WeChatSecrete;
- #endif
- }
- public class WeChatFavorites : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "7";
- public const int type = (int) PlatformType.WeChatFavorites;
- public string AppId = "wx4868b35061f87885";
- public string AppSecret = "64020361b8ec4c99936c0e3999a9f249";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.WeChatFavorites;
- public string app_id = "wx4868b35061f87885";
- public string app_secret = "64020361b8ec4c99936c0e3999a9f249";
- #endif
- }
- public class Facebook : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "8";
- public const int type = (int) PlatformType.Facebook;
- public string ConsumerKey = ShareSDK.FacebookAppKey;
- public string ConsumerSecret = ShareSDK.FacebookAppSecrete;
- public string RedirectUrl = "http://mob.com/";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Facebook;
- public string api_key = ShareSDK.FacebookAppKey;
- public string app_secret = ShareSDK.FacebookAppSecrete;
- public string auth_type = "both"; //can pass "both","sso",or "web"
- public string display_name = "ShareSDK";//如果需要使用客户端分享,必填且需与FB 后台配置一样
- #endif
- }
- public class Twitter : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "9";
- public const int type = (int) PlatformType.Twitter;
- public string ConsumerKey = "LRBM0H75rWrU9gNHvlEAA2aOy";
- public string ConsumerSecret = "gbeWsZvA9ELJSdoBzJ5oLKX0TU09UOwrzdGfo9Tg7DjyGuMe8G";
- public string CallbackUrl = "http://mob.com";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Twitter;
- public string consumer_key = "LRBM0H75rWrU9gNHvlEAA2aOy";
- public string consumer_secret = "gbeWsZvA9ELJSdoBzJ5oLKX0TU09UOwrzdGfo9Tg7DjyGuMe8G";
- public string redirect_uri = "http://mob.com";
- #endif
- }
- public class Renren : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "10";
- public const int type = (int) PlatformType.Renren;
- public string AppId = "226427";
- public string ApiKey = "fc5b8aed373c4c27a05b712acba0f8c3";
- public string SecretKey = "f29df781abdd4f49beca5a2194676ca4";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Renren;
- public string app_id = "226427";
- public string app_key = "fc5b8aed373c4c27a05b712acba0f8c3";
- public string secret_key = "f29df781abdd4f49beca5a2194676ca4";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class KaiXin : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "11";
- public const int type = (int) PlatformType.Kaixin;
- public string AppKey = "358443394194887cee81ff5890870c7c";
- public string AppSecret = "da32179d859c016169f66d90b6db2a23";
- public string RedirectUri = "http://www.sharesdk.cn";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Kaixin;
- public string api_key = "358443394194887cee81ff5890870c7c";
- public string secret_key = "da32179d859c016169f66d90b6db2a23";
- public string redirect_uri = "http://www.sharesdk.cn";
- #endif
- }
- public class Email : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "12";
- public const int type = (int) PlatformType.Mail;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Mail;
- #endif
- }
- public class ShortMessage : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "13";
- public const int type = (int) PlatformType.SMS;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.SMS;
- #endif
- }
- public class Douban : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "14";
- public const int type = (int) PlatformType.DouBan;
- public string ApiKey = "02e2cbe5ca06de5908a863b15e149b0b";
- public string Secret = "9f1e7b4f71304f2f";
- public string RedirectUri = "http://www.sharesdk.cn";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.DouBan;
- public string api_key = "02e2cbe5ca06de5908a863b15e149b0b";
- public string secret = "9f1e7b4f71304f2f";
- public string redirect_uri = "http://www.sharesdk.cn";
- #endif
- }
- public class YouDao : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "15";
- public const int type = (int) PlatformType.YouDaoNote;
- public string HostType = "product";
- public string ConsumerKey = "dcde25dca105bcc36884ed4534dab940";
- public string ConsumerSecret = "d98217b4020e7f1874263795f44838fe";
- public string RedirectUri = "http://www.sharesdk.cn/";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.YouDaoNote;
- public string consumer_key = "dcde25dca105bcc36884ed4534dab940";
- public string consumer_secret = "d98217b4020e7f1874263795f44838fe";
- public string oauth_callback = "http://www.sharesdk.cn/";
- #endif
- }
- // 安卓描述:
- // 在中国大陆,印象笔记有两个服务器,一个是沙箱(sandbox),一个是生产服务器(china)。
- // 一般你注册应用,它会先让你使用sandbox,当你完成测试以后,可以到
- // http://dev.yinxiang.com/support/上激活你的ConsumerKey,激活成功后,修改HostType
- // 为china就好了。至于如果您申请的是国际版的印象笔记(Evernote),则其生产服务器类型为
- // “product”。
- // 如果目标设备上已经安装了印象笔记客户端,ShareSDK允许应用调用本地API来完成分享,但
- // 是需要将应用信息中的“ShareByAppClient”设置为true,此字段默认值为false。
- //
- // iOS描述:
- // 配置好consumerKey 和 secret, 如果为沙箱模式,请对参数isSandBox传入非0值,否则传入0.
- //在以下的配置里,安卓请选择Evernote配置。
- //iOS则需要区分,国内版为Evernote,国际版EvernoteInternational。
- public class Evernote : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "17";
- public const int type = (int) PlatformType.Evernote;
- public enum HostType{sandbox = 1, china = 2, product = 3}
- public string ConsumerKey = "sharesdk-7807";
- public string ConsumerSecret = "d05bf86993836004";
- public bool ShareByAppClient = false;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Evernote;
- public string consumer_key = "sharesdk-7807";
- public string consumer_secret = "d05bf86993836004";
- public int isSandBox = 1; //"0" mean NO with SandBox, !0 mean YES with SandBox
- #endif
- }
- public class EvernoteInternational : DevInfo
- {
- #if UNITY_ANDROID
- //ANDROID do not support this platform
- #elif UNITY_IPHONE
- public const int type = (int)PlatformType.EvernoteInternational;
- public string consumer_key = "sharesdk-7807";
- public string consumer_secret = "d05bf86993836004";
- public int isSandBox = 0; //"0" mean NO with SandBox, !0 mean YES with SandBox
- #endif
- }
- public class LinkedIn : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "18";
- public const int type = (int) PlatformType.LinkedIn;
- public string ApiKey = "ejo5ibkye3vo";
- public string SecretKey = "cC7B2jpxITqPLZ5M";
- public string RedirectUrl = "http://sharesdk.cn";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.LinkedIn;
- public string api_key = "ejo5ibkye3vo";
- public string secret_key = "cC7B2jpxITqPLZ5M";
- public string redirect_url = "http://sharesdk.cn";
- #endif
- }
- public class GooglePlus : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "19";
- public const int type = (int) PlatformType.GooglePlus;
- //public string ClientID = ShareSDK.GoogleAppKey;
- public string RedirectUrl = "http://localhost";
- public bool ShareByAppClient = false;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.GooglePlus;
- //public string client_id = ShareSDK.GoogleAppKey;
- //public string client_secret = ShareSDK.GoogleAppSecrete;
- public string redirect_uri = "http://localhost";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class FourSquare : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "20";
- public const int type = (int) PlatformType.Foursquare;
- public string ClientID = "G0ZI20FM30SJAJTX2RIBGD05QV1NE2KVIM2SPXML2XUJNXEU";
- public string ClientSecret = "3XHQNSMMHIFBYOLWEPONNV4DOTCDBQH0AEMVGCBG0MZ32XNU";
- public string RedirectUrl = "http://www.sharesdk.cn";
- #elif UNITY_IPHONE
- //iOS do not support this platform
- #endif
- }
- public class Pinterest : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "21";
- public const int type = (int) PlatformType.Pinterest;
- public string ClientId = "1432928";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Pinterest;
- public string client_id = "4797078908495202393";
- #endif
- }
- public class Flickr : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "22";
- public const int type = (int) PlatformType.Flickr;
- public string ApiKey = "33d833ee6b6fca49943363282dd313dd";
- public string ApiSecret = "3a2c5b42a8fbb8bb";
- public string RedirectUri = "http://www.sharesdk.cn";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Flickr;
- public string api_key = "33d833ee6b6fca49943363282dd313dd";
- public string api_secret = "3a2c5b42a8fbb8bb";
- #endif
- }
- public class Tumblr : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "23";
- public const int type = (int) PlatformType.Tumblr;
- public string OAuthConsumerKey = "2QUXqO9fcgGdtGG1FcvML6ZunIQzAEL8xY6hIaxdJnDti2DYwM";
- public string SecretKey = "3Rt0sPFj7u2g39mEVB3IBpOzKnM3JnTtxX2bao2JKk4VV1gtNo";
- public string CallbackUrl = "http://sharesdk.cn";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Tumblr;
- public string consumer_key = "2QUXqO9fcgGdtGG1FcvML6ZunIQzAEL8xY6hIaxdJnDti2DYwM";
- public string consumer_secret = "3Rt0sPFj7u2g39mEVB3IBpOzKnM3JnTtxX2bao2JKk4VV1gtNo";
- public string callback_url = "http://sharesdk.cn";
- #endif
- }
- public class Dropbox : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "24";
- public const int type = (int) PlatformType.Dropbox;
- public string AppKey = "7janx53ilz11gbs";
- public string AppSecret = "c1hpx5fz6tzkm32";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Dropbox;
- public string app_key = "i5vw2mex1zcgjcj";
- public string app_secret = "3i9xifsgb4omr0s";
- public string oauth_callback = "https://www.sharesdk.cn";
- #endif
- }
-
- public class VKontakte : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "25";
- public const int type = (int) PlatformType.VKontakte;
- public string ApplicationId = "3921561";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.VKontakte;
- public string application_id = "3921561";
- public string secret_key = "6Qf883ukLDyz4OBepYF1";
- public string auth_type = "both";
- #endif
- }
- public class Instagram : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "26";
- public const int type = (int) PlatformType.Instagram;
- public string ClientId = "ff68e3216b4f4f989121aa1c2962d058";
- public string ClientSecret = "1b2e82f110264869b3505c3fe34e31a1";
- public string RedirectUri = "http://sharesdk.cn";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Instagram;
- public string client_id = "ff68e3216b4f4f989121aa1c2962d058";
- public string client_secret = "1b2e82f110264869b3505c3fe34e31a1";
- public string redirect_uri = "http://sharesdk.cn";
- #endif
- }
- //Yixin易信和YixinMoments易信朋友圈的appid是一样的;
- //注意:开发者不能用我们这两个平台的appid,否则分享不了
- //易信测试的时候需要先签名打包出apk,
- //sample测试易信,要先签名打包,keystore在sample项目中,密码123456
- //BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过
- //审核的应用也可以执行分享,但是仅限于分享文字或图片,不能分享其他类型,
- //默认值为false。
- public class Yixin : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "27";
- public const int type = (int) PlatformType.YiXinSession;
- public string AppId = "yx0d9a9f9088ea44d78680f3274da1765f";
- public bool BypassApproval = true;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.YiXinSession;
- public string app_id = "yx0d9a9f9088ea44d78680f3274da1765f";
- public string app_secret = "1a5bd421ae089c3";
- public string redirect_uri = "https://open.yixin.im/resource/oauth2_callback.html";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class YixinMoments : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "28";
- public const int type = (int) PlatformType.YiXinTimeline;
- public string AppId = "yx0d9a9f9088ea44d78680f3274da1765f";
- public bool BypassApproval = true;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.YiXinTimeline;
- public string app_id = "yx0d9a9f9088ea44d78680f3274da1765f";
- public string app_secret = "1a5bd421ae089c3";
- public string redirect_uri = "https://open.yixin.im/resource/oauth2_callback.html";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class Mingdao : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "29";
- public const int type = (int) PlatformType.MingDao;
- public string AppKey = "EEEE9578D1D431D3215D8C21BF5357E3";
- public string AppSecret = "5EDE59F37B3EFA8F65EEFB9976A4E933";
- public string RedirectUri = "http://sharesdk.cn";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.MingDao;
- public string app_key = "EEEE9578D1D431D3215D8C21BF5357E3";
- public string app_secret = "5EDE59F37B3EFA8F65EEFB9976A4E933";
- public string redirect_uri = "http://sharesdk.cn";
- #endif
- }
- public class Line : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "30";
- public const int type = (int) PlatformType.Line;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Line;
- #endif
- }
- public class KakaoTalk : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "31";
- public const int type = (int) PlatformType.KakaoTalk;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.KakaoTalk;
- public string app_key = "48d3f524e4a636b08d81b3ceb50f1003";
- public string rest_api_key = "ac360fa50b5002637590d24108e6cb10";
- public string redirect_uri = "http://www.mob.com/oauth";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
-
- public class KakaoStory : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "32";
- public const int type = (int) PlatformType.KakaoStory;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.KakaoStory;
- public string app_key = "48d3f524e4a636b08d81b3ceb50f1003";
- public string rest_api_key = "ac360fa50b5002637590d24108e6cb10";
- public string redirect_uri = "http://www.mob.com/oauth";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
-
- public class WhatsApp : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "33";
- public const int type = (int) PlatformType.WhatsApp;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.WhatsApp;
- #endif
- }
-
- public class Bluetooth : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "34";
- public const int type = (int) PlatformType.Bluetooth;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Bluetooth;
- #endif
- }
- public class Pocket : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "35";
- public const int type = (int) PlatformType.Pocket;
- public string ConsumerKey = "32741-389c565043c49947ba7edf05";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Pocket;
- public string consumer_key = "11496-de7c8c5eb25b2c9fcdc2b627";
- public string redirect_uri = "pocketapp1234";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class Instapaper : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "36";
- public const int type = (int) PlatformType.Instapaper;
- public string ConsumerKey = "4rDJORmcOcSAZL1YpqGHRI605xUvrLbOhkJ07yO0wWrYrc61FA";
- public string ConsumerSecret = "GNr1GespOQbrm8nvd7rlUsyRQsIo3boIbMguAl9gfpdL0aKZWe";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Instapaper;
- public string consumer_key = "4rDJORmcOcSAZL1YpqGHRI605xUvrLbOhkJ07yO0wWrYrc61FA";
- public string consumer_secret = "GNr1GespOQbrm8nvd7rlUsyRQsIo3boIbMguAl9gfpdL0aKZWe";
- #endif
- }
- public class FacebookMessenger : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "37";
- public const int type = (int) PlatformType.FacebookMessenger;
- public string ConsumerKey = "107704292745179";
- public string ConsumerSecret = "38053202e1a5fe26c80c753071f0b573";
- public string RedirectUrl = "http://mob.com";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.FacebookMessenger;
- #endif
- }
- public class Copy : DevInfo
- {
- #if UNITY_ANDROID
- public const int type = (int) PlatformType.Copy;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Copy;
- #endif
- }
- public class YixinSeries : DevInfo
- {
- #if UNITY_ANDROID
- //for android,please set the configuraion in class "Yixin" or class "YixinMoments"
- //(Android do not support YixinFavorites)
- //对于安卓端,Yixin或YixinMoments中配置相关信息(安卓端不支持易信收藏YixinFavorites)
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.YixinPlatform;
- public string app_id = "yx0d9a9f9088ea44d78680f3274da1765f";
- public string app_secret = "1a5bd421ae089c3";
- public string redirect_uri = "https://open.yixin.im/resource/oauth2_callback.html";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class YixinFavorites : DevInfo
- {
- #if UNITY_ANDROID
- //for android,please set the configuraion in class "Yixin" or class "YixinMoments"
- //(Android do not support YixinFavorites)
- //对于安卓端,Yixin或YixinMoments中配置相关信息(安卓端不支持易信收藏YixinFavorites)
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.YiXinFav;
- public string app_id = "yx0d9a9f9088ea44d78680f3274da1765f";
- public string app_secret = "1a5bd421ae089c3";
- public string redirect_uri = "https://open.yixin.im/resource/oauth2_callback.html";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
-
- public class Alipay : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "50";
- public const int type = (int) PlatformType.Alipay;
- public string AppId = "2015072400185895";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Alipay;
- public string app_id = "2015072400185895";
- #endif
- }
- public class AlipayMoments : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "51";
- public const int type = (int) PlatformType.AlipayMoments;
- public string AppId = "2015072400185895";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.AlipayMoments;
- public string app_id = "2015072400185895";
- #endif
- }
- public class Dingding : DevInfo
- {
- #if UNITY_ANDROID
- //安卓暂不支持,请留意更新
- public const int type = (int) PlatformType.Dingding;
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Dingding;
- public string app_id = "dingoanxyrpiscaovl4qlw";
- #endif
- }
- public class WechatSeries : DevInfo
- {
- #if UNITY_ANDROID
- //for android,please set the configuraion in class "Wechat" ,class "WechatMoments" or class "WechatFavorite"
- //对于安卓端,请在类Wechat,WechatMoments或WechatFavorite中配置相关信息↑
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.WechatPlatform;
- public string app_id = "wx4868b35061f87885";
- public string app_secret = "64020361b8ec4c99936c0e3999a9f249";
- #endif
- }
- public class QQSeries : DevInfo
- {
- #if UNITY_ANDROID
- //for android,please set the configuraion in class "QQ" and class "QZone"
- //对于安卓端,请在类QQ或QZone中配置相关信息↑
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.QQPlatform;
- public string app_id = "100371282";
- public string app_key = "aed9b0303e3ed1e27bae87c33761161d";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class KakaoSeries : DevInfo
- {
- #if UNITY_ANDROID
- //for android,please set the configuraion in class "KakaoTalk" and class "KakaoStory"
- //对于安卓端,请在类KakaoTalk或KakaoStory中配置相关信息
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.KakaoPlatform;
- public string app_key = "48d3f524e4a636b08d81b3ceb50f1003";
- public string rest_api_key = "ac360fa50b5002637590d24108e6cb10";
- public string redirect_uri = "http://www.mob.com/oauth";
- public string auth_type = "both"; //can pass "both","sso",or "web"
- #endif
- }
- public class Youtube : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "53";
- public const int type = (int) PlatformType.Youtube;
- public string ClientID = "370141748022-bicrnsjfiije93bvdt63dh3728m4shas.apps.googleusercontent.com";
- public string RedirectUrl="http://localhost";
- public string ShareByAppClient = "true";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.Youtube;
- public string client_id = "906418427202-jinnbqal1niq4s8isbg2ofsqc5ddkcgr.apps.googleusercontent.com";
- public string client_secret = "";
- public string redirect_uri = "http://localhost";
- #endif
- }
- public class MeiPai : DevInfo
- {
- #if UNITY_ANDROID
- public string SortId = "54";
- public const int type = (int) PlatformType.MeiPai;
- public string ClientID = "1089867596";
- public string RedirectUrl="http://localhost";
- public string ShareByAppClient = "true";
- #elif UNITY_IPHONE
- public const int type = (int) PlatformType.MeiPai;
- public string app_key = "1089867596";
- #endif
- }
- }
|