You must have an SNTC or PSS account in order to be able to use this library.
To use the Cisco nuget package:
- Open your project in Visual Studio
- Right-click on the project and click "Manage Nuget packages"
- Find the package "Cisco.Api" - install the latest version
- Add your application in the Cisco API Console
- Add a new Application, selecting the end points that you intend to use
- Note the client id and secret.
using Cisco.Api;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace My.Project
{
public static class Program
{
public static async Task Main()
{
var ciscoClient = new CiscoClient(
new CiscoClientOptions {
ClientId = "<ID>",
ClientSecret = "<SECRET>"
});
var productInformation = await CiscoClient
.ProductInfo
.GetBySerialNumbersAsync(new [] { "<SERIAL NUMBER>" } )
.ConfigureAwait(false);
var productDetails = productInformation.Products.First();
Console.WriteLine($"Product Name: {productDetails.ProductName}");
}
}
}
The Cisco Support APIs documentation can be found here: