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