Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
/ StashClient Public archive

A simple Atlassian Stash REST api client using RestSharp

Notifications You must be signed in to change notification settings

burki169/StashClient

Repository files navigation

StashClient

A simple Atlassian Stash REST api client using RestSharp

Usage

You can define your own RestSharp.RestClient to perforn the requests.

RestClient baseClient = ...
StashRestClient stash = new StashRestClient(baseClient);
foreach (StashClient.Objects.Project p in stash.GetAllProjects())
{
  Console.WriteLine(p.Name);
}

You can also use the standard client from the API with no authentication.

StashRestClient stash = new StashRestClient("http://your_stash_server_url:7990/");
foreach (StashClient.Objects.Project p in stash.GetAllProjects())
{
  Console.WriteLine(p.Name);
}

Or use your own credentials with basic authentication.

StashRestClient stash = new StashRestClient("http://your_stash_server_url:7990/", "username", "password");
foreach (StashClient.Objects.Project p in stash.GetAllProjects())
{
  Console.WriteLine(p.Name);
}

About

A simple Atlassian Stash REST api client using RestSharp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages