SocialWorker
Inheritance: UnityEngine.MonoBehaviour
Exemple #1
0
        /// <summary>
        /// Line投稿。Lineはメッセージと画像の同時投稿は行えないことに注意。
        /// </summary>
        public void OnPostLine()
        {
            string message   = "message";
            string imagePath = Application.persistentDataPath + "/image" + ExtensionImage;

            SocialWorker.PostLine(message, imagePath, OnResult);
//			SocialWorker.PostLine(message, "", OnResult);
//			SocialWorker.PostLine("", imagePath, OnResult);
        }
Exemple #2
0
        /// <summary>
        /// アプリ選択式での投稿
        /// </summary>
        public void OnCreateChooser()
        {
            string message   = "message";
            string imagePath = Application.persistentDataPath + "/image" + ExtensionImage;

            SocialWorker.CreateChooser(message, imagePath, OnResult);
//			SocialWorker.CreateChooser(message, "", OnResult);
//			SocialWorker.CreateChooser("", imagePath, OnResult);
        }
Exemple #3
0
        /// <summary>
        /// Twitter投稿
        /// </summary>
        public void OnPostTwitter()
        {
            string message   = "message";
            string url       = "http://yedo-factory.co.jp/";
            string imagePath = Application.persistentDataPath + "/image" + ExtensionImage;

            SocialWorker.PostTwitter(message, url, imagePath, OnResult);
//			SocialWorker.PostTwitter(message, "", OnResult);
//			SocialWorker.PostTwitter("", imagePath, OnResult);
        }
Exemple #4
0
        /// <summary>
        /// メール投稿
        /// </summary>
        public void OnPostMail()
        {
            string[] to        = new string[] { "*****@*****.**" };
            string[] cc        = new string[] { "*****@*****.**" };
            string[] bcc       = new string[] { "*****@*****.**" };
            string   subject   = "subject";
            string   message   = "message";
            string   imagePath = Application.persistentDataPath + "/image" + ExtensionImage;

            SocialWorker.PostMail(to, cc, bcc, subject, message, imagePath, OnResult);
//			SocialWorker.PostMail(message, "", OnResult);
//			SocialWorker.PostMail("", imagePath, OnResult);
        }
Exemple #5
0
        /// <summary>
        /// Instagram投稿。Instagramは画像の投稿のみ行える。
        /// </summary>
        public void OnPostInstagram()
        {
            string imagePath = Application.persistentDataPath + "/image" + ExtensionImage;

            SocialWorker.PostInstagram(imagePath, OnResult);
        }
Exemple #6
0
        /// <summary>
        /// Facebook投稿。ただしFacebookは画像の投稿のみ許可しており、テキストの投稿は無視されることに注意。
        /// </summary>
        public void OnPostFacebook()
        {
            var imagePath = Application.persistentDataPath + "/image" + ExtensionImage;

            SocialWorker.PostFacebook(imagePath, OnResult);
        }