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

Commented 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: Associated with changeset 35713: Version 0.9.2.1
- Updated TweetAsync to add PublishTweetWithMedia
- Updated TweetQueryGenerator to generate a simple tweet when the media list is null
- Updated WebRequestGenerator to remove url formatting from the parameter values

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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