title: Get a token by Github API
body: <p>I manually created a token in <code>Github -&gt; Settings -&gt; Personal access tokens -&gt; Generate new token</code> and chose only <code>repo</code> <code>scope</code>. </p>
  
  <p>This token works fine, so with it I can push into organization I have <code>write</code> privileges.</p>
  
  <p>Then I want to do the same (get an access_token) by <code>github-api</code>.</p>
  
  <pre class="lang-python prettyprint-override"><code>params = dict(client_id=client_id,
                client_secret=client_secret,
                code=code)
  
  url = url_concat("https://github.com/login/oauth/access_token", params)
  
  req = HTTPRequest(url,
                    method="POST",
                    headers={"Accept": "application/json"},
                    body="") 
  </code></pre>
  
  <p>As a result I have such <code>json</code>:</p>
  
  <pre class="lang-json prettyprint-override"><code>{
      'scope': 'repo',
      'token_type': 'bearer',
      'access_token': 'xxxxxxxx10755fbb6c281e92902ed122144886c5'
  }
  </code></pre>
  
  <p>It is as everything correct, but I can't push into organization repos where I have <code>write</code> privileges. I can push only into my own repos.</p>
  
  <p>Could you help? Any idea where is a mistake or inaccuracy is welcome.</p>