Skip to content

Instantly share code, notes, and snippets.

@sugimomoto
Created May 10, 2020 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sugimomoto/46e77954320d7cc78fe0456fc15edb63 to your computer and use it in GitHub Desktop.
Save sugimomoto/46e77954320d7cc78fe0456fc15edb63 to your computer and use it in GitHub Desktop.
BacklogAPIRequestSample.cs
using Newtonsoft.Json;
using RestSharp;
using System;
namespace BacklogAPI
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
var client = new RestClient("https://XXXXX.backlog.com/api/v2/issues?apiKey=XXXXXX");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
var issues = JsonConvert.DeserializeObject<Issue[]>(response.Content);
foreach (var issue in issues)
{
Console.WriteLine(issue.summary);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment