Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
/ authinvi Public archive

A .NET console application library for authenticating Twitter users to Twitter apps, using PIN-based authentication and based on the Tweetinvi SDK.

License

Notifications You must be signed in to change notification settings

andypiper/authinvi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authinvi

license v1.1 Twitter Follow

Authinvi is a .NET console application library for authenticating Twitter users to Twitter apps, using PIN-based authentication.

If you have a Twitter app that supports Sign-in With Twitter, you can authenticate additional Twitter users to the app and retrieve user access token and access token secrets, via a web-browser and PIN-based login flow. This is useful when authenticating multiple users to an app when you don't want to build a full authentication backend - for example, authenticating "bot" users to a script or application of your choice.

It is almost identical to / based on the great example code from the Tweetinvi documentation, built because I wanted a single executable to use as an example for bot developers. Inevitably, it may evolve and grow over time.

Build & Run

This was built using .NET Core 3.1 and Tweetinvi 5.0.1. Assuming these are available, you should be in good shape.

To start from scratch (skipping all of the command outputs):

$ dotnet new console // creates the app skeleton
$ dotnet add package tweetinviapi // installs the latest Tweetinvi from nuget

...
// you've got this code - just wanted to get you bootstrapped
...

$ dotnet run [CONSUMER_KEY] [CONSUMER_SECRET] // from Twitter app dashboard

-- OR --

$ dotnet dotnet publish -r win10-x64 -c Release /p:PublishSingleFile=true // builds a single .exe
$ authinvi [CONSUMER_KEY] [CONSUMER_SECRET] // from release folder

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. There are already TODOs in the code...

License

Apache License 2.0

Credit / shout-out

  • @linvi - who has poured his talents and care into a great .NET experience for Twitter developers for more years than I can remember. Thank you!

About

A .NET console application library for authenticating Twitter users to Twitter apps, using PIN-based authentication and based on the Tweetinvi SDK.

Topics

Resources

License

Stars

Watchers

Forks

Languages