jwilger/github-v3-api — Issue #8: get a 401 status while creating issue.
Author: ktkaushik
Created: 2012-02-07 16:39:55+00:00
State: open

I created an object as ::

`k = GitHubV3API::IssuesAPI.new(conn)`

`conn` is a connection to `https://api.github.com` using [Faraday](https://github.com/technoweenie/faraday).

`k.create("ktkaushik" , "omniauth_trial" , { :title => "Would this work ?" , :access_token => "ACCESS_TOKEN_HERE"})`

This gives me `http status 401`

This was the output ::

```
#,
@app=#>>>>,
@data=#:post,
:body=>"{\"message\":\"Bad credentials\"}", :url=>#,
:request_headers=>{"Content-Type"=>"application/x-www-form-urlencoded"}, :parallel_manager=>nil, :request=>{:proxy=>nil}, :ssl=>{},
:status=>401, :response_headers=>{"server"=>"nginx/1.0.4", "date"=>"Tue, 07 Feb 2012 16:33:48 GMT",
"content-type"=>"application/json; charset=utf-8", "connection"=>"close",
"status"=>"401 Unauthorized", "www-authenticate"=>"Basic realm=\"GitHub\"",
"etag"=>"\"ca6a3702f840b6bff0bb1bca6be0337c\"", "content-length"=>"29"},
:response=>#}, @on_complete_callbacks=[]>, @fetched=true>

```

Whats going wrong ? am i missing something here ?