Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 username and password
- clientConfig.Username = "John";
- clientConfig.Password = "SecretPassword";
- //Pass the config through the api ctor
- var petApi = new PetApi(clientConfig);
- //Call the Api
- Pet pet = petApi.GetPetById(1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement