antenny - Dotnet client for antenny. This is an api that allows you to interact with Antenny. It allows you to manage your clients and subscriptions. This SDK is automatically generated by the OpenAPI Generator project.
Antenny-Dotnet is available as a nuget package. You can install it via:
dotnet add package Antenny
using System.Collections.Generic;
using System.Diagnostics;
using Antenny.API;
using Antenny.Client;
using Antenny.Model;
namespace Example
{
public class Example
{
public static void Main()
{
var config = new Configuration();
config.BasePath = "https://api.antenny.io";
// Configure API key authorization: ApiKeyAuth
config.ApiKey.Add("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.ApiKeyPrefix.Add("X-API-Key", "Bearer");
var api = new SubscriptionApi(config);
var newSub = new NewSubscription()
{
Name = "test-subscription",
CustomerId = "customerId",
Region = "aws-region",
Resource = new Resource()
{
Protocol = "ws",
Url = "wss://example.com"
},
Endpoint = new Endpoint()
{
Protocol = "http",
Url = "https://example.com"
}
};
try
{
// Creates a client
var result = api.createSubscription(newSub);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ClientApi.CreateClient: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
All URIs are relative to https://api.antenny.io
Class | Method | HTTP request | Description |
---|---|---|---|
ClientApi | CreateClient | POST /clients | Creates a client |
ClientApi | DeleteClient | DELETE /clients/{clientId} | Deletes a client |
ClientApi | GetClient | GET /clients/{clientId} | Gets a client |
ClientApi | ListClients | GET /customers/{custId}/clients | Gets a list of clients |
EventsApi | ListEvents | GET /subscriptions/{subId}/events | Gets a list of events for a subscription |
RegistrationApi | GetRegistration | GET /customers/{custId}/registration | Gets a customers registration |
SubscriptionApi | CancelSubscription | PATCH /subscriptions/{subId} | Cancels a subscription |
SubscriptionApi | CreateSubscription | POST /subscriptions | Creates a subscription |
SubscriptionApi | GetSubscription | GET /subscriptions/{subId} | Gets a subscription |
SubscriptionApi | ListSubscriptions | GET /customers/{custId}/subscriptions | Gets a list of subscriptions |
- Model.ClientList
- Model.Endpoint
- Model.Event
- Model.EventList
- Model.InlineObject
- Model.ModelClient
- Model.NewClient
- Model.NewSubscription
- Model.Registration
- Model.Resource
- Model.Subscription
- Model.SubscriptionList
- Type: API key
- API key parameter name: X-API-Key
- Location: HTTP header