agh92 / StashClient

A simple Atlassian Stash REST api client using RestSharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C# 100.0%