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

Updated Release: Tweetinvi 0.9.7.x (Apr 27, 2015)

$
0
0

Tweetinvi Update 0.9.7.1

Quick Overview

Account Settings

Tweetinvi is now allowing the developers to get or set the settings of a logged user.

// Get Settingsvar settings = Account.GetCurrentAccountSettings();

// Update Settingsvar updatedSettingsRequestParameter = Account.CreateUpdateAccountSettingsRequestParameters(settings);
updatedSettingsRequestParameter.SleepTimeEnabled = false;

var updatedSettings = Account.UpdateAccountSettings(updatedSettingsRequestParameter);

Friendship

In Tweetinvi 0.9.7.x the major update was the complete implementation of the Friendship API.
As part of this enhancement I moved some features from the static User class into the Account and Friendship static classes.

Also the new properties implemented by twitter for relationships have been added in Tweetinvi.

// List users who wants to follow your current accountSettingsvar friendshipRequests = Account.GetUsersRequestingFriendship();

// List users you want to followvar usersYouWantToFollow = Account.GetUsersYouRequestedToFollow();

// Update relationship authorizations with user
Account.UpdateRelationshipAuthorizationsWith("tweetinviapi", enableRetweets, enableNotificationsOnDevices);

// Get Relationship Detailsvar relationshipDetails = Friendship.GetRelationshipDetailsBetween("tweetinviapi", "twitterapi");

// Get users who have their retweets muted
Account.GetUsersWhoseRetweetsAreMuted();

Moved Functions

  • GetMutedUserIds
  • MuteUser
  • UnMuteUser

User Search

It is now possible to search for users with Tweetinvi!

var users = Search.SearchUsers("linvi", 100);

UserStream Update

In order to add a missing of the UserStream class, Tweetinvi is now handling the AccessRevoked message. This message is sent by Twitter when the Token used by the stream to connect to Twitter is revoked. This message is usually followed by a disconnect message.

var us = Stream.CreateUserStream();
us.AccessRevoked += (sender, args) =>
{
    Console.WriteLine("Application {0} had its access revoked!", args.Info.ApplicationName);
};

Tweet Entities

Tweet Entities have been improved. Instead of returning either the Extended Entities or Legacy Entities we Tweetinvi is now aggregating the information of both and returns this as single object.

Mute

All the public Mute functions have now been implemented in Tweetinvi. They are accessible from the Account static class.

// Get Mutevar mutedUsers = Account.GetMutedUsers();

Account.GetMutedUsers();
            
// Create Mute
Account.MuteUser("username");

// Delete Mute
Account.UnMuteUser("username");

MultiThreading Performances

Version 0.9.7.x improved the global performances of WebRequests for highly multi threaded applications.

Signed DLLs and Windows Store Apps

Tweetinvi is now a signed library. Therefore you will be able to use Tweetinvi in your Windows Store Application and deploy it to the store right away.

Bug Fixes

  • HttpClient WebRequests TaskCancelledException is now correctly Handled
  • HttpClient is now handling exception status code as exception.
  • Fixed a "major" bug that could result in static classes to be instantiated twice in an application life cycle.

Mono and Xamarin

Tweetinvi is now working with Xamarin to ensure that you can write any Twitter application in C# on Mono. Tweetinvi will be released in the future in the Xamarin Store.

Special Thanks

  • To JKeegan for his great help and time identifying major issues.
  • To KeesCBakker for reporting TwitterEntities bugs.

Viewing all articles
Browse latest Browse all 4126

Trending Articles