Skip to content

A simple Atlassian Stash REST api client using RestSharp

Notifications You must be signed in to change notification settings

agh92/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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C# 100.0%