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())
Comments: ** Comment from web user: linvi **

Hi,

Tweetinvi 0.9.2.1 is now online and should resolve the problem.
Thank you very much for this feedback.

Linvi


Viewing all articles
Browse latest Browse all 4126

Trending Articles