/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <summary> /// Instagram投稿。Instagramは画像の投稿のみ行える。 /// </summary> public void OnPostInstagram() { string imagePath = Application.persistentDataPath + "/image" + ExtensionImage; SocialWorker.PostInstagram(imagePath, OnResult); }
/// <summary> /// Facebook投稿。ただしFacebookは画像の投稿のみ許可しており、テキストの投稿は無視されることに注意。 /// </summary> public void OnPostFacebook() { var imagePath = Application.persistentDataPath + "/image" + ExtensionImage; SocialWorker.PostFacebook(imagePath, OnResult); }