Ring 2.0.5

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Ring --version 2.0.5
NuGet\Install-Package Ring -Version 2.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ring" Version="2.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ring --version 2.0.5
#r "nuget: Ring, 2.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Ring as a Cake Addin
#addin nuget:?package=Ring&version=2.0.5

// Install Ring as a Cake Tool
#tool nuget:?package=Ring&version=2.0.5

Ring

An unofficial Ring library for .NET. This library is in no way endorsed by Ring nor do I represent Ring.

Uses .NET Standard and Newtonsoft.Json.

This library should work on all .NET platforms that support .NET Standard 1.4 including:

Example Implementation

An example implementation can be found in the RingExample directory.

Example Usage

try
{
  // Connect to the Ring API using a Ring account username and password.
  var ring = await RingClient.CreateAsync("username@example.com", "password");
  
  // Save the AuthToken for future connections instead of the Ring account username and password.
  // You can create a new connection using an auth token by calling: RingClient.CreateAsync(authToken)
  // The auth token may expire, but you can ask the user for their username and password at that point.
  var authToken = ring.AuthToken;
  
  // Get the list of the user's devices.
  var devices = await ring.GetDevicesAsync();
  
  // Check if any devices were returned.
  if (devices.Count > 0)
  {
    // Get the battery life of the first device.
    var batteryLife = devices[0].BatteryLife;
  }
  
  // Get the list of the user's active dings.
  var activeDings = await ring.GetActiveDingsAsync();
  
  // Check if there are any active dings.
  if (activeDings.Count > 0)
  {
    // Get the type of the first active ding.
    var activeDingType = activeDings[0].Type;
  }
  
  // Get the list of the user's last 15 dings.
  var dings = await ring.GetDingsAsync(15);
  
  // Check if any dings were returned.
  if (dings.Count > 0)
  {
    // Get the URI of the recording of the most recent ding.
    var recordingUri = await ring.GetRecordingUriAsync(dings[0]);
    
    // Get the description of the Ring device that the most recent ding occurred from.
    var dingDeviceDescription = dings[0].Device.Description;
  }
}
catch (Exception ex)
{
  Console.WriteLine(ex.Message);
}

Credits

This library was based off of php-ring-api by Jeroen Moors.

Product 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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.4 is compatible.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated

Added auth bearer token to header for all queries now that the Ring API requires it.