// Publish Message public ICreateMessageDTO PublishMessage(IPublishMessageParameters parameters) { string query = _messageQueryGenerator.GetPublishMessageQuery(parameters); var reqDTO = _messageQueryGenerator.GetPublishMessageBody(parameters); return(_twitterAccessor.ExecutePOSTQueryJsonBody <ICreateMessageDTO>(query, reqDTO)); }
// Publish Message public IMessageDTO PublishMessage(IPublishMessageParameters parameters) { _messageQueryValidator.ThrowIfMessageCannotBePublished(parameters); string query = _messageQueryGenerator.GetPublishMessageQuery(parameters); return(_twitterAccessor.ExecutePOSTQuery <IMessageDTO>(query)); }
public Task <ITwitterResult <ICreateMessageDTO> > PublishMessageAsync(IPublishMessageParameters parameters, ITwitterRequest request) { var requestWithPayload = _messageQueryGenerator.GetPublishMessageQuery(parameters); request.Query.Url = requestWithPayload.Url; request.Query.HttpMethod = HttpMethod.POST; request.Query.HttpContent = requestWithPayload.Content; return(_twitterAccessor.ExecuteRequestAsync <ICreateMessageDTO>(request)); }
public string PublishMessage(IMessageDTO messageDTO) { string query = _messageQueryGenerator.GetPublishMessageQuery(messageDTO); return(_twitterAccessor.ExecuteJsonPOSTQuery(query)); }
public string PublishMessage(IMessagePublishParameters parameters) { string query = _messageQueryGenerator.GetPublishMessageQuery(parameters); return(_twitterAccessor.ExecuteJsonPOSTQuery(query)); }
// Publish Message public IMessageDTO PublishMessage(IPublishMessageParameters parameters) { string query = _messageQueryGenerator.GetPublishMessageQuery(parameters); return(_twitterAccessor.ExecutePOSTQuery <IMessageDTO>(query)); }