{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/sophsec/ffi-otr/pulls/2","id":63175231,"html_url":"https://github.com/sophsec/ffi-otr/pull/2","diff_url":"https://github.com/sophsec/ffi-otr/pull/2.diff","patch_url":"https://github.com/sophsec/ffi-otr/pull/2.patch","issue_url":"https://api.github.com/repos/sophsec/ffi-otr/issues/2","number":2,"state":"open","locked":false,"title":"Add callbacks and UserState abstraction","user":{"login":"mhanne","id":168449,"avatar_url":"https://avatars.githubusercontent.com/u/168449?v=3","gravatar_id":"","url":"https://api.github.com/users/mhanne","html_url":"https://github.com/mhanne","followers_url":"https://api.github.com/users/mhanne/followers","following_url":"https://api.github.com/users/mhanne/following{/other_user}","gists_url":"https://api.github.com/users/mhanne/gists{/gist_id}","starred_url":"https://api.github.com/users/mhanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhanne/subscriptions","organizations_url":"https://api.github.com/users/mhanne/orgs","repos_url":"https://api.github.com/users/mhanne/repos","events_url":"https://api.github.com/users/mhanne/events{/privacy}","received_events_url":"https://api.github.com/users/mhanne/received_events","type":"User","site_admin":false},"body":"It's been a while, but I just noticed there wasn't a PR for this. I think I sent you a message about it, but that is probably lost with githubs private messaging feature...\r\n\r\nAnyway, this makes it easy to integrate ffi-otr into an application (see https://github.com/brettstimmerman/jabber-bot/pull/10/commits/95b8f6fa1fdcde314c14bcb555e446ee2c3a946d for example). There are probably some issues with it, but it seems to work well chatting with pidgin.","created_at":"2016-03-17T05:31:34Z","updated_at":"2016-03-17T05:31:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sophsec/ffi-otr/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sophsec/ffi-otr/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sophsec/ffi-otr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sophsec/ffi-otr/issues/2/comments","statuses_url":"https://api.github.com/repos/sophsec/ffi-otr/statuses/d98783fb59a3eebdcb9ca781c33c2ef5fea3895e","head":{"label":"mhanne:master","ref":"master","sha":"d98783fb59a3eebdcb9ca781c33c2ef5fea3895e","user":{"login":"mhanne","id":168449,"avatar_url":"https://avatars.githubusercontent.com/u/168449?v=3","gravatar_id":"","url":"https://api.github.com/users/mhanne","html_url":"https://github.com/mhanne","followers_url":"https://api.github.com/users/mhanne/followers","following_url":"https://api.github.com/users/mhanne/following{/other_user}","gists_url":"https://api.github.com/users/mhanne/gists{/gist_id}","starred_url":"https://api.github.com/users/mhanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhanne/subscriptions","organizations_url":"https://api.github.com/users/mhanne/orgs","repos_url":"https://api.github.com/users/mhanne/repos","events_url":"https://api.github.com/users/mhanne/events{/privacy}","received_events_url":"https://api.github.com/users/mhanne/received_events","type":"User","site_admin":false},"repo":{"id":7257424,"name":"ffi-otr","full_name":"mhanne/ffi-otr","owner":{"login":"mhanne","id":168449,"avatar_url":"https://avatars.githubusercontent.com/u/168449?v=3","gravatar_id":"","url":"https://api.github.com/users/mhanne","html_url":"https://github.com/mhanne","followers_url":"https://api.github.com/users/mhanne/followers","following_url":"https://api.github.com/users/mhanne/following{/other_user}","gists_url":"https://api.github.com/users/mhanne/gists{/gist_id}","starred_url":"https://api.github.com/users/mhanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhanne/subscriptions","organizations_url":"https://api.github.com/users/mhanne/orgs","repos_url":"https://api.github.com/users/mhanne/repos","events_url":"https://api.github.com/users/mhanne/events{/privacy}","received_events_url":"https://api.github.com/users/mhanne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhanne/ffi-otr","description":"Ruby FFI bindings for the Off-The-Record Messaging library.","fork":true,"url":"https://api.github.com/repos/mhanne/ffi-otr","forks_url":"https://api.github.com/repos/mhanne/ffi-otr/forks","keys_url":"https://api.github.com/repos/mhanne/ffi-otr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhanne/ffi-otr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhanne/ffi-otr/teams","hooks_url":"https://api.github.com/repos/mhanne/ffi-otr/hooks","issue_events_url":"https://api.github.com/repos/mhanne/ffi-otr/issues/events{/number}","events_url":"https://api.github.com/repos/mhanne/ffi-otr/events","assignees_url":"https://api.github.com/repos/mhanne/ffi-otr/assignees{/user}","branches_url":"https://api.github.com/repos/mhanne/ffi-otr/branches{/branch}","tags_url":"https://api.github.com/repos/mhanne/ffi-otr/tags","blobs_url":"https://api.github.com/repos/mhanne/ffi-otr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhanne/ffi-otr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhanne/ffi-otr/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhanne/ffi-otr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhanne/ffi-otr/statuses/{sha}","languages_url":"https://api.github.com/repos/mhanne/ffi-otr/languages","stargazers_url":"https://api.github.com/repos/mhanne/ffi-otr/stargazers","contributors_url":"https://api.github.com/repos/mhanne/ffi-otr/contributors","subscribers_url":"https://api.github.com/repos/mhanne/ffi-otr/subscribers","subscription_url":"https://api.github.com/repos/mhanne/ffi-otr/subscription","commits_url":"https://api.github.com/repos/mhanne/ffi-otr/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhanne/ffi-otr/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhanne/ffi-otr/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhanne/ffi-otr/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhanne/ffi-otr/contents/{+path}","compare_url":"https://api.github.com/repos/mhanne/ffi-otr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhanne/ffi-otr/merges","archive_url":"https://api.github.com/repos/mhanne/ffi-otr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhanne/ffi-otr/downloads","issues_url":"https://api.github.com/repos/mhanne/ffi-otr/issues{/number}","pulls_url":"https://api.github.com/repos/mhanne/ffi-otr/pulls{/number}","milestones_url":"https://api.github.com/repos/mhanne/ffi-otr/milestones{/number}","notifications_url":"https://api.github.com/repos/mhanne/ffi-otr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhanne/ffi-otr/labels{/name}","releases_url":"https://api.github.com/repos/mhanne/ffi-otr/releases{/id}","deployments_url":"https://api.github.com/repos/mhanne/ffi-otr/deployments","created_at":"2012-12-20T12:32:57Z","updated_at":"2016-03-17T05:03:24Z","pushed_at":"2016-03-17T05:03:24Z","git_url":"git://github.com/mhanne/ffi-otr.git","ssh_url":"git@github.com:mhanne/ffi-otr.git","clone_url":"https://github.com/mhanne/ffi-otr.git","svn_url":"https://github.com/mhanne/ffi-otr","homepage":"http://www.sophsec.com/","size":22,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"base":{"label":"sophsec:master","ref":"master","sha":"e7614c98b1e717d224c2e80e5007579b2dd7ed7d","user":{"login":"sophsec","id":35068,"avatar_url":"https://avatars.githubusercontent.com/u/35068?v=3","gravatar_id":"","url":"https://api.github.com/users/sophsec","html_url":"https://github.com/sophsec","followers_url":"https://api.github.com/users/sophsec/followers","following_url":"https://api.github.com/users/sophsec/following{/other_user}","gists_url":"https://api.github.com/users/sophsec/gists{/gist_id}","starred_url":"https://api.github.com/users/sophsec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophsec/subscriptions","organizations_url":"https://api.github.com/users/sophsec/orgs","repos_url":"https://api.github.com/users/sophsec/repos","events_url":"https://api.github.com/users/sophsec/events{/privacy}","received_events_url":"https://api.github.com/users/sophsec/received_events","type":"Organization","site_admin":false},"repo":{"id":815545,"name":"ffi-otr","full_name":"sophsec/ffi-otr","owner":{"login":"sophsec","id":35068,"avatar_url":"https://avatars.githubusercontent.com/u/35068?v=3","gravatar_id":"","url":"https://api.github.com/users/sophsec","html_url":"https://github.com/sophsec","followers_url":"https://api.github.com/users/sophsec/followers","following_url":"https://api.github.com/users/sophsec/following{/other_user}","gists_url":"https://api.github.com/users/sophsec/gists{/gist_id}","starred_url":"https://api.github.com/users/sophsec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophsec/subscriptions","organizations_url":"https://api.github.com/users/sophsec/orgs","repos_url":"https://api.github.com/users/sophsec/repos","events_url":"https://api.github.com/users/sophsec/events{/privacy}","received_events_url":"https://api.github.com/users/sophsec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sophsec/ffi-otr","description":"Ruby FFI bindings for the Off-The-Record Messaging library.","fork":false,"url":"https://api.github.com/repos/sophsec/ffi-otr","forks_url":"https://api.github.com/repos/sophsec/ffi-otr/forks","keys_url":"https://api.github.com/repos/sophsec/ffi-otr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sophsec/ffi-otr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sophsec/ffi-otr/teams","hooks_url":"https://api.github.com/repos/sophsec/ffi-otr/hooks","issue_events_url":"https://api.github.com/repos/sophsec/ffi-otr/issues/events{/number}","events_url":"https://api.github.com/repos/sophsec/ffi-otr/events","assignees_url":"https://api.github.com/repos/sophsec/ffi-otr/assignees{/user}","branches_url":"https://api.github.com/repos/sophsec/ffi-otr/branches{/branch}","tags_url":"https://api.github.com/repos/sophsec/ffi-otr/tags","blobs_url":"https://api.github.com/repos/sophsec/ffi-otr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sophsec/ffi-otr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sophsec/ffi-otr/git/refs{/sha}","trees_url":"https://api.github.com/repos/sophsec/ffi-otr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sophsec/ffi-otr/statuses/{sha}","languages_url":"https://api.github.com/repos/sophsec/ffi-otr/languages","stargazers_url":"https://api.github.com/repos/sophsec/ffi-otr/stargazers","contributors_url":"https://api.github.com/repos/sophsec/ffi-otr/contributors","subscribers_url":"https://api.github.com/repos/sophsec/ffi-otr/subscribers","subscription_url":"https://api.github.com/repos/sophsec/ffi-otr/subscription","commits_url":"https://api.github.com/repos/sophsec/ffi-otr/commits{/sha}","git_commits_url":"https://api.github.com/repos/sophsec/ffi-otr/git/commits{/sha}","comments_url":"https://api.github.com/repos/sophsec/ffi-otr/comments{/number}","issue_comment_url":"https://api.github.com/repos/sophsec/ffi-otr/issues/comments{/number}","contents_url":"https://api.github.com/repos/sophsec/ffi-otr/contents/{+path}","compare_url":"https://api.github.com/repos/sophsec/ffi-otr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sophsec/ffi-otr/merges","archive_url":"https://api.github.com/repos/sophsec/ffi-otr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sophsec/ffi-otr/downloads","issues_url":"https://api.github.com/repos/sophsec/ffi-otr/issues{/number}","pulls_url":"https://api.github.com/repos/sophsec/ffi-otr/pulls{/number}","milestones_url":"https://api.github.com/repos/sophsec/ffi-otr/milestones{/number}","notifications_url":"https://api.github.com/repos/sophsec/ffi-otr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sophsec/ffi-otr/labels{/name}","releases_url":"https://api.github.com/repos/sophsec/ffi-otr/releases{/id}","deployments_url":"https://api.github.com/repos/sophsec/ffi-otr/deployments","created_at":"2010-08-03T21:07:18Z","updated_at":"2015-11-23T03:35:30Z","pushed_at":"2016-03-17T05:31:34Z","git_url":"git://github.com/sophsec/ffi-otr.git","ssh_url":"git@github.com:sophsec/ffi-otr.git","clone_url":"https://github.com/sophsec/ffi-otr.git","svn_url":"https://github.com/sophsec/ffi-otr","homepage":"http://www.sophsec.com/","size":100,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sophsec/ffi-otr/pulls/2"},"html":{"href":"https://github.com/sophsec/ffi-otr/pull/2"},"issue":{"href":"https://api.github.com/repos/sophsec/ffi-otr/issues/2"},"comments":{"href":"https://api.github.com/repos/sophsec/ffi-otr/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sophsec/ffi-otr/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sophsec/ffi-otr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sophsec/ffi-otr/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sophsec/ffi-otr/statuses/d98783fb59a3eebdcb9ca781c33c2ef5fea3895e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":557,"deletions":3,"changed_files":11}}