{"action":"created","issue":{"url":"https://api.github.com/repos/richardschneider/ecom/issues/68","labels_url":"https://api.github.com/repos/richardschneider/ecom/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/richardschneider/ecom/issues/68/comments","events_url":"https://api.github.com/repos/richardschneider/ecom/issues/68/events","html_url":"https://github.com/richardschneider/ecom/issues/68","id":117240015,"number":68,"title":"Service configuration","user":{"login":"richardschneider","id":631061,"avatar_url":"https://avatars.githubusercontent.com/u/631061?v=3","gravatar_id":"","url":"https://api.github.com/users/richardschneider","html_url":"https://github.com/richardschneider","followers_url":"https://api.github.com/users/richardschneider/followers","following_url":"https://api.github.com/users/richardschneider/following{/other_user}","gists_url":"https://api.github.com/users/richardschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/richardschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardschneider/subscriptions","organizations_url":"https://api.github.com/users/richardschneider/orgs","repos_url":"https://api.github.com/users/richardschneider/repos","events_url":"https://api.github.com/users/richardschneider/events{/privacy}","received_events_url":"https://api.github.com/users/richardschneider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T23:03:19Z","updated_at":"2015-11-19T05:44:48Z","closed_at":null,"body":"Services (such as yandex or mymemory) typically require an API key or other config information.\r\n\r\nNeed someway of storing this info and then giving the service access to it."},"comment":{"url":"https://api.github.com/repos/richardschneider/ecom/issues/comments/157958556","html_url":"https://github.com/richardschneider/ecom/issues/68#issuecomment-157958556","issue_url":"https://api.github.com/repos/richardschneider/ecom/issues/68","id":157958556,"user":{"login":"richardschneider","id":631061,"avatar_url":"https://avatars.githubusercontent.com/u/631061?v=3","gravatar_id":"","url":"https://api.github.com/users/richardschneider","html_url":"https://github.com/richardschneider","followers_url":"https://api.github.com/users/richardschneider/followers","following_url":"https://api.github.com/users/richardschneider/following{/other_user}","gists_url":"https://api.github.com/users/richardschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/richardschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardschneider/subscriptions","organizations_url":"https://api.github.com/users/richardschneider/orgs","repos_url":"https://api.github.com/users/richardschneider/repos","events_url":"https://api.github.com/users/richardschneider/events{/privacy}","received_events_url":"https://api.github.com/users/richardschneider/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T05:44:48Z","updated_at":"2015-11-19T05:44:48Z","body":"A service is always passed its options (configuration) as the last parameter.  Here's a sample implementation of a translation service\r\n\r\n````\r\nvar babel_fish= function (text, options) { .... }\r\n\r\nbabel_fish.details = {\r\n    name: [{tag: 'en', text: 'HHGTTG babel fish translator'}],\r\n    use: 'translation',\r\n    enabled: true,\r\n    home: 'http://hitchhikers.wikia.com/wiki/Babel_Fish',\r\n    options: {\r\n        towel: 'must have'\r\n    },\r\n};\r\n\r\nmodule.exports = babel_fish;\r\n\r\n\r\n````\r\n\r\n"}}