/// <summary> /// Posts the specified status message. /// </summary> /// <param name="options">The options for the call to the API.</param> public SocialHttpResponse PostStatusMessage(TwitterPostStatusMessageOptions options) { if (options == null) { throw new ArgumentNullException("options"); } return(Client.DoHttpPostRequest("https://api.twitter.com/1.1/statuses/update.json", options)); }
/// <summary> /// Posts a new status message (tweet) with the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update</cref> /// </see> public SocialHttpResponse PostStatusMessage(TwitterPostStatusMessageOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (!String.IsNullOrWhiteSpace(options.Status)) { throw new PropertyNotSetException(nameof(options.Status)); } return(Client.DoHttpPostRequest("https://api.twitter.com/1.1/statuses/update.json", options)); }
/// <summary> /// Posts a new status message (tweet) with the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="TwitterPostStatusMessageResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update</cref> /// </see> public TwitterPostStatusMessageResponse PostStatusMessage(TwitterPostStatusMessageOptions options) { return(TwitterPostStatusMessageResponse.ParseResponse(Raw.PostStatusMessage(options))); }