github API, fork a repo
<p>I'm trying to use the github API with python, but got stuck when wanting to fork a repo.
My script so far is:</p>

<pre><code>#!/usr/bin/python
import json
import getpass
from restkit import Resource, BasicAuth, request
from socketpool import ConnectionPool

user= raw_input( "Github user:" )

password=getpass.getpass()
auth=BasicAuth(user, password)

authreqdata = { "scopes": [ "public_repo" ], "note": "admin script" }

resource = Resource('https://api.github.com/authorizations', filters=[auth])
response = resource.post(headers={ "Content-Type": "application/json" },         payload=json.dumps(authreqdata))
token = json.loads(response.body_string())['token']

print token
</code></pre>

<p>I got the security token, but failed miserably trying to fork a repo.</p>

<p>Could you help me with that?</p>

<p>THanks in advance!</p>
