Пример #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)));
 }