DuolingoNET 1.2.2
dotnet add package DuolingoNET --version 1.2.2
NuGet\Install-Package DuolingoNET -Version 1.2.2
<PackageReference Include="DuolingoNET" Version="1.2.2" />
<PackageVersion Include="DuolingoNET" Version="1.2.2" />
<PackageReference Include="DuolingoNET" />
paket add DuolingoNET --version 1.2.2
#r "nuget: DuolingoNET, 1.2.2"
#:package DuolingoNET@1.2.2
#addin nuget:?package=DuolingoNET&version=1.2.2
#tool nuget:?package=DuolingoNET&version=1.2.2
DuolingoNET
Unofficial .NET Core Duolingo (https://www.duolingo.com/) API. Available as a NuGet package.
Usage
Register an account on Duolingo.
Create an instance of the
Duolingoclass and provide it with either ausernameoremail, apasswordand aHttpClient.
var duolingo = new Duolingo(username, password, httpclient);
Note: a valid Duolingo account is needed to get any data from the API. If you signed in with Google you need to switch to a Duolingo account.
Documentation
Account
GetUserDataRaw()
var duolingo = new Duolingo(username, password, httpclient);
var userData = GetUserDataRaw();
Returns a User.Root containing all the raw data for the user, as pulled by the API. Lacks ads and tracking data.
GetUserInfo()
var duolingo = new Duolingo(username, password, httpclient);
var userData = GetUserInfo();
Returns a UserInfo containing various information on the user.
GetFriends()
var duolingo = new Duolingo(username, password, httpclient);
var friends = GetFriends();
Returns a User.PointsRankingData representing the friends of the the user.
GetCalendar()
var duolingo = new Duolingo(username, password, httpclient);
var friends = GetCalendar();
Returns a User.Calendar representing the actions of the user.
GetStreak()
var duolingo = new Duolingo(username, password, httpclient);
var friends = GetStreak();
Returns a Streak representing the info on the active streak of the user.
Language
GetLearnedSkills()
var duolingo = new Duolingo(username, password, httpclient);
var skills = GetLearnedSkills();
Returns a List<User.Skill> containing all the skills learned within the active language("learned": True) by the user.
GetKnownWords()
var duolingo = new Duolingo(username, password, httpclient);
var skills = GetKnownWords();
Returns a List<string> containing all the words known within the active language by the user.
GetLexemeDataAsync()
var duolingo = new Duolingo(username, password, httpclient);
var lexeme = GetLexemeDataAsync(lexemeId);
Returns a Task<Lexeme.Root> representing a single word.
Paramaters
string lexemeId required
-- The id of the word you want to retrieve data for.
GetVocabularyAsync()
var duolingo = new Duolingo(username, password, httpclient);
var lexeme = GetVocabularyAsync(lexemeId);
Returns a Task<Vocabulary.Root> representing the user's vocabulary.
GetLearningLanguages()
var duolingo = new Duolingo(username, password, httpclient);
var learningLanguages = GetLearningLanguages();
Returns a List<User.Language> representing the languages being studied by the user.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.