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