title: 403 when calling AirBnb api from C#
body: <p>I've not used HttpClient before so apologies if it's an obvious one.</p>
  
  <p>I'm poking about with the airbnb api <a href="http://airbnbapi.org/#view-listing-info" rel="nofollow noreferrer">http://airbnbapi.org/#view-listing-info</a></p>
  
  <p>My understanding of the endpoint is that I don't need an auth token, as this is a public endpoint I'm trying to use. Unfortunately I'm getting a 403 no matter what I try to do and I'm not entirely sure why.</p>
  
  <p>I've got the following code:</p>
  
  <pre><code>        client.DefaultRequestHeaders.Add("client_id", "&lt;My client Id&gt;");
          client.DefaultRequestHeaders.Add("locale", "en-gb");
          client.DefaultRequestHeaders.Add("currency", "gbp");
  
          var request = new HttpRequestMessage()
          {
              RequestUri = new Uri($"https://api.airbnb.com/v2/listings/{id}"),
              Method = HttpMethod.Get,
          };
  
          var task = client.SendAsync(request)
              .ContinueWith((taskwithmsg) =&gt;
              {
                  var response = taskwithmsg.Result;
  
                  //var jsonTask = response.Content.ReadAsAsync&lt;JsonResult&gt;();
                  //jsonTask.Wait();
                  //var jsonObject = jsonTask.Result;
  
  
                  return response.Content;
              });
          task.Wait();
  
          return task.Result;
  </code></pre>
  
  <p>And I'm getting the following response:</p>
  
  <pre><code>-       response    {StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
  {
    Connection: close
    Date: Tue, 04 Apr 2017 19:44:40 GMT
    Server: AkamaiGHost
    Mime-Version: 1.0
    Content-Length: 291
    Content-Type: text/html
    Expires: Tue, 04 Apr 2017 19:44:40 GMT
  }}  System.Net.Http.HttpResponseMessage
  </code></pre>
  
  <p>Any advice?</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>Macceturra wisely suggested I try to make the call with postman.</p>
  
  <p>I've now established that I can make a call in postman and get a correct response back.</p>