https://github.com/panoramicdata/cisco.api
Cisco API nuget package
https://github.com/panoramicdata/cisco.api
Last synced: 10 months ago
JSON representation
Cisco API nuget package
- Host: GitHub
- URL: https://github.com/panoramicdata/cisco.api
- Owner: panoramicdata
- License: mit
- Created: 2020-05-16T19:52:17.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T16:31:30.000Z (about 2 years ago)
- Last Synced: 2024-05-29T05:40:08.993Z (about 2 years ago)
- Language: C#
- Size: 386 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Cisco.Api
[](https://www.nuget.org/packages/Cisco.Api/)
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
1. Right-click on the project and click "Manage Nuget packages"
1. Find the package "Cisco.Api" - install the latest version
1. Add your application in the Cisco API Console
1. Add a new Application, selecting the end points that you intend to use
1. Note the client id and secret.
## Example code (C# 8.0):
``` C#
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 = "",
ClientSecret = ""
});
var productInformation = await CiscoClient
.ProductInfo
.GetBySerialNumbersAsync(new [] { "" } )
.ConfigureAwait(false);
var productDetails = productInformation.Products.First();
Console.WriteLine($"Product Name: {productDetails.ProductName}");
}
}
}
````
## API Documentation
The Cisco Support APIs documentation can be found here:
- [Cisco Support APIs](https://developer.cisco.com/site/support-apis/)