title: github API unsupported media type 415
body: <p>I was using github API in Meteor but could not solved this issue:</p>
  
  <p>This code tries to get the total number of traffic for a certain repo.</p>
  
  <pre><code>HTTP.call( 'GET', 'https://api.github.com/repos/hackmdio/hackmd/traffic/views', 
      {
          headers: 
          {
              'Content-Type':'application/json',
              "Accept":"application/vnd.github.v3+json",
              "User-Agent": "whales"
          },
      },
      function( error, response ) {
    if ( error ) {
      console.log('---------------------------error occurred-----------------------------------')
      console.log('---------------------------error occurred-----------------------------------')
  
      console.log( error );
    } else {
  
      console.log('--------------------------data got it!!-------------------------------------')
      console.log('--------------------------data got it!!-------------------------------------')
  
      console.log(response);
    }
  });
  </code></pre>
  
  <p>Error: </p>
  
  <pre><code>{
    "message": "If you would like to help us test the Repo Traffic API during its preview period, you must specify a custom media type in the 'Accept' header. Please see the docs for full details.",
    "documentation_url": "https://developer.github.com/v3"
  }
  </code></pre>
  
  <p>I searched for similar issues and added "Content-Type" and "Accept" but it's still not working. </p>
  
  <p>I then tried doing this in Postman and also in terminal with the same headers but this error kept happening. <a href="https://i.stack.imgur.com/60yLR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/60yLR.png" alt="enter image description here"></a></p>
  
  <p>Thanks a lot.</p>