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

Edited Issue: Null reference exception with basic program [2152]

$
0
0
Just installed via Nuget:

Install-Package TweetinviAPI

var credentials = TwitterCredentials.CreateCredentials("xxx", "yyy", "zzz", "uuu");
TwitterCredentials.ExecuteOperationWithCredentials(credentials, () =>
{
ITweet t = Tweet.PublishTweet("myTweet");
Console.WriteLine(t);
});

t comes back null, nothing was tweeted?? I double checked the credentials

Tried it from source code, got an exception in GetPublishTweetQuery because tweetDTO.MediasToPublish
is null and the code doesnt test for it?

if (tweetDTO.MediasToPublish.Any())

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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