-
-
Save dscape/fa6f40d1a3f808e23d7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -vX POST -H "Content-Type: application/json" --data "{\"username\":\"nodejitsu-webhooks-api\",\"inviteCode\":\"2a679baf-6fcd-4ad6-8768-8068242b2894\"}" http://api.nodejitsu.com/users/nodejitsu-webhooks-api/confirm | |
* About to connect() to api.nodejitsu.com port 80 (#0) | |
* Trying 165.225.130.178... connected | |
* Connected to api.nodejitsu.com (165.225.130.178) port 80 (#0) | |
> POST /users/nodejitsu-webhooks-api/confirm HTTP/1.1 | |
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 | |
> Host: api.nodejitsu.com | |
> Accept: */* | |
> Content-Type: application/json | |
> Content-Length: 89 | |
> | |
< HTTP/1.1 200 OK | |
< x-powered-by: Nodejitsu 0.9.4 | |
< content-type: application/json | |
< Date: Thu, 13 Sep 2012 00:01:46 GMT | |
< Connection: keep-alive | |
< Transfer-Encoding: chunked | |
< | |
* Connection #0 to host api.nodejitsu.com left intact | |
* Closing connection #0 | |
{"message":"Your ninja status has been confirmed!","hasPassword":true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jitsu users confirm nodejitsu-webhooks-api 2a679baf-6fcd-4ad6-8768-8068242b2894 | |
info: Welcome to Nodejitsu dscape | |
info: jitsu v0.9.8 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command users confirm nodejitsu-webhooks-api 2a679baf-6fcd-4ad6-8768-8068242b2894 | |
info: Confirming user nodejitsu-webhooks-api | |
debug: { method: 'POST', | |
debug: uri: 'http://api.nodejitsu.com/users/nodejitsu-webhooks-api/confirm', | |
debug: headers: | |
debug: { Authorization: 'Basic', | |
debug: 'Content-Type': 'application/json' }, | |
debug: timeout: 240000, | |
debug: body: '{"username":"nodejitsu-webhooks-api","inviteCode":"2a679baf-6fcd-4ad6-8768-8068242b2894"}' } | |
debug: { statusCode: 400, | |
debug: result: { error: 'Invalid Invite Code' } } | |
error: Error running command users confirm nodejitsu-webhooks-api 2a679baf-6fcd-4ad6-8768-8068242b2894 | |
error: Nodejitsu Error (400): Bad Request | |
error: Invalid Invite Code | |
help: For help with this error contact Nodejitsu Support: | |
help: webchat: <http://webchat.nodejitsu.com/> | |
help: irc: <irc://chat.freenode.net/#nodejitsu> | |
help: email: <support@nodejitsu.com> | |
help: | |
help: Copy and paste this output to a gist (http://gist.github.com/) | |
info: Nodejitsu not ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment