コード例 #1
0
 private static TwitterPostContentData PopulateContentData(TwitterPostRequestBody content)
 {
     return(new TwitterPostContentData(content.AccessToken,
                                       AppId,
                                       AppSecret,
                                       content.AccessTokenSecret,
                                       content.Text,
                                       content.Medias));
 }
コード例 #2
0
 public ActionResult <PostResponseData> Post([FromBody] TwitterPostRequestBody content)
 {
     return(Twitter.PostTweet(PopulateContentData(content)));
 }