Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtaco committed Mar 10, 2015
1 parent 383d5b4 commit 81abe24
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions test/lib/github.iced
Expand Up @@ -27,50 +27,3 @@ exports.gist_api = gist_api = (d, gist, cb) ->
cb err, id

#=====================================================================

test1 = (cb) ->
tok = "e18260b20c759858614598ea7c725022a77da37f"
headers =
auth =
username : 'tacoplusplus'
password : 'yoyoma22'
headers =
"User-Agent" : "keybase-node-client test (by @maxtaco)"
Authorization : "token #{tok}"
form =
description : "keybase proof"
public : true
files :
"keybase.md" :
content : """
# test 1 2 3
```json
{
"hello" : [1,2,3]
}
```
"""
body = JSON.stringify form
uri = urlmod.parse("https://api.github.com/gists")
opts = { uri, method : "POST", json : true, headers, body }
console.log opts
await request opts, defer err, res, body
console.log res
console.log err
console.log body
cb()

#=====================================================================

test2 = (cb) ->
await gist_api {
personal_access_token : "e18260b20c759858614598ea7c725022a77da37f",
}, "# Yo Peeps\n\n## Here is the gist", defer err, id
console.log err
console.log id

# await test2 defer()


0 comments on commit 81abe24

Please sign in to comment.