Skip to content

Access and download OpenDNS statistics from your C# code.

License

Notifications You must be signed in to change notification settings

danikf/opendns4net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opendns4net

Access and download OpenDNS statistics from your C# code. This project provides managed .NET API to OpenDNS dashboard.

Also published as nuget package.

Available classes;

  • StatsLoader - API class. Wrapper of OpenDNS dashboard
  • UserNetworkDescriptor - descriptor of user networks
  • enum StatsType - types of available OpenDns statistics

Examples

    // Load todays TopDomain statistics
    using (var loader = new StatsLoader(NETWORK_ID))
    {
        loader.Login(USER_NAME, PASSWORD);
        var csv = loader.LoadCsv(DateTime.Today);
        // ... use loaded csv rows    
    }
    // Get all user networks
    using (var loader = new StatsLoader(null))
    {
        loader.Login(USER_NAME, PASSWORD);
        var networks = loader.LoadAllUserNetworks();
        // ... use networks list
    }

NOTE: this library is improved C# port of opendns-fetchstats project.

About

Access and download OpenDNS statistics from your C# code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages