Esempio n. 1
0
        public async Task <string> GetRawFile(string username, string repository, string branch, string path)
        {
            var uri = $"{BitbucketClient.ApiUrl}/repositories/{Uri.EscapeDataString(username)}/{Uri.EscapeDataString(repository)}"
                      + $"/raw/{Uri.EscapeUriString(branch)}/{path?.TrimStart('/')}";
            var response = await _client.GetRaw(uri);

            return(await response.Content.ReadAsStringAsync());
        }