using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace SwaggerClientTest
{
class Program
{
static void Main(string[] args)
{
//Create a new instance
var clientConfig = new Configuration();
//Add the key to the Authorization header
clientConfig.ApiKey["Authorization"] = "{Some token value}";
//Add the key prefix (if one is to be used)
clientConfig.ApiKeyPrefix["Authorization"] = "Bearer";
//Pass the config through the api ctor
var petApi = new PetApi(clientConfig);
//Call the Api
Pet pet = petApi.GetPetById(1);
}
}
}