Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Tweet using specific credentials

$
0
0
Oh I see so you selected solution 3?

Is there a way to get the error when publish fails ?

If you want to get an the details of an error occurring you can do the following :
var tweet = Tweet.PublishTweet("pdq");
if (tweet == null)
{
         var exception = ExceptionHandler.GetLastException().WebException;
}
I will improve the management of Exception in 0.9.0.2 in the coming days.
You'll notably have access to an event informing you that an error occurred.
I am still undecided on whether incorrect parameters like a null tweet should be added in the ExceptionHandler. Please let me know what you think.

Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>