{"action":"opened","issue":{"url":"https://api.github.com/repos/SkygearIO/skygear-doc/issues/295","repository_url":"https://api.github.com/repos/SkygearIO/skygear-doc","labels_url":"https://api.github.com/repos/SkygearIO/skygear-doc/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/SkygearIO/skygear-doc/issues/295/comments","events_url":"https://api.github.com/repos/SkygearIO/skygear-doc/issues/295/events","html_url":"https://github.com/SkygearIO/skygear-doc/issues/295","id":171137562,"number":295,"title":"The setup for pubsub in plugin is incorrect","user":{"login":"nnkken","id":6733599,"avatar_url":"https://avatars.githubusercontent.com/u/6733599?v=3","gravatar_id":"","url":"https://api.github.com/users/nnkken","html_url":"https://github.com/nnkken","followers_url":"https://api.github.com/users/nnkken/followers","following_url":"https://api.github.com/users/nnkken/following{/other_user}","gists_url":"https://api.github.com/users/nnkken/gists{/gist_id}","starred_url":"https://api.github.com/users/nnkken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnkken/subscriptions","organizations_url":"https://api.github.com/users/nnkken/orgs","repos_url":"https://api.github.com/users/nnkken/repos","events_url":"https://api.github.com/users/nnkken/events{/privacy}","received_events_url":"https://api.github.com/users/nnkken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-15T09:29:54Z","updated_at":"2016-08-15T09:29:54Z","closed_at":null,"body":"According to `skygear-doc/content/plugin/pubsub.md`, the pubsub instance setup is like this:\r\n\r\n    container = SkygearContainer()\r\n    pubsub = container.pubsub()\r\n\r\nBut `SkygearContainer` instance has no method named `pubsub`.\r\nThe correct setup should be through `skygear.pubsub`."}}
{"actor":{"display_login":"nnkken"}}