{"action":"created","issue":{"url":"https://api.github.com/repos/MadKudu/node-marketo/issues/34","repository_url":"https://api.github.com/repos/MadKudu/node-marketo","labels_url":"https://api.github.com/repos/MadKudu/node-marketo/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/MadKudu/node-marketo/issues/34/comments","events_url":"https://api.github.com/repos/MadKudu/node-marketo/issues/34/events","html_url":"https://github.com/MadKudu/node-marketo/pull/34","id":174085063,"number":34,"title":"Add event emitter to log apiCalls","user":{"login":"pcothenet","id":1460006,"avatar_url":"https://avatars.githubusercontent.com/u/1460006?v=3","gravatar_id":"","url":"https://api.github.com/users/pcothenet","html_url":"https://github.com/pcothenet","followers_url":"https://api.github.com/users/pcothenet/followers","following_url":"https://api.github.com/users/pcothenet/following{/other_user}","gists_url":"https://api.github.com/users/pcothenet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcothenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcothenet/subscriptions","organizations_url":"https://api.github.com/users/pcothenet/orgs","repos_url":"https://api.github.com/users/pcothenet/repos","events_url":"https://api.github.com/users/pcothenet/events{/privacy}","received_events_url":"https://api.github.com/users/pcothenet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-30T18:01:37Z","updated_at":"2016-08-30T21:25:47Z","closed_at":"2016-08-30T18:01:50Z","pull_request":{"url":"https://api.github.com/repos/MadKudu/node-marketo/pulls/34","html_url":"https://github.com/MadKudu/node-marketo/pull/34","diff_url":"https://github.com/MadKudu/node-marketo/pull/34.diff","patch_url":"https://github.com/MadKudu/node-marketo/pull/34.patch"},"body":"Experimental feature to allow for better surveillance of the total number of API calls made.\r\n\r\nThe connection keeps track of the number of Marketo API call it makes. Each one gets emitted as an 'apiCall' event by the client.\r\n\r\nUsable via\r\n```\r\nmarketo.on('apiCall', data => {\r\n    console.log(data);\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/MadKudu/node-marketo/issues/comments/243586367","html_url":"https://github.com/MadKudu/node-marketo/pull/34#issuecomment-243586367","issue_url":"https://api.github.com/repos/MadKudu/node-marketo/issues/34","id":243586367,"user":{"login":"pcothenet","id":1460006,"avatar_url":"https://avatars.githubusercontent.com/u/1460006?v=3","gravatar_id":"","url":"https://api.github.com/users/pcothenet","html_url":"https://github.com/pcothenet","followers_url":"https://api.github.com/users/pcothenet/followers","following_url":"https://api.github.com/users/pcothenet/following{/other_user}","gists_url":"https://api.github.com/users/pcothenet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcothenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcothenet/subscriptions","organizations_url":"https://api.github.com/users/pcothenet/orgs","repos_url":"https://api.github.com/users/pcothenet/repos","events_url":"https://api.github.com/users/pcothenet/events{/privacy}","received_events_url":"https://api.github.com/users/pcothenet/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T21:25:47Z","updated_at":"2016-08-30T21:25:47Z","body":"Ah good call. I should be able to use regular function, that will keep backward compatibility a bit longer.\r\n\r\nThanks!"}}
{"actor":{"display_login":"pcothenet"}}