title: Github REST API full example
body: <p>I would like to create a new file in the my github repository by using github REST API. I've found following <a href="https://developer.github.com/v3/repos/contents/#create-a-file" rel="noreferrer">link</a>, but honestly I don't understand it((</p>
  
  <p>As I understand, I could do POST</p>
  
  <p><strong>url</strong>: <a href="https://api.github.com/repos/MyUserName/MyRepositoryName" rel="noreferrer">https://api.github.com/repos/MyUserName/MyRepositoryName</a></p>
  
  <p><strong>headers</strong>:</p>
  
  <p>Accept: application/vnd.github.v3+json</p>
  
  <p><strong>body</strong>:</p>
  
  <pre><code>{
    "message": "my commit message",
    "committer": {
      "name": "My name",
      "email": "my email"
    },
    "content": "base64encoded"
  }
  </code></pre>
  
  <p>But it doesn't work. Could you please, write </p>
  
  <p>1) which url should I call</p>
  
  <p>2) which headers this request should contains</p>
  
  <p>3) what body should be</p>