コード例 #1
0
        private ITweetDTO PublishTweetDTO(ITweetDTO tweetToPublish)
        {
            _uploadQueryExecutor.UploadTweetMediasBeforePublish(tweetToPublish);

            var publishedTweetDTO = _tweetQueryExecutor.PublishTweet(tweetToPublish);

            return(publishedTweetDTO);
        }
コード例 #2
0
        public string PublishTweet(ITweetDTO tweetToPublish)
        {
            _uploadQueryExecutor.UploadTweetMediasBeforePublish(tweetToPublish);

            string query = _tweetQueryGenerator.GetPublishTweetQuery(tweetToPublish);

            return(_twitterAccessor.ExecuteJsonPOSTQuery(query));
        }