{"_id":"3scale","_rev":"36-c04a8530cdfbab030c4723980dc44eb5","name":"3scale","description":"Client for 3Scale Networks API","dist-tags":{"latest":"0.7.6"},"versions":{"0.2.0":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.2.0","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"vows test/* --spec"},"dependencies":{"libxmljs-easy":"*"},"devDependencies":{"coffee-script":"1.x","vows":"0.5.x"},"engines":{"node":"*"},"optionalDependencies":{},"_npmUser":{"name":"michal.3scale","email":"michal@3scale.net"},"_id":"3scale@0.2.0","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"55238ea05a98eb8da31d6e0cabe6b83ce7f6880c","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.2.0.tgz","integrity":"sha512-EM2FzVwWoCJ0Ll3hAK92wkLVlZIwEhaT+bQxtNkjyuiZJVMGXsXHhTlcRE3zrG7MUxnbFOadac3F+yrUKdQIUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHmmxS7LO6tun03oEXBenPDj9+KISEYyoD9tnmqy6g/BAiEAp7hafh/Btv3Z3aImRPFsFTartPV5odO6KM5wwYALwl8="}]},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"}]},"0.3.2":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.3.2","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"vows test/* --spec"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"*"},"devDependencies":{"coffee-script":"1.x","vows":"0.5.x"},"engines":{"node":"0.8.x"},"optionalDependencies":{},"_npmUser":{"name":"michal.3scale","email":"michal@3scale.net"},"_id":"3scale@0.3.2","_engineSupported":false,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"3d4b27b6290b319108b8537d8507ac93c2ffc0ce","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.3.2.tgz","integrity":"sha512-+UxoZUVtWHqwKChZFxUJgxMuNfhwRMzuaQeLovjX5H4ZzsfWau8UPdfekWNV+lcCqGfJPUU5ysVSZZb8kNkXZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHOJjgEHHl//BibuExw7B0taxhRUeJgs53/Igv7XvJwgIgcdQuDd7Y3K/2/5euvrXnT2hAD0IRwebGCjqt92OTiUk="}]},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"}]},"0.3.3":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.3.3","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"vows test/* --spec"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"*"},"devDependencies":{"coffee-script":"1.x","vows":"0.5.x"},"engines":{"node":"0.8.x"},"optionalDependencies":{},"_id":"3scale@0.3.3","dist":{"shasum":"a185638b23f9f497ef29a5c0357032186e1a6d81","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.3.3.tgz","integrity":"sha512-nGKPRFRd7LbBo3c+9OQ+4FDe9KQdHm/mb7aBxRQORAHcsH6EwsyJWtbUKyF+XND1h/kd1VnWL+Bohirfgc3xuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGG6SvJj2IsjxBNk83VweKhucLY2M7IqRPl66ZnOyKxmAiEAsYg/zRD3ksEoziDOrK9LGqSinidg/D7tvi7IF4xx0v8="}]},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"}]},"0.4.0":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.4.0","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"vows test/* --spec"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"*"},"devDependencies":{"coffee-script":"1.x","vows":"0.5.x"},"engines":{"node":"0.8.x"},"optionalDependencies":{},"_id":"3scale@0.4.0","dist":{"shasum":"c74299f8dfc17961226c88272593957583ad4678","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.4.0.tgz","integrity":"sha512-Y4xSYiLiWrUqVTwEbPDWpqmg0PG2GkxRUxcz2Ipujg8Jguy+c/egVXRZglGpyJqhg8lGTD+M+xMdJydUXhIZWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAX+JF/rdThpmGBwrLlQLVk+fPBwe7iUpLbWvZXg6UyyAiEAtUp3tocncPO9EYz8gMJ+mToGOlj94dMA67jWDXO8gWU="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"michal.3scale","email":"michal@3scale.net"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"}]},"0.4.1":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.4.1","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"vows test/* --spec"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"*"},"devDependencies":{"coffee-script":"1.x","vows":"0.5.x"},"engines":{"node":"0.8.x"},"optionalDependencies":{},"_id":"3scale@0.4.1","dist":{"shasum":"43af3055d1336d5138b7c631be5afa29a21d0c15","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.4.1.tgz","integrity":"sha512-RBphSFNllnjwOFN5kmx6UxotEDufqM+Tp2G/SeaoEyUNPXRpmv+XNrdU2kUJB6vvyD/RnCWakIH68kQKD8CPCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDyGq3AbcM8OgMFs6dWn8NMAYJkrrUj2fRlHIHXvnvmAIhAL6p9XQg29xC3UHDcwN0vs1M+WcAN6MgwXfwHdvKJWRQ"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"victordg","email":"vdel26@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"}]},"0.4.2":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.4.2","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"vows test/* --spec"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"*"},"devDependencies":{"coffee-script":"1.x","vows":"0.5.x"},"engines":{"node":"0.8.x"},"optionalDependencies":{},"_id":"3scale@0.4.2","dist":{"shasum":"7dc120eb1d0583bfe43de5c5a488fdfd190652a7","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.4.2.tgz","integrity":"sha512-X6IwLif68qebfyfAfmbFR1cd8Bf+BsMrG+FGoAClKu4R6rBDzWmfkeVJ9IMQ99T4mW0sh6qxhSWGu2L96TpGEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGwLSja3Mn+s0ltwPBGzFh8pBq6jKgjW13/MLBdqhL7AIhALSP+f37zlrFVP7zofhPFZz1SyhmP+T+h33c94LgRC/j"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"victordg","email":"vdel26@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"}]},"0.5.0":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.5.0","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"vows test/* --spec"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"*"},"devDependencies":{"coffee-script":"1.x","nock":"0.46.0","vows":"0.5.x"},"engines":{"node":">=0.8.0","npm":">=1.4.0"},"optionalDependencies":{},"gitHead":"964c5804bf7f59f169c54117c9fb59361a04e7b3","_id":"3scale@0.5.0","_shasum":"e109b917440bb1c5913952b1c0a17935d7a99795","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"victordg","email":"vdel26@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"}],"dist":{"shasum":"e109b917440bb1c5913952b1c0a17935d7a99795","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.5.0.tgz","integrity":"sha512-OJAqtgRMyXDCyi/C3Vpkzi/9P6zuSS6NQg/Z1b9Dj/0LAlqIVyZ9rQ/GxTCoV6TAZgYo8UgqVTTToDfDfS3RbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2GaaYprkQur+gsZVbK3T85Ey8+kAi5HZ6vNB1Ff4t0AiEAu0cMiVrOfwVQljIVgY0WMvp4K4JGpvglF86rN3TLhxk="}]}},"0.5.1":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.5.1","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"vows test/* --spec"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"*"},"devDependencies":{"coffee-script":"1.x","nock":"0.46.0","vows":"0.5.x"},"engines":{"node":">=0.8.0","npm":">=1.4.0"},"optionalDependencies":{},"gitHead":"dab90b357762ae9f4ee8ccd7ef4844ee988ab457","_id":"3scale@0.5.1","_shasum":"553c6cf113d32a15a69ac0632285b4b14f607e14","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"cris7ian","email":"cristiancaroli@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"dist":{"shasum":"553c6cf113d32a15a69ac0632285b4b14f607e14","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.5.1.tgz","integrity":"sha512-Shi36qZk3HxQ7IgJ1wlOr4u4cLDoNsFiSv3vEv8Y7U317y8HyHCOuVMc1DMq/FxnETLhbjqf86lsNI5oww7BNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBap/RHBhpPjMfiBhQwMDgNihowVRqvFvY/mHD+Gda9SAiAPQK6T6nOkzREM/cwk8m7/+rtpsWpQyLlKLGVK/zfhcg=="}]}},"0.6.1":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.6.1","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"^5.2.0"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"461ae0f70982a1eb914adf00cadc93aa720e3bd2","_id":"3scale@0.6.1","_shasum":"82fc276f846d11a430409059c03ca1bf4b50eecd","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.0.0","_npmUser":{"name":"victordg","email":"vdel26@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"dist":{"shasum":"82fc276f846d11a430409059c03ca1bf4b50eecd","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.6.1.tgz","integrity":"sha512-A4RwaocGFEXCpAD//e3u7ej6Z5c/klan8Fa47CEKhVx9dvfu6Te+Fl+9fXwlhXdkMix2ZT5/3qwd4kllf0q1rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKM69LbJE9akXb3aEKTZm6pfXqscSjz1QQ+DigZNflSwIhAJ3wy/QJcYgH5O7vEDMZso8ZaSYtDObhh+O0JIFv0oZ1"}]}},"0.6.2":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.6.2","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/* -if 'Integration'","test-all":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"libxmljs":"*","qs":"^5.2.0"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"f223f6e87be4ce50b994a17a1013da0b4710e51f","_id":"3scale@0.6.2","_shasum":"e6c39ea5ce786ae8f2db3274d4c2c0c71f6bf667","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.0.0","_npmUser":{"name":"victordg","email":"vdel26@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"dist":{"shasum":"e6c39ea5ce786ae8f2db3274d4c2c0c71f6bf667","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.6.2.tgz","integrity":"sha512-jH2H6Q/dVLCv3+zjxzCxPn3XgKVOW3OVCkzSrP93Oh5L/cPTums0Xe5gAT/dMBhFfVyJGOadp7sHvoAtxczfwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAltI6pGQYFIe10UaXVVoIh4m90kAiG1OU6zta5WwfKtAiA0HKgP2EnsFwz0vhbsyHRcBi/+ulM6ug2BS/TY/0vOmg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/3scale-0.6.2.tgz_1457021489739_0.5916518871672451"}},"0.7.0":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.7.0","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/* -if 'Integration'","test-all":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"es6-promise":"^3.1.2","qs":"^5.2.0","xml2js":"^0.4.16"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"fd0f88505f569084bacc317d6e0cef4eb2a9fd9c","_id":"3scale@0.7.0","_shasum":"694a4ab7073b4c50abdc8255bd1043b533de5fe9","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.0.0","_npmUser":{"name":"victordg","email":"vdel26@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"dist":{"shasum":"694a4ab7073b4c50abdc8255bd1043b533de5fe9","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.7.0.tgz","integrity":"sha512-+SmdG8ODZmR1w1fP+9LXTBrHNL1fFmuDYdYqQcs1zgrBgK9eI17Wnplj+oJ/7bKZPAnZY9TnZ1ZXbLWHWJQHEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3aTFvOGvsWR6LaRuB3igis4MV7NW92YsbTpz8jZlvYQIhAMOlZWv/m6A8tPpyFsFGbIcMNN2xbAxu4JT4zulFfArk"}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/3scale-0.7.0.tgz_1457514436072_0.02734288084320724"}},"0.7.1":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.7.1","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/* -if 'Integration'","test-all":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"es6-promise":"^3.1.2","qs":"^5.2.0","xml2js":"^0.4.16"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"8bcb83ec6d4256220830498e4e069ebffac82e99","_id":"3scale@0.7.1","_shasum":"14daacd1e9b345af4240102ade7d647310ea2269","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.0.0","_npmUser":{"name":"victordg","email":"vdel26@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"dist":{"shasum":"14daacd1e9b345af4240102ade7d647310ea2269","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.7.1.tgz","integrity":"sha512-ekTiZUy6wmi+1jxlqU66hmzFERNC/hspDp6Nh/wcrNS2r8xs49Au0EGNghK5JsF7OhBbCkqyb2R5/CU8PWpKIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUdHcnYabIwGnSSwQ8SMthtqfjc3dQKtk20pOo6HkU7gIgeEopEVP0fre9bbCkJfVRLRqfBtJOPtPcY/U6J/dv28Q="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/3scale-0.7.1.tgz_1458212315485_0.9571306915022433"}},"0.7.2":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.7.2","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/* -if 'Integration'","test-all":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"es6-promise":"^3.1.2","qs":"^5.2.0","xml2js":"^0.4.16"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"73339d7095e8043d19007154890028d54345998f","_id":"3scale@0.7.2","_shasum":"cdcbcfce717807a932bb683d33835650833446cc","_from":".","_npmVersion":"3.3.5","_nodeVersion":"4.0.0","_npmUser":{"name":"victordg","email":"vdel26@gmail.com"},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"dist":{"shasum":"cdcbcfce717807a932bb683d33835650833446cc","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.7.2.tgz","integrity":"sha512-Nn+R1u0avYzi7Y+A4PeUz0MG2zhECKt0WJyWZsc3vpwWlLJWzu4/m+MUgqAvZCeLlABi9Tr6BmuE/TXXfC55yQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICiraA+asPan+lnJTV9si7OFq9NS/S3mv6a5qkojIfsPAiEAknVgnEEjpF0KIelYf9uSz6ldGIrjvtM7pYQEgCxYZGw="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/3scale-0.7.2.tgz_1459761821637_0.19940258120186627"}},"0.7.3":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.7.3","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/* -if 'Integration'","test-all":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"es6-promise":"^3.1.2","qs":"^5.2.0","xml2js":"^0.4.16"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"f2af82f3ff30b904918e047db2c2af2eba4c0af8","_id":"3scale@0.7.3","_shasum":"7950dcf0da2cb9c2c9bbf1c36e948fcd150cafb4","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"3scale","email":"support@3scale.net"},"dist":{"shasum":"7950dcf0da2cb9c2c9bbf1c36e948fcd150cafb4","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.7.3.tgz","integrity":"sha512-qv9KA51zVhUTprXXkBSr+Pf0hlMHi5gvbWSkUgQvUiPKtNyeYJiQJm4NvOmDspmiBXS55zTp4Q3ksnxBLRQlhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDGkoXNQWwSBpUxdZtAfX8DZ78ZBkeshQ59/KvLYYwsOAiA9WG13sTQTlzXIBcu2Gohq7nES+bzzND5ORF3MmlGMUQ=="}]},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/3scale-0.7.3.tgz_1486487500769_0.9462975503411144"}},"0.7.4":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.7.4","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/* -if 'Integration'","test-all":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"es6-promise":"^3.1.2","qs":"^5.2.0","xml2js":"^0.4.16"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"755c856f429b51862cb60cb1ed4ac289e413a9ac","_id":"3scale@0.7.4","_shasum":"924c015d3808b8cf1400fd9e2ae1fca644879dd8","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"3scale","email":"support@3scale.net"},"dist":{"shasum":"924c015d3808b8cf1400fd9e2ae1fca644879dd8","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.7.4.tgz","integrity":"sha512-63Bonhck3HIpxHMkORIXHOz9T5qPPZi2Ld8dzRLWLGsd18sdKXVhslpdWTE/OrQKxeS4W19mUoAd5uU29AlO9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4L5FGxcOFEIyMLKVVNPxQU9Z6wOBeuaBC4p/N2axVtAiEA/rNNS+w2biA4F/wVNVpXCReadexPEJTvVu5y+BulUlA="}]},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/3scale-0.7.4.tgz_1488281119039_0.7914514017757028"}},"0.7.5":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.7.5","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/* -if 'Integration'","test-all":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"es6-promise":"^3.1.2","qs":"^5.2.0","xml2js":"^0.4.16"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"ec40509e8643260c96bcc8ed5f05a8b47efd2694","_id":"3scale@0.7.5","_shasum":"975797d1ce7743fab86402d736d3a2a602178cb3","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"3scale","email":"support@3scale.net"},"dist":{"shasum":"975797d1ce7743fab86402d736d3a2a602178cb3","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.7.5.tgz","integrity":"sha512-93pr8TYVy4OPgyS8dxeMVC+Lco8lhicpcQ1C0Hyp13ptVEQgfptFj/f9gFRUvqZ2oKsIikDmF/fXj5EKy8Py6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGVRGPKWLgV0x4p85bBPoD2YDFCVoFAKC0G1B9AmXW0dAiB0Bav45JokHpjWYgcPvT6GZsqlfTiakoTFnL9G2Y/1mg=="}]},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/3scale-0.7.5.tgz_1489769743243_0.6099806160200387"}},"0.7.6":{"name":"3scale","description":"Client for 3Scale Networks API","version":"0.7.6","homepage":"http://www.3scale.net","repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"author":{"name":"3scale","email":"support@3scale.net"},"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"main":"lib/index.js","bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"keywords":["api","authorization","3scale","web"],"scripts":{"prepublish":"coffee --bare -o lib -c src","test":"mocha --compilers coffee:coffee-script/register test/* -if 'Integration'","test-all":"mocha --compilers coffee:coffee-script/register test/*"},"directories":{"lib":"./lib"},"dependencies":{"es6-promise":"^3.1.2","qs":"^5.2.0","xml2js":"^0.4.16"},"devDependencies":{"coffee-script":"^1.10.0","mocha":"^2.3.4","nock":"^3.3.2"},"engines":{"node":">=0.10.0","npm":">=2.0.0"},"optionalDependencies":{},"gitHead":"3c336d0b2500307555368595a2082cbeb6e8b791","_id":"3scale@0.7.6","_shasum":"e7c3820f578bb114e783033556fc6cce0a3f9c25","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"3scale","email":"support@3scale.net"},"dist":{"shasum":"e7c3820f578bb114e783033556fc6cce0a3f9c25","tarball":"https://registry.npmjs.org/3scale/-/3scale-0.7.6.tgz","integrity":"sha512-ELIGbRtMLNQjjiDOHFqKlkk0gner9octkvcSysdv+tEjR0DBjtwlL2gNR7IOTtzPn4vbrEriq//hlSCDatkwJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBleUNKOTktKVg3xixjyWIixL5cBLufqcyPf604ldJ97AiEAx5HB97o8Mnfj4TWECEl2QSFFdTSlNYOfYfsdxHq+axs="}]},"maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/3scale-0.7.6.tgz_1489772710737_0.7881816253066063"}}},"readme":"# 3scale integration plugin for JavaScript/CoffeeScript/Node.js applications [![Build Status](https://secure.travis-ci.org/3scale/3scale_ws_api_for_nodejs.png?branch=master)](http://travis-ci.org/3scale/3scale_ws_api_for_nodejs)\n\n3scale is an API Infrastructure service which handles API Keys, Rate Limiting, Analytics, Billing Payments and Developer Management.\nIncludes a configurable API dashboard and developer portal CMS.\nMore product stuff at http://www.3scale.net/, support information at http://support.3scale.net/.\n\n## Installation\n\nThe module is delivered through the package manager npm, so that the installation should be easy as: `npm install 3scale`\n\n\n## Requirements\n\nStarting at version 0.6.0, this plugin requires using **Node.js versions 0.10.x or higher**.\n\n\n## Synopsis\n\nThis plugin supports the 3 main calls to the 3scale Service Management API:\n\n- authrep grants access to your API and reports the traffic on it in one call.\n- authorize grants access to your API.\n- report reports traffic on your API.\n\n3scale supports 3 authentication modes: App Id, User Key and OAuth. The first two are similar on their calls to the Service Management API, they support authrep. OAuth differs in its usage two calls are required: first authorize then report.\n\n## Usage\n\n> NOTE: From November 2016 `service_id` is mandatory.\n\n### Authrep\n\nAuthrep is a 'one-shot' operation to authorize an application and report the associated transaction at the same time. The main difference between this call and the regular **authorize** call is that usage will be reported if the authorization is successful. Read more about authrep at the active docs page on the [3scale's support site](https://support.3scale.net/reference/active-docs).\n\nHere is an example assuming that you are using the `app_id/app_key` authentication mode:\n```javascript\n\nvar Client = require('3scale').Client;\n\n//Create a Client with a given host and port when connecting to an on-premise instance of the 3scale platform:\nclient = new Client({host: \"service_management_api.example.com\", port: 80});\n\n/* or create a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client();\n*/\n\nclient.authrep({ service_token: \"your service token\", service_id: \"your service id\", app_id: \"your application id\", app_key: \"your application key\", usage: { \"hits\": 1 } }, function(response){\n  console.log(response);\n});\n\n/* If you don't use service_token in the method, you'll be expected to specify a provider_key parameter in the Client instance, which is deprecated in favor of using service_token in the method.\n\nCreate a Client with a given host and port:\nclient = new Client(\"your provider key\",{host: \"service_management_api.example.com\", port: 80});\n\nor \n\nCreate a Client with default host and port.This will comunicate with the 3scale platform SaaS default server:\nclient = new Client(\"your provider key\");\n\nclient.authrep({ service_id: \"your service id\", app_id: \"your application id\", app_key: \"your application key\", usage: { \"hits\": 1 } }, function(response){\n  console.log(response);\n});\n*/\n```\n\nIn case you have your API authentication configured in 3scale to use the `user_key` mode, this would be the equivalent to the example above:\n\n```javascript\nvar Client = require('3scale').Client;\n\n//Create a Client with a given host and port when connecting to an on-premise instance of the 3scale platform:\nclient = new Client({host: \"service_management_api.example.com\", port: 80});\n\n/* or create a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client();\n*/\n\nclient.authrep_with_user_key({ service_token: \"your service token\", service_id: \"your service id\", user_key: \"your key\", usage: { \"hits\": 1 } }, function(response){\n  console.log(response);\n});\n\n\n/* If you don't use service_token in the method, you'll be expected to specify a provider_key parameter in the Client instance, which is deprecated in favor of using service_token in the method.\n\nCreate a Client with a given host and port:\nclient = new Client(\"your provider key\",{host: \"service_management_api.example.com\", port: 80});\n\nor \n\nCreate a Client with default host and port.This will comunicate with the 3scale platform SaaS default server:\nclient = new Client(\"your provider key\");\n\nclient.authrep_with_user_key({ \"service_id\": \"your service id\", \"user_key\": \"your key\", \"usage\": { \"hits\": 1 } }, function(response){\n  console.log(response);\n});\n\n*/\n```\n\n\nIf you use `OAuth` as authentication mode, this would be the equivalent to the examples above:\n\n```javascript\nvar Client = require('3scale').Client;\n\n//Create a Client with a given host and port when connecting to an on-premise instance of the 3scale platform:\nclient = new Client({host: \"service_management_api.example.com\", port: 80});\n\n/* or create a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client();\n*/\n\nclient.oauth_authrep({ service_token: \"your service token\", service_id: \"your service id\", app_id: \"your Client id\", usage: { \"hits\": 1 } }, function(response){\n  console.log(response);\n});\n\n\n/* If you don't use service_token in the method, you'll be expected to specify a provider_key parameter in the Client instance, which is deprecated in favor of using service_token in the method.\n\nCreate a Client with a given host and port:\nclient = new Client(\"your provider key\",{host: \"service_management_api.example.com\", port: 80});\n\nor \n\nCreate a Client with default host and port.This will comunicate with the 3scale platform SaaS default server:\nclient = new Client(\"your provider key\");\n\nclient.oauth_authrep({ service_id: \"your service id\", app_id: \"your Client id\" , usage: { \"hits\": 1 } }, function(response){\n  console.log(response);\n});\n\n*/\n```\n\n### Authorize and Report\n\nYou can alternatively use the **authorize** and **report** methods to do the same in two separate calls. \nNote that the **report** method supports sending the usage for multiple transactions in a single call.\n\n\nIf you use the authentication mode with `app_id` and `app_key pair:\n```javascript\nvar Client = require('3scale').Client;\n\n//Create a Client with a given host and port when connecting to an on-premise instance of the 3scale platform:\nclient = new Client({host: \"service_management_api.example.com\", port: 80});\n\n/* or create a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client();\n*/\n\nclient.authorize({ service_token: \"your service token\", service_id: \"your service id\", app_id: \"your application id\", app_key: \"your application key\" }, function(response){\n  if (response.is_success()) {\n    var trans = [{ service_token: \"your service token\", app_id: \"your application id\", usage: { \"hits\": 3 } }];\n    client.report(\"your service id\", trans, function (response) {\n      console.log(response);\n    });\n  } \n  else {\n    console.log(\"Error: \" + response.error_code + \" msg: \" + response.error_msg);\n  }\n});\n\n/* If you don't use service_token in the method, you'll be expected to specify a provider_key parameter in the Client instance, which is deprecated in favor of using service_token in the method.\n\nCreate a Client with a given host and port:\nclient = new Client(\"your provider key\",{host: \"service_management_api.example.com\", port: 80});\n\nor \n\nCreate a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client(\"your provider key\");\n\nclient.authorize({service_id: \"your service id\", app_id: \"your application id\", app_key: \"your application key\" }, function(response){\n  if (response.is_success()) {\n    var trans = [{ app_id: \"your application id\", usage: { \"hits\": 3 } }];\n    client.report(\"your service id\", trans, function (response) {\n      console.log(response);\n    });\n  } \n  else {\n    console.log(\"Error: \" + response.error_code + \" msg: \" + response.error_msg);\n  }\n});\n*/\n```\n\nHere is the same example for the `user_key` authentication pattern:\n\n```javascript\nvar Client = require('3scale').Client;\n\n//Create a Client with a given host and port when connecting to an on-premise instance of the 3scale platform:\nclient = new Client({host: \"service_management_api.example.com\", port: 80});\n\n/* or create a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client();\n*/\n\nclient.authorize_with_user_key({ service_token: \"your service token\", service_id: \"your service id\", user_key: \"your key\" }, function(response){\n  if (response.is_success()) {\n    var trans = [{ service_token: \"your service token\", user_key: \"your key\", usage: { \"hits\": 3 } }];\n    client.report(\"your service id\", trans, function (response) {\n      console.log(response);\n    });\n  } \n  else {\n    console.log(\"Error: \" + response.error_code + \" msg: \" + response.error_msg);\n  }\n});\n\n/* If you don't use service_token in the method, you'll be expected to specify a provider_key parameter in the Client instance, which is deprecated in favor of using service_token in the method.\n\nCreate a Client with a given host and port:\nclient = new Client(\"your provider key\",{host: \"service_management_api.example.com\", port: 80});\n\nor \n\nCreate a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client(\"your provider key\");\n\nclient.authorize_with_user_key({ service_id: \"your service id\", user_key: \"your key\" }, function(response){\n  if (response.is_success()) {\n    var trans = [{ user_key: \"your key\", usage: { \"hits\": 3 } }];\n    client.report(\"your service id\", trans, function (response) {\n      console.log(response);\n    });\n  } \n  else {\n    console.log(\"Error: \" + response.error_code + \" msg: \" + response.error_msg);\n  }\n});\n*/\n```\n\nFor `OAuth` as the authentication mode:\n\n```javascript\nvar Client = require('3scale').Client;\n\n//Create a Client with a given host and port when connecting to an on-premise instance of the 3scale platform:\nclient = new Client({host: \"service_management_api.example.com\", port: 80});\n\n/* or create a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client();\n*/\n\nclient.oauth_authorize({ service_token: \"your service token\", service_id: \"your service id\", app_id: \"your Client Id\" }, function(response){\n  if (response.is_success()) {\n    var trans = [{ service_token: \"your service token\", app_id: \"your application id\", usage: {\"hits\": 3} }];\n    client.report(\"your service id\", trans, function (response) {\n      console.log(response);\n    });\n  } \n  else {\n    console.log(\"Error: \" + response.error_code + \" msg: \" + response.error_msg);\n  }\n});\n\n/* If you don't use service_token in the method, you'll be expected to specify a provider_key parameter in the Client instance, which is deprecated in favor of using service_token in the method.\n\nCreate a Client with a given host and port:\nclient = new Client(\"your provider key\",{host: \"service_management_api.example.com\", port: 80});\n\nor \n\nCreate a Client with default host and port. This will comunicate with the 3scale platform SaaS default server:\nclient = new Client(\"your provider key\");\n\nclient.oauth_authorize({ \"service_id\": \"your service id\", \"app_id\": \"your application id\" }, function(response){\n  if (response.is_success()) {\n    var trans = [{ app_id: \"your application id\", usage: {\"hits\": 3} }];\n    client.report(\"your service id\", trans, function (response) {\n      console.log(response);\n    });\n  } \n  else {\n    console.log(\"Error: \" + response.error_code + \" msg: \" + response.error_msg);\n  }\n});\n*/\n```\n\nNote that the **report** method supports sending the usage for multiple transactions in a single call.\n\n```javascript\nvar trans = [\n              { service_token: \"your service token\", app_id: \"your application id\", usage: {\"hits\": 1} },\n              { service_token: \"your service token\", app_id: \"your application id\", usage: {\"hits\": 1000} }\n             ]\n\nclient.report(\"your service id\", trans, function(response){\n  console.log(response);\n});\n```\n\n## To test\n\nTo run tests: `npm test` or `vows test/* --spec` from the root directory of the project.\nPlease note that you will first need to set the following environment variables using your own 3scale keys:\n\n- TEST_3SCALE_PROVIDER_KEY\n- TEST_3SCALE_APP_KEY\n- TEST_3SCALE_APP_ID\n","maintainers":[{"name":"michal.3scale","email":"michal@3scale.net"},{"name":"3scale","email":"support@3scale.net"},{"name":"victordg","email":"vdel26@gmail.com"},{"name":"cris7ian","email":"cristiancaroli@gmail.com"}],"time":{"modified":"2022-06-12T14:07:29.412Z","created":"2012-06-06T15:35:47.234Z","0.2.0":"2012-06-06T15:35:49.293Z","0.3.2":"2012-08-07T10:09:22.462Z","0.3.3":"2012-08-09T10:40:43.457Z","0.4.0":"2012-10-31T14:21:09.159Z","0.4.1":"2014-05-27T16:42:21.601Z","0.4.2":"2014-07-30T09:50:19.275Z","0.5.0":"2014-09-02T16:45:14.463Z","0.5.1":"2015-03-11T17:36:18.958Z","0.6.0":"2015-11-30T16:37:26.925Z","0.6.1":"2015-11-30T19:50:34.933Z","0.6.2":"2016-03-03T16:11:32.941Z","0.7.0":"2016-03-09T09:07:20.371Z","0.7.1":"2016-03-17T10:58:37.685Z","0.7.2":"2016-04-04T09:23:44.386Z","0.7.3":"2017-02-07T17:11:43.216Z","0.7.4":"2017-02-28T11:25:21.031Z","0.7.5":"2017-03-17T16:55:43.954Z","0.7.6":"2017-03-17T17:45:12.887Z"},"author":{"name":"3scale","email":"support@3scale.net"},"repository":{"type":"git","url":"git://github.com/3scale/3scale_ws_api_for_nodejs.git"},"users":{"michal.3scale":true,"victordg":true,"gavinengel":true},"homepage":"http://www.3scale.net","keywords":["api","authorization","3scale","web"],"contributors":[{"name":"Carlos Villuendas","email":"carlosvillu@3scale.net"},{"name":"Michal Cichra","email":"michal@3scale.net"},{"name":"Daniel Stevens","email":"daniel.stevens@senicolabs.com"},{"name":"Chaitanya Surapaneni","email":"chaitanya.surapaneni@senicolabs.com"},{"name":"Joaquin Rivera","email":"joaquin@3scale.net","url":"joahking"},{"name":"Victor Delgado","email":"victor@3scale.net"}],"bugs":{"url":"http://github.com/3scale/3scale_ws_api_for_nodejs/issues"},"readmeFilename":"README.md"}