{"action":"created","issue":{"url":"https://api.github.com/repos/ynab/ynab-sdk-js/issues/43","repository_url":"https://api.github.com/repos/ynab/ynab-sdk-js","labels_url":"https://api.github.com/repos/ynab/ynab-sdk-js/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/ynab/ynab-sdk-js/issues/43/comments","events_url":"https://api.github.com/repos/ynab/ynab-sdk-js/issues/43/events","html_url":"https://github.com/ynab/ynab-sdk-js/issues/43","id":320137043,"number":43,"title":"npm published code out of sync with documentation","user":{"login":"ctlevi","id":2659793,"avatar_url":"https://avatars3.githubusercontent.com/u/2659793?v=4","gravatar_id":"","url":"https://api.github.com/users/ctlevi","html_url":"https://github.com/ctlevi","followers_url":"https://api.github.com/users/ctlevi/followers","following_url":"https://api.github.com/users/ctlevi/following{/other_user}","gists_url":"https://api.github.com/users/ctlevi/gists{/gist_id}","starred_url":"https://api.github.com/users/ctlevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctlevi/subscriptions","organizations_url":"https://api.github.com/users/ctlevi/orgs","repos_url":"https://api.github.com/users/ctlevi/repos","events_url":"https://api.github.com/users/ctlevi/events{/privacy}","received_events_url":"https://api.github.com/users/ctlevi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-04T02:25:55Z","updated_at":"2018-05-04T03:15:12Z","closed_at":"2018-05-04T03:08:45Z","author_association":"NONE","body":"Super minor, but I had to look at the compiled JS in node_modules to figure this one out. The current README uses `new ynab.API()`, but the current code in npm does not have that available yet, instead it only seems to have `new ynab.api()`. I probably should have went to npm's README, but I usually just look at the github page, so it threw me off.\r\n\r\nFurthermore, the [api documentation page](https://api.youneedabudget.com/#client-javascript) seems to be using an even older initialization that is no longer available and gives you `TypeError: ynabApi is not a constructor`"},"comment":{"url":"https://api.github.com/repos/ynab/ynab-sdk-js/issues/comments/386496370","html_url":"https://github.com/ynab/ynab-sdk-js/issues/43#issuecomment-386496370","issue_url":"https://api.github.com/repos/ynab/ynab-sdk-js/issues/43","id":386496370,"user":{"login":"bradymholt","id":759811,"avatar_url":"https://avatars0.githubusercontent.com/u/759811?v=4","gravatar_id":"","url":"https://api.github.com/users/bradymholt","html_url":"https://github.com/bradymholt","followers_url":"https://api.github.com/users/bradymholt/followers","following_url":"https://api.github.com/users/bradymholt/following{/other_user}","gists_url":"https://api.github.com/users/bradymholt/gists{/gist_id}","starred_url":"https://api.github.com/users/bradymholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradymholt/subscriptions","organizations_url":"https://api.github.com/users/bradymholt/orgs","repos_url":"https://api.github.com/users/bradymholt/repos","events_url":"https://api.github.com/users/bradymholt/events{/privacy}","received_events_url":"https://api.github.com/users/bradymholt/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T03:15:12Z","updated_at":"2018-05-04T03:15:12Z","author_association":"OWNER","body":"Thanks @ctlevi !  [v 0.16.0](https://www.npmjs.com/package/ynab/v/0.16.0) on npm has been published which should include the updated interface.  We'll get the docs updated as well.  We made this change but hadn't pushed it up to npm yet but as you pointed out the README was out of sync with what was published.  Thanks for pointing that out!"}}
{"actor":{"display_login":"bradymholt"}}