{"action":"created","comment":{"url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/comments/78023364","id":78023364,"diff_hunk":"@@ -0,0 +1,57 @@\n+Getting Started\n+===============\n+\n+To use the API you must first sign up for it.  There's scripts in the [`../example/`](../example/) folder that will help you out.\n+\n+\n+Creating an Account\n+-------------------\n+\n+This process is the most labor-intensive, but you can do this in under a minute.\n+\n+    cd example\n+    unset HISTFILE  # Turn off shell history so your password isn't stored\n+    ./create-account.js --email=your_email@example.com \\\n+        --password=REALLY_GOOD_PASSWORD\n+\n+This initiates the account setup.  You will get the MFA seed and you will need that seed in the future.  From here you will need to check your email for a link to validate your account.\n+\n+    curl /registration/xxxxxxxxxx/confirm/yyyyyyyyyy\n+\n+This retrieves the account ID.  Save it.  This is pretty important, just like your password and the MFA seed.\n+\n+\n+Creating API Keys\n+-----------------\n+\n+API keys are necessary in order to tokenize information.\n+\n+    cd examples   # In case you were not there before\n+    unset HISTFILE  # Turn off shell history so your password isn't stored\n+    ./create-api-keys.js --account=ACCOUNT_ID \\\n+        --description=\"Your description for these keys\" \\\n+        --mfa=THE_MFA_SEED --password=REALLY_GOOD_PASSWORD\n+\n+This will just spit out a set of keys.  They consist of a code and a secret.  The code can be shared with others but keep the secret private!  The secret is used for signing requests.\n+\n+\n+Tokenization, Detokenization\n+----------------------------\n+\n+Signing a request to OpenToken.io is easier than AWS but based on the same principles.  There's a great request to do this for you as well.  Let's tokenize the file `tokenize-me.txt`.","path":"doc/getting-started.md","position":41,"original_position":41,"commit_id":"7409560d5091d1a2092cf70db86420f56066a97b","original_commit_id":"7409560d5091d1a2092cf70db86420f56066a97b","user":{"login":"AbsentSemicolon","id":1569396,"avatar_url":"https://avatars.githubusercontent.com/u/1569396?v=3","gravatar_id":"","url":"https://api.github.com/users/AbsentSemicolon","html_url":"https://github.com/AbsentSemicolon","followers_url":"https://api.github.com/users/AbsentSemicolon/followers","following_url":"https://api.github.com/users/AbsentSemicolon/following{/other_user}","gists_url":"https://api.github.com/users/AbsentSemicolon/gists{/gist_id}","starred_url":"https://api.github.com/users/AbsentSemicolon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbsentSemicolon/subscriptions","organizations_url":"https://api.github.com/users/AbsentSemicolon/orgs","repos_url":"https://api.github.com/users/AbsentSemicolon/repos","events_url":"https://api.github.com/users/AbsentSemicolon/events{/privacy}","received_events_url":"https://api.github.com/users/AbsentSemicolon/received_events","type":"User","site_admin":false},"body":"Very well, guess it just read weird in my head.","created_at":"2016-09-08T14:58:05Z","updated_at":"2016-09-08T14:58:05Z","html_url":"https://github.com/opentoken-io/opentoken/pull/114#discussion_r78023364","pull_request_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/114","_links":{"self":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/comments/78023364"},"html":{"href":"https://github.com/opentoken-io/opentoken/pull/114#discussion_r78023364"},"pull_request":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/114"}}},"pull_request":{"url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/114","id":84489397,"html_url":"https://github.com/opentoken-io/opentoken/pull/114","diff_url":"https://github.com/opentoken-io/opentoken/pull/114.diff","patch_url":"https://github.com/opentoken-io/opentoken/pull/114.patch","issue_url":"https://api.github.com/repos/opentoken-io/opentoken/issues/114","number":114,"state":"open","locked":false,"title":"Various fixes to eliminate errors of multiple types","user":{"login":"fidian","id":428348,"avatar_url":"https://avatars.githubusercontent.com/u/428348?v=3","gravatar_id":"","url":"https://api.github.com/users/fidian","html_url":"https://github.com/fidian","followers_url":"https://api.github.com/users/fidian/followers","following_url":"https://api.github.com/users/fidian/following{/other_user}","gists_url":"https://api.github.com/users/fidian/gists{/gist_id}","starred_url":"https://api.github.com/users/fidian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidian/subscriptions","organizations_url":"https://api.github.com/users/fidian/orgs","repos_url":"https://api.github.com/users/fidian/repos","events_url":"https://api.github.com/users/fidian/events{/privacy}","received_events_url":"https://api.github.com/users/fidian/received_events","type":"User","site_admin":false},"body":"It was possible to have `.trim()` operate on a non-string before, so I\r\nintroduced checks to ensure I have a value instead of `undefined.\r\n\r\nFixed the wording in the documentation.\r\n\r\nUpdated an example script to have the right permissions and to not read\r\nfrom stdin any longer.\r\n\r\nFixed where request.body may be a Buffer and it should be changed to a\r\nbinary string instead of a UTF-8 encoded string (UTF-8 is the default\r\nwhen typecasting Buffers to strings).\r\n\r\nIgnore Elastic Beanstalk CLI config files.\r\n\r\nAdded deployment instructions.\r\n\r\nUpdated config to work as the production config.\r\n\r\nAdded a specialized health check route.\r\n\r\nRemoved an unnecessary property from the config.\r\n\r\nPrevent nginx from logging requests.\r\n\r\nUsing Mac-acceptable flags for the date command.","created_at":"2016-09-08T14:34:15Z","updated_at":"2016-09-08T14:58:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e29887c55197b938709ae45aedb74d701d429135","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/114/commits","review_comments_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/114/comments","review_comment_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opentoken-io/opentoken/issues/114/comments","statuses_url":"https://api.github.com/repos/opentoken-io/opentoken/statuses/7409560d5091d1a2092cf70db86420f56066a97b","head":{"label":"fidian:tokenization-fixes","ref":"tokenization-fixes","sha":"7409560d5091d1a2092cf70db86420f56066a97b","user":{"login":"fidian","id":428348,"avatar_url":"https://avatars.githubusercontent.com/u/428348?v=3","gravatar_id":"","url":"https://api.github.com/users/fidian","html_url":"https://github.com/fidian","followers_url":"https://api.github.com/users/fidian/followers","following_url":"https://api.github.com/users/fidian/following{/other_user}","gists_url":"https://api.github.com/users/fidian/gists{/gist_id}","starred_url":"https://api.github.com/users/fidian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidian/subscriptions","organizations_url":"https://api.github.com/users/fidian/orgs","repos_url":"https://api.github.com/users/fidian/repos","events_url":"https://api.github.com/users/fidian/events{/privacy}","received_events_url":"https://api.github.com/users/fidian/received_events","type":"User","site_admin":false},"repo":{"id":54569368,"name":"opentoken","full_name":"fidian/opentoken","owner":{"login":"fidian","id":428348,"avatar_url":"https://avatars.githubusercontent.com/u/428348?v=3","gravatar_id":"","url":"https://api.github.com/users/fidian","html_url":"https://github.com/fidian","followers_url":"https://api.github.com/users/fidian/followers","following_url":"https://api.github.com/users/fidian/following{/other_user}","gists_url":"https://api.github.com/users/fidian/gists{/gist_id}","starred_url":"https://api.github.com/users/fidian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidian/subscriptions","organizations_url":"https://api.github.com/users/fidian/orgs","repos_url":"https://api.github.com/users/fidian/repos","events_url":"https://api.github.com/users/fidian/events{/privacy}","received_events_url":"https://api.github.com/users/fidian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fidian/opentoken","description":"Public and free software API to tokenize or encrypt data.","fork":true,"url":"https://api.github.com/repos/fidian/opentoken","forks_url":"https://api.github.com/repos/fidian/opentoken/forks","keys_url":"https://api.github.com/repos/fidian/opentoken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fidian/opentoken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fidian/opentoken/teams","hooks_url":"https://api.github.com/repos/fidian/opentoken/hooks","issue_events_url":"https://api.github.com/repos/fidian/opentoken/issues/events{/number}","events_url":"https://api.github.com/repos/fidian/opentoken/events","assignees_url":"https://api.github.com/repos/fidian/opentoken/assignees{/user}","branches_url":"https://api.github.com/repos/fidian/opentoken/branches{/branch}","tags_url":"https://api.github.com/repos/fidian/opentoken/tags","blobs_url":"https://api.github.com/repos/fidian/opentoken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fidian/opentoken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fidian/opentoken/git/refs{/sha}","trees_url":"https://api.github.com/repos/fidian/opentoken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fidian/opentoken/statuses/{sha}","languages_url":"https://api.github.com/repos/fidian/opentoken/languages","stargazers_url":"https://api.github.com/repos/fidian/opentoken/stargazers","contributors_url":"https://api.github.com/repos/fidian/opentoken/contributors","subscribers_url":"https://api.github.com/repos/fidian/opentoken/subscribers","subscription_url":"https://api.github.com/repos/fidian/opentoken/subscription","commits_url":"https://api.github.com/repos/fidian/opentoken/commits{/sha}","git_commits_url":"https://api.github.com/repos/fidian/opentoken/git/commits{/sha}","comments_url":"https://api.github.com/repos/fidian/opentoken/comments{/number}","issue_comment_url":"https://api.github.com/repos/fidian/opentoken/issues/comments{/number}","contents_url":"https://api.github.com/repos/fidian/opentoken/contents/{+path}","compare_url":"https://api.github.com/repos/fidian/opentoken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fidian/opentoken/merges","archive_url":"https://api.github.com/repos/fidian/opentoken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fidian/opentoken/downloads","issues_url":"https://api.github.com/repos/fidian/opentoken/issues{/number}","pulls_url":"https://api.github.com/repos/fidian/opentoken/pulls{/number}","milestones_url":"https://api.github.com/repos/fidian/opentoken/milestones{/number}","notifications_url":"https://api.github.com/repos/fidian/opentoken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fidian/opentoken/labels{/name}","releases_url":"https://api.github.com/repos/fidian/opentoken/releases{/id}","deployments_url":"https://api.github.com/repos/fidian/opentoken/deployments","created_at":"2016-03-23T15:06:04Z","updated_at":"2016-03-25T12:19:37Z","pushed_at":"2016-09-08T14:33:21Z","git_url":"git://github.com/fidian/opentoken.git","ssh_url":"git@github.com:fidian/opentoken.git","clone_url":"https://github.com/fidian/opentoken.git","svn_url":"https://github.com/fidian/opentoken","homepage":"","size":433,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"opentoken-io:master","ref":"master","sha":"3cef5a8c0133ede7be1bf27266d53c5ab4c87589","user":{"login":"opentoken-io","id":17858137,"avatar_url":"https://avatars.githubusercontent.com/u/17858137?v=3","gravatar_id":"","url":"https://api.github.com/users/opentoken-io","html_url":"https://github.com/opentoken-io","followers_url":"https://api.github.com/users/opentoken-io/followers","following_url":"https://api.github.com/users/opentoken-io/following{/other_user}","gists_url":"https://api.github.com/users/opentoken-io/gists{/gist_id}","starred_url":"https://api.github.com/users/opentoken-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentoken-io/subscriptions","organizations_url":"https://api.github.com/users/opentoken-io/orgs","repos_url":"https://api.github.com/users/opentoken-io/repos","events_url":"https://api.github.com/users/opentoken-io/events{/privacy}","received_events_url":"https://api.github.com/users/opentoken-io/received_events","type":"Organization","site_admin":false},"repo":{"id":54493906,"name":"opentoken","full_name":"opentoken-io/opentoken","owner":{"login":"opentoken-io","id":17858137,"avatar_url":"https://avatars.githubusercontent.com/u/17858137?v=3","gravatar_id":"","url":"https://api.github.com/users/opentoken-io","html_url":"https://github.com/opentoken-io","followers_url":"https://api.github.com/users/opentoken-io/followers","following_url":"https://api.github.com/users/opentoken-io/following{/other_user}","gists_url":"https://api.github.com/users/opentoken-io/gists{/gist_id}","starred_url":"https://api.github.com/users/opentoken-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentoken-io/subscriptions","organizations_url":"https://api.github.com/users/opentoken-io/orgs","repos_url":"https://api.github.com/users/opentoken-io/repos","events_url":"https://api.github.com/users/opentoken-io/events{/privacy}","received_events_url":"https://api.github.com/users/opentoken-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opentoken-io/opentoken","description":"Public and free software API to tokenize or encrypt data.","fork":false,"url":"https://api.github.com/repos/opentoken-io/opentoken","forks_url":"https://api.github.com/repos/opentoken-io/opentoken/forks","keys_url":"https://api.github.com/repos/opentoken-io/opentoken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opentoken-io/opentoken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opentoken-io/opentoken/teams","hooks_url":"https://api.github.com/repos/opentoken-io/opentoken/hooks","issue_events_url":"https://api.github.com/repos/opentoken-io/opentoken/issues/events{/number}","events_url":"https://api.github.com/repos/opentoken-io/opentoken/events","assignees_url":"https://api.github.com/repos/opentoken-io/opentoken/assignees{/user}","branches_url":"https://api.github.com/repos/opentoken-io/opentoken/branches{/branch}","tags_url":"https://api.github.com/repos/opentoken-io/opentoken/tags","blobs_url":"https://api.github.com/repos/opentoken-io/opentoken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opentoken-io/opentoken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opentoken-io/opentoken/git/refs{/sha}","trees_url":"https://api.github.com/repos/opentoken-io/opentoken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opentoken-io/opentoken/statuses/{sha}","languages_url":"https://api.github.com/repos/opentoken-io/opentoken/languages","stargazers_url":"https://api.github.com/repos/opentoken-io/opentoken/stargazers","contributors_url":"https://api.github.com/repos/opentoken-io/opentoken/contributors","subscribers_url":"https://api.github.com/repos/opentoken-io/opentoken/subscribers","subscription_url":"https://api.github.com/repos/opentoken-io/opentoken/subscription","commits_url":"https://api.github.com/repos/opentoken-io/opentoken/commits{/sha}","git_commits_url":"https://api.github.com/repos/opentoken-io/opentoken/git/commits{/sha}","comments_url":"https://api.github.com/repos/opentoken-io/opentoken/comments{/number}","issue_comment_url":"https://api.github.com/repos/opentoken-io/opentoken/issues/comments{/number}","contents_url":"https://api.github.com/repos/opentoken-io/opentoken/contents/{+path}","compare_url":"https://api.github.com/repos/opentoken-io/opentoken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opentoken-io/opentoken/merges","archive_url":"https://api.github.com/repos/opentoken-io/opentoken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opentoken-io/opentoken/downloads","issues_url":"https://api.github.com/repos/opentoken-io/opentoken/issues{/number}","pulls_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls{/number}","milestones_url":"https://api.github.com/repos/opentoken-io/opentoken/milestones{/number}","notifications_url":"https://api.github.com/repos/opentoken-io/opentoken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opentoken-io/opentoken/labels{/name}","releases_url":"https://api.github.com/repos/opentoken-io/opentoken/releases{/id}","deployments_url":"https://api.github.com/repos/opentoken-io/opentoken/deployments","created_at":"2016-03-22T17:10:18Z","updated_at":"2016-08-26T17:23:11Z","pushed_at":"2016-09-08T14:34:15Z","git_url":"git://github.com/opentoken-io/opentoken.git","ssh_url":"git@github.com:opentoken-io/opentoken.git","clone_url":"https://github.com/opentoken-io/opentoken.git","svn_url":"https://github.com/opentoken-io/opentoken","homepage":"","size":779,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/114"},"html":{"href":"https://github.com/opentoken-io/opentoken/pull/114"},"issue":{"href":"https://api.github.com/repos/opentoken-io/opentoken/issues/114"},"comments":{"href":"https://api.github.com/repos/opentoken-io/opentoken/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/opentoken-io/opentoken/statuses/7409560d5091d1a2092cf70db86420f56066a97b"}}}}
{"actor":{"display_login":"AbsentSemicolon"}}