/Cisco.Api

Cisco API nuget package

Primary LanguageC#MIT LicenseMIT

Cisco.Api

Nuget

You must have an SNTC or PSS account in order to be able to use this library.

To use the Cisco nuget package:

Visual Studio

  1. Open your project in Visual Studio
  2. Right-click on the project and click "Manage Nuget packages"
  3. Find the package "Cisco.Api" - install the latest version
  4. Add your application in the Cisco API Console
  5. Add a new Application, selecting the end points that you intend to use
  6. Note the client id and secret.

Example code (C# 8.0):

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}");
		}
	}
}

API Documentation

The Cisco Support APIs documentation can be found here: