{"_id":"@adrianchia/recurly","_rev":"4-39a0d1e4833345a7f9d5abda2739f183","time":{"1.0.0":"2018-07-13T04:06:54.640Z","created":"2018-07-13T04:08:58.907Z","1.0.1":"2018-07-13T04:08:59.237Z","modified":"2022-04-04T11:37:09.609Z"},"name":"@adrianchia/recurly","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@adrianchia/recurly","version":"1.0.1","description":"An Unofficial Recurly client for the Node.js","main":"index.js","scripts":{"test":"nyc ./node_modules/.bin/mocha --recursive","lint":"eslint lib/"},"repository":{"type":"git","url":"git+https://github.com/adrianchia/node-recurly.git"},"keywords":["Recurly"],"author":{"name":"Adrian Chia","email":"achia@adrianchia.com"},"license":"MIT","bugs":{"url":"https://github.com/adrianchia/node-recurly/issues"},"homepage":"https://github.com/adrianchia/node-recurly#readme","dependencies":{"axios":"^0.18.0","xml2js":"^0.4.19"},"devDependencies":{"axios-mock-adapter":"^1.15.0","chai":"^4.1.2","chai-as-promised":"^7.1.1","eslint":"^5.1.0","jsdoc":"^3.5.5","mocha":"^5.2.0","nyc":"^12.0.2"},"eslintConfig":{"parserOptions":{"ecmaVersion":6},"extends":"eslint:recommended","env":{"node":true,"mocha":true,"es6":true}},"gitHead":"b4611e103e9dd3bad7076bf4d227e30a2f308960","_id":"@adrianchia/recurly@1.0.1","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"adrianchia","email":"achia@adrianchia.com"},"dist":{"integrity":"sha512-4GpksIE6o+zTFPHaWS40D5vwHDcuZmQwfhfiN0jtJ72ocM0iI2baXKWU802Z8TlptU31WCqccNj95A2xtbYgEw==","shasum":"f31aebea7707b8bb73fcf3c0cab28cd76defb08d","tarball":"https://registry.npmjs.org/@adrianchia/recurly/-/recurly-1.0.1.tgz","fileCount":85,"unpackedSize":148249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSCXbCRA9TVsSAnZWagAAVYQQAI43/XGLytqAhAd71nm4\n/y7zLWqjSqrUx90PcT4tUG5PEWKMJxSc/5PTLPOa5/zzWHFDx8WtCGRnwDxi\nyOK8MMGfvcOtrLthPCrJgMBpVg4RhRrGgdtCoWydmuyqtJImjsegjN8CmZiu\nudzp0ffQHB68bYTQk7X1P2u4yQaviO/vd7Ka8K8q/XTiqDxvsyW5sMyIZu57\nxQXppLNr71QNFjAZu1FszYHRhxbwJ9HN6JGE0BaRS7TUPCKE5CMScFLIGcNB\nnvjXYwkGbhzU/3XeB8gKeL54Bbyk5s7feLqyyz9CzOR0A7IOQme4sZhtGsla\nnh7rzbosQ1U7Bu9mcOOBYJR94fcuHvYHfHZtKLoXFmWhrrunErUeNWh5n5+M\nTTJOt8986uNZsmZ1VpBFbdp/Bp2a59FIT83w6nEWqpysMETqdrOepQ5B6c7d\nq7gpDgSV7KfopQjz+3jO7Panj9m9C6+GJrJrG17JPxXEoj+LcC0cChDUNjjr\n6lCOmyPmhlL4YlAXKdkv7trgHyVtulxeE+iPEI6zbrUqJUP+VWRyEu1u/SiO\nM6/fX0M5m/6iMeK0k6xwpzmNWnDA6GXIe/4fyEYGyDONJth0zJL30hW6sQOv\nel0W2qSmpomRVc9MWSRbjLGcZPseSVbsNrLiwyo7xpBwAixRUVloDl9m+zLS\nKnZZ\r\n=6ZOi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRvpgU1wBEsaLX60M8+dZTTP0Kxp53Zsr63xP67S8tlwIhAPySsYfb4bBSvz1r8lrWvt9u4xUEkqKFjoE6gGyEdvCr"}]},"maintainers":[{"name":"adrianchia","email":"achia@adrianchia.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/recurly_1.0.1_1531454939168_0.17673073733978506"},"_hasShrinkwrap":false}},"maintainers":[{"name":"adrianchia","email":"achia@adrianchia.com"}],"description":"An Unofficial Recurly client for the Node.js","homepage":"https://github.com/adrianchia/node-recurly#readme","keywords":["Recurly"],"repository":{"type":"git","url":"git+https://github.com/adrianchia/node-recurly.git"},"author":{"name":"Adrian Chia","email":"achia@adrianchia.com"},"bugs":{"url":"https://github.com/adrianchia/node-recurly/issues"},"license":"MIT","readme":"Node Recurly\n============\n[![Build Status](https://travis-ci.org/adrianchia/node-recurly.svg?branch=master)](https://travis-ci.org/adrianchia/node-recurly)\n[![David Dependency Status](https://david-dm.org/adrianchia/node-recurly.svg)](https://david-dm.org/adrianchia/node-recurly)\n[![Known Vulnerabilities](https://snyk.io/test/github/adrianchia/node-recurly/badge.svg)](https://snyk.io/test/github/adrianchia/node-recurly)\n\nAn unofficial Node.js client for [Recurly](https://www.recurly.com).\n\nRefer to https://dev.recurly.com/docs for more information.\n\n## Installation\n\nTo use node recurly in your Node.js app, run the following. The Node.js environment should support basic ES2015 syntax such as const and arrow function. \n\n    npm install --save @adrianchia/recurly\n\n## Getting started\n\nInitialize recurly via \n\n```javascript\nconst Recurly = require('@adrianchia/recurly');\nconst recurly = new Recurly({\n  apiKey: '<Your Recurly private key>',\n  subdomain: '<Your recurly subdomain>' // for example, if your Recurly url is https://acme.recurly.com, enter 'acme'\n});\n\n// Do the rest of Recurly operations such as list account\nrecurly.accounts.list()\n  .then(response => console.log(JSON.stringify(response.data)))\n  .catch(err => console.error(JSON.stringify(err)));\n\n// or create an account\nlet newAccount = {\n  account: {\n    account_code: 'foo@example.com',\n    email: 'foo@example.com',\n    first_name: 'Foo',\n    last_name: 'Example',\n    address: {\n      address1: '123 Main St',\n      city: 'San Francisco',\n      state: 'CA',\n      zip: '94105',\n      country: 'US'\n    }\n  }\n};\n\nrecurly.accounts.create(newAccount)\n  .then(response => console.log(JSON.stringify(response.data)))\n  .catch(err => console.error(JSON.stringify(err)));\n```\n","readmeFilename":"README.md"}