All Projects → JoeMayo → Linqtotwitter

JoeMayo / Linqtotwitter

Licence: apache-2.0
LINQ Provider for the Twitter API (C# Twitter Library)

Programming Languages

csharp
926 projects

Projects that are alternatives of or similar to Linqtotwitter

Tweetinvi
Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
Stars: ✭ 812 (+102.49%)
Mutual labels:  twitter-api, dotnet-standard, dotnet-framework, dotnet-core, xamarin, twitter
Netfabric.hyperlinq
High performance LINQ implementation with minimal heap allocations. Supports enumerables, async enumerables, arrays and Span<T>.
Stars: ✭ 479 (+19.45%)
Mutual labels:  linq, dotnet-standard, dotnet-core
Corehook
A library that simplifies intercepting application function calls using managed code and the .NET Core runtime
Stars: ✭ 191 (-52.37%)
Mutual labels:  dotnet-standard, dotnet-core, uwp
Twitter
Twitter API for Laravel 5.5+, 6.x, 7.x & 8.x
Stars: ✭ 755 (+88.28%)
Mutual labels:  twitter-api, twitter, tweets
Entityframeworkcore.cacheable
EntityFrameworkCore second level cache
Stars: ✭ 138 (-65.59%)
Mutual labels:  dotnet-standard, dotnet-framework, dotnet-core
Appmetrics
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.
Stars: ✭ 1,986 (+395.26%)
Mutual labels:  dotnet-standard, dotnet-framework, dotnet-core
Sharpsnmplib
Sharp SNMP Library- Open Source SNMP for .NET and Mono
Stars: ✭ 247 (-38.4%)
Mutual labels:  dotnet-standard, dotnet-framework, dotnet-core
TwitterPiBot
A Python based bot for Raspberry Pi that grabs tweets with a specific hashtag and reads them out loud.
Stars: ✭ 85 (-78.8%)
Mutual labels:  twitter, tweets, twitter-api
Archive-Tweets
Archive and Delete Liked and Posted Tweets
Stars: ✭ 28 (-93.02%)
Mutual labels:  twitter, tweets, twitter-api
Twitterdelete
💀 Delete your old, unpopular tweets.
Stars: ✭ 231 (-42.39%)
Mutual labels:  twitter-api, twitter, tweets
Tweetie
Simple jQuery Twitter feed plugin
Stars: ✭ 314 (-21.7%)
Mutual labels:  twitter-api, twitter, tweets
Twitter Scraper
Scrape the Twitter Frontend API without authentication.
Stars: ✭ 3,037 (+657.36%)
Mutual labels:  twitter-api, twitter, tweets
Ble.net
Cross-platform Bluetooth Low Energy (BLE) library for Android, iOS, and UWP
Stars: ✭ 137 (-65.84%)
Mutual labels:  dotnet-standard, xamarin, uwp
Dotnet Etcd
A C# .NET (dotnet) GRPC client for etcd v3 +
Stars: ✭ 157 (-60.85%)
Mutual labels:  dotnet-standard, dotnet-framework, dotnet-core
Efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
Stars: ✭ 10,838 (+2602.74%)
Mutual labels:  dotnet-standard, dotnet-framework, dotnet-core
Theraot
Backporting .NET and more: LINQ expressions in .net 2.0 - nuget Theraot.Core available.
Stars: ✭ 112 (-72.07%)
Mutual labels:  dotnet-standard, dotnet-framework, dotnet-core
Reswplus
Unleash your resw files with this Visual Studio extension: auto generation of strongly typed static properties, support of pluralization, strongly typed string formatting, etc...
Stars: ✭ 77 (-80.8%)
Mutual labels:  dotnet-standard, dotnet-core, uwp
Minion
Background job system for .NET applications
Stars: ✭ 94 (-76.56%)
Mutual labels:  dotnet-standard, dotnet-framework, dotnet-core
Twitter Post Fetcher
Fetch your twitter posts without using the new Twitter 1.1 API. Pure JavaScript! By Jason Mayes
Stars: ✭ 886 (+120.95%)
Mutual labels:  twitter-api, twitter, tweets
archive-explorer-web
Browse your Twitter archive with a friendly, responsive, full experience, and quickly delete the tweets you don't want.
Stars: ✭ 19 (-95.26%)
Mutual labels:  twitter, tweets, twitter-api

LINQ to Twitter

LINQ to Twitter is an open source 3rd party LINQ Provider (Twitter Library) for the Twitter micro-blogging service. It uses standard LINQ syntax for queries and includes method calls for changes via the Twitter API.

Please take the LINQ to Twitter Survey at https://bit.ly/2Luzbpt.

Standard Labs v2

Example

The following query returns search results where people are tweeting about LINQ to Twitter:

            var twitterCtx = new TwitterContext(...);

            var searchResponse =
                await
                (from search in twitterCtx.Search
                 where search.Type == SearchType.Search &&
                       search.Query == "\"LINQ to Twitter\""
                 select search)
                .SingleOrDefaultAsync();

            if (searchResponse != null && searchResponse.Statuses != null)
                searchResponse.Statuses.ForEach(tweet =>
                    Console.WriteLine(
                        "User: {0}, Tweet: {1}", 
                        tweet.User.ScreenNameResponse,
                        tweet.Text));

From a coding experience perspective, the TwitterContext type is analogous to the Entity Framework DBContext. You use the TwitterContext instance, twitterCtx, to access IQueryable<T> tweet categories. In the example above, the Search will give you the ability to search Twitter for tweets meeting some criteria.

Note: The ellipses in the TwitterContext parameters indicates that you need to provide an authorizer with credentials, which is required. You can visit Securing Your Applications for documentation on authorizers and visit the Download page for working examples.

Each query category has a Type property for the type of tweets you want to get back. For example, Status tweets can be made for Home, Mentions, or User timelines. Each query category also has an XxxType enum to help you figure out what is available. The example above uses SearchType.Search to perform searches. Another example would be Status queries which might have StatusType.Home as its Type. In the case of Search queries, Search is the only option, but the Type idiom is consistent accross all query categories.

Just like other LINQ providers, you get an IQueryable<T> back from the query. You can see how to materialize the query by invoking the SingleOrDefaultAsync operator. For Search results, you receive one Search entity that contains information about the Search query and the Search entity contains a Statuses property that is a collection of Status entities. On other queries, you would materialize the query with ToListAsync for multiple results. Just like other LINQ providers, LINQ to Twitter does deferred execution, so operators such as ToListAsync and SingleOrDefaultAsync or statements such as for and foreach loops will cause the query to execute and make the actual call to Twitter.

The latest version of LINQ to Twitter supports async. You can see this where the code above await's the query, using the SingleOrDefaultAsync operator. Commands are async also. e.g. await TweetAsync("Hello from LINQ to Twitter").

For more details on how LINQ to Twitter works, you can visit Making API Calls for API specific examples. The downloadable source code also contains copious examples in the projects. Just look in the Samples folder.

NuGet

In addition to being able to download from this site, you can also automatically install LINQ to Twitter into your Visual Studio projects via NuGet;

Available Feature Set

See Making API Calls.

For more info:

  • follow @JoeMayo for releases and related blog posts.
  • follow @Linq2Twitr for more detailed project information.

Please take the LINQ to Twitter Survey at https://bit.ly/2Luzbpt.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].