how to post in github api v3 - c# sample
===

i am using github api v3 with c#, i am able to get the access token and using that i am able to get the user information and repo info.

**when i try to create a new repo i am getting the error as unAutorized.**

i am using HttpWebRequest to post data, Please suggest me some c# sample or sample code.

   string[] paramName, string[] paramVal, string json, string accessToken)
        {
             
            HttpWebRequest req = WebRequest.Create(new Uri(url))
                                 as HttpWebRequest;
            req.Method = "POST";
            req.ContentType = "application/json";

            StreamWriter writer = new StreamWriter(req.GetRequestStream());
            writer.Write(json);
            writer.Close();

            string result = null;
            using (HttpWebResponse resp = req.GetResponse()
                                          as HttpWebResponse)
            {
                StreamReader reader =
                    new StreamReader(resp.GetResponseStream());
                result = reader.ReadToEnd();
            }



Note: I am not sure where i need to add the accesstoken. i tried in headers as well as url , but no help. 