title: How to use RestSharp to get a json file inside of a github repo
body: <p>I need to get a json file from github using RestSharp. I'm coding in C#.</p>
  <p>I have tried it like this:</p>
  <pre class="lang-cs prettyprint-override"><code>using System;
  using System.IO;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Text.Json;
  using System.Threading.Tasks;
  using System.Net.Http;
  using System.Web;
  using System.Net;
  using Newtonsoft.Json;
  using RestSharp;
  using RestSharp.Authenticators;
  using RestSharp.Extensions;
  
  namespace OurOSBasic.O_OS_Kernel.ACK
  {
      internal class Commands
      {
          public string Command { get; set; }
          public short Response { get; set; }
  
          public override string ToString()
          {
              return $&quot;{Command,20}: {Response} contributions&quot;;
          }
      }
  
  
      class CommandParser
      {
          private static System.Text.Json.JsonElement root;
          private static System.Text.Json.JsonElement.ArrayEnumerator elems;
  
          public static async void CommandParserFunc()
          {
              var client = new RestClient(&quot;https://github.com&quot;);
  
              var request = new RestRequest(&quot;OurWorldMetaverse/OurOSBasic/blob/main/O_OS-Kernel/ACK/Resources/ACKCommands.json&quot;, Method.Get);
              // Add HTTP headers
              request.AddHeader(&quot;User-Agent&quot;, &quot;Nothing&quot;);
  
              // Execute the request and automatically deserialize the result.
              var contributors = client.ExecuteAsync&lt;List&lt;Commands&gt;&gt;(request);
              Console.Write(contributors.Result.Data);
  
  
          }
  
      }
  }
  </code></pre>
  <p>I am trying to make a desktop application that simulates an OS. This code is me trying to make a CommandParser for the console of it.</p>
  <p>To no avail. Any help means a lot.</p>