{"_id":"@badaoui220/gumroad-api","_rev":"3-e412bfd20be3d70faa21c1722f046a4e","name":"@badaoui220/gumroad-api","dist-tags":{"latest":"0.5.2"},"versions":{"0.5.0":{"name":"@badaoui220/gumroad-api","version":"0.5.0","main":"lib/index.js","author":{"name":"Samy Pessé","email":"samypesse@gmail.com"},"description":"Client for the Gumroad API.","bugs":{"url":"https://github.com/badaoui220/gumroad-api/issues"},"engines":{"node":">=0.6"},"dependencies":{"lodash":"2.4.1","q":"0.9.7","request":"2.51.0"},"repository":{"type":"git","url":"git+https://github.com/badaoui220/gumroad-api.git"},"homepage":"https://github.com/badaoui220/gumroad-api#readme","_id":"@badaoui220/gumroad-api@0.5.0","_nodeVersion":"15.0.1","_npmVersion":"7.0.3","dist":{"integrity":"sha512-b1oD2Ly8mBn9xvnPOJ/tpB+7l8H7kE1G5YBPgXMXaSAJA1jIcWe1MGUT1CT7wX0AlzHvnq2Po4PoBh/rnt4crw==","shasum":"0249ee8b3f4aefb84059cc3f81a6b3d10ab95db2","tarball":"https://registry.npmjs.org/@badaoui220/gumroad-api/-/gumroad-api-0.5.0.tgz","fileCount":4,"unpackedSize":18463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmlu6CRA9TVsSAnZWagAA2WgP/2BfnfBZegFrA7X21k1G\nnssLxkqJYyBedDBZNWqfaq8GosXF3VKXYcn9fsbpXeOwMF8l+ibw0oI3HHVL\n6IRlwjGE2DVV2VGiWneWhivhfWvSm8D2KU4BIj6VXzGzRQtkSQaC9jKY6J5R\nGvoGfU2n5tASaOH9Fy00toWiDgdm30hvi3wtxXlenwIdg8t0CBDygK6sklDr\n3QJuqtmLAEwKzI+6LGEtxv4OMfNl53AsOILSabpZ0YHzgDhhmsa0kLCzvlso\n6XTtSO5WuJdfHlxjgqIOKlj8Da0dcEc5OeGtLq0Wynr6pom2zVFXGFWeppzX\narpdEX5tamVKX5PI/8ei5oMkbdOJXXN5rfTsDGUQRNjxVX4iolOCoIXhQADS\n8jiuXgDTjUWxiOknppGUHwFrxrCGjC3mml2WGGFx6zQ6tVOm+oFHNOzor691\nJRyjnTfK8dD8LG4X7OpiKazo+r6mbhqdPnfupHWEjGKlx+lP70g53+bDIhui\nxWwGKyUQMyacN22ShycngTx5/wP2Cmu4xb8seZ1EDpTUK9WkJi/IXecziZN2\nAlsNJspkf44SnazABxGsj/cbL6u+3RN/fhAuWB9ASer7gWOTgKRf5DoN08YO\n+uAdz0HAkrhRfNrS36r4sczI/PzKls54K9tOahyhZRcuR6kUrmft2TUM5C6F\n7MJ9\r\n=lGR9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDxfvojfkEoiyUtxoMydfIWb1NI1vZWitUYvgWKMC1DcAiBIxBVf3gRdhkFaeqIe8ArekhTitPC9dU8+5eGNFPhGmg=="}]},"_npmUser":{"name":"badaoui220","email":"badaoui220@gmail.com"},"directories":{},"maintainers":[{"name":"badaoui220","email":"badaoui220@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gumroad-api_0.5.0_1637505978720_0.670865011793939"},"_hasShrinkwrap":false},"0.5.1":{"name":"@badaoui220/gumroad-api","version":"0.5.1","main":"lib/index.js","author":{"name":"Samy Pessé","email":"samypesse@gmail.com"},"description":"Client for the Gumroad API.","bugs":{"url":"https://github.com/badaoui220/gumroad-api/issues"},"engines":{"node":">=0.6"},"dependencies":{"lodash":"2.4.1","q":"0.9.7","request":"2.51.0"},"repository":{"type":"git","url":"git+https://github.com/badaoui220/gumroad-api.git"},"homepage":"https://github.com/badaoui220/gumroad-api#readme","_id":"@badaoui220/gumroad-api@0.5.1","_nodeVersion":"15.0.1","_npmVersion":"7.0.3","dist":{"integrity":"sha512-6rxywWjibRodsbtU3aQPNlUzgZnV1TyrD4aP2AxF8nh8ZPM6HhrPW7kQNmF5/bYS/vpEcAyWPuUK3Iytvxb/1g==","shasum":"e43c448a26301dd583671240a74d2f531a1ec60b","tarball":"https://registry.npmjs.org/@badaoui220/gumroad-api/-/gumroad-api-0.5.1.tgz","fileCount":4,"unpackedSize":18512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhml1JCRA9TVsSAnZWagAAZ7MP/1PLOLALJgmfKoaJTC//\nfRtCcHWhk8qH6J24Lhp/bdlZKd3gIohzBTfYn6fiUQThYZIfZf7pDpzhQqmq\nkdxh/Wczzl+9sMhZLivBN+F798AbSjuNtO4xZ1t4V1XoJGGBSh8ihDIwGK7Z\n4jjO1X/xjFtlSWjnUMfRuPBU7w9vAy0MreMqWlkc4h6OvbGAzGjodtjRnbuj\nSIqhvj18WYwto36X4VEDGReAf2akoSulgiC6QyWJsu6DIJ1BJEn96wFOdxmF\nKfdwd304cwEepVYCYpuysDFJAXQdJWJZ2eoP5Jxsg75pSaecakDJBQiO6b8R\njk/qcwOxVSJXthjWhvJH4gmRYGXGZFuucc9HLNvhwmEUysr7XXhLyM1aO8sk\nLwE14J8N1WsByKPtifMqlrEdmhoMjEn94WLpCIsoAaDFyrFrGhGAE7FyS6Y3\nWVK3nCqne3XM4wEygCC97IaJvNTrnXkFth8NzAdt0s3OYZ2rjAYRAQegOniN\nNtZPl6S9WmArLFqD28ydUcny+4KYLG2FGVqzFPn/y12PBBmufYy5VjRGkdKL\nIzHDGIXLQyK06vG2nkEuR/OqilO33Du3cFDjqiyuFBRE2AELJFUVgSjEVqBi\nfQcNwsnXH6wDyrXP81jzRgdaf9kcmV1GDUDwrqqy1e7ej/v+Lu8PuRN17Aac\ncRD/\r\n=xFY8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGklcSSuvFtrjuMX70z4KbQDmJyvExlZYK7P8ZNTMOnxAiEA54eu4olerslfsGYCZkW1yOjNkrUbVbDSgQ3Au4xy4g4="}]},"_npmUser":{"name":"badaoui220","email":"badaoui220@gmail.com"},"directories":{},"maintainers":[{"name":"badaoui220","email":"badaoui220@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gumroad-api_0.5.1_1637506377769_0.5301180548051019"},"_hasShrinkwrap":false},"0.5.2":{"name":"@badaoui220/gumroad-api","version":"0.5.2","main":"lib/index.js","author":{"name":"Samy Pessé","email":"samypesse@gmail.com"},"description":"Client for the Gumroad API.","bugs":{"url":"https://github.com/badaoui220/gumroad-api/issues"},"engines":{"node":">=0.6"},"dependencies":{"lodash":"2.4.1","q":"0.9.7","request":"2.51.0"},"repository":{"type":"git","url":"git+https://github.com/badaoui220/gumroad-api.git"},"homepage":"https://github.com/badaoui220/gumroad-api#readme","_id":"@badaoui220/gumroad-api@0.5.2","_nodeVersion":"15.0.1","_npmVersion":"7.0.3","dist":{"integrity":"sha512-Wcvfpp0unwFCqw1ZlSlnBzRZNdBHD7w6TPtVdzncjHpqAjpZwZQ4bmYvviPQ2BUkwtesx6TuYwK5QHLEGz+xLw==","shasum":"8625cd7796c65c092bff829a2a6248f96839caa3","tarball":"https://registry.npmjs.org/@badaoui220/gumroad-api/-/gumroad-api-0.5.2.tgz","fileCount":4,"unpackedSize":18524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhml5JCRA9TVsSAnZWagAA6aEP/jIuEFaBX7LgtRInDBnp\nsDt0f4DLwHuJtiqBoqVa8as+pDzv3b61JKort/3X6AQ7QAQD2rFH9Or22/3I\nSGVkWmWsQjB5+DYbRW3qWPrA5H960lGpb7IZ9rsZtQ+5rQ/pvTP4R2Co+AZ4\n6RToPQo5N9I7JO4hQPm+6rV/QnYvYXiMnB0u+K2wcPJBuWXfHpJks5SJASxR\nmECgUQJpPl9r5frU9QBBenVbKuggENrq/mMmA/ZDNnVolfBFEHIgbuvdD8TR\n3va4lrHWB9Fog3w8f4dJX1IMSpiRAnJiJJAc9fQYqLqjL10eztsrAr8dmf4O\nm57feQmy1gKxSUpawFOwsCjga5jnkJidzT8EMNtK6wwgng6wkPgjqmy7YJXN\nlFsZfqvV+C+CO2IBYcm4bBpQvQ1Fbcmvi6iCvnURhzDICH/0D4TbSwI8eiKQ\nZaGy3wjkGicxw32H1vx6BJ57Is9sETltCTFE/U0fJrTzRAA18PI/WZmXN4wJ\nS9K0k0vfxpNsrC8SeeRARlUe+kA+mcx130jYHjl5lsIe9/PCeWuYwSocFC6a\n0pvM+bVc/gLdTcHCyztNg/ILvKM7iZ6R+ttlfjKHITdZcU+zTiknQoDHEn4t\nKLPAQA0Xas7CWPJaHdNczTrakYoX0cmSOZbUkT0bFN20wOa4VJ0XuYpptghh\nYUM8\r\n=Vzbx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIBu2aC1gX1bBriYc72pThhuWIeXwSMEvvAPds1NSNhwIgREbUMFpxKcAcgCxg4n/fOZ7aFrDMSp2O/rK3QyU0QkI="}]},"_npmUser":{"name":"badaoui220","email":"badaoui220@gmail.com"},"directories":{},"maintainers":[{"name":"badaoui220","email":"badaoui220@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gumroad-api_0.5.2_1637506632862_0.5672634607718685"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-21T14:46:18.665Z","0.5.0":"2021-11-21T14:46:18.882Z","modified":"2022-04-04T17:29:46.124Z","0.5.1":"2021-11-21T14:52:57.903Z","0.5.2":"2021-11-21T14:57:13.025Z"},"maintainers":[{"name":"badaoui220","email":"badaoui220@gmail.com"}],"description":"Client for the Gumroad API.","homepage":"https://github.com/badaoui220/gumroad-api#readme","repository":{"type":"git","url":"git+https://github.com/badaoui220/gumroad-api.git"},"author":{"name":"Samy Pessé","email":"samypesse@gmail.com"},"bugs":{"url":"https://github.com/badaoui220/gumroad-api/issues"},"readme":"Gumroad API Client\n================\n\nThis is a client library to access the Gumroad API. This client uses promises.\n\n```js\nvar Gumroad = require(\"gumroad-api\");\nvar gumroad = new Gumroad({\n\ttoken: \"<your-gumroad-token>\"\n});\n```\n\n## Products\n\nReference: https://gumroad.com/api#products\n\n#### List products\n\n```js\ngumroad.listProducts()\n.then(function(products) {\n    ...\n});\n```\n\n#### Create a product\n\n```js\ngumroad.createProduct({\n\t\"name\": \"...\"\n})\n.then(function(product) {\n    ...\n});\n```\n\n#### Retrieve a product\n\n```js\ngumroad.getProduct(\"my-product-id\")\n.then(function(product) {\n    ...\n});\n```\n\n#### Update a product\n\n```js\ngumroad.updateProduct(\"my-product-id\", {\n\t// infos\n})\n.then(function(product) {\n    // Product has been updated\n});\n```\n\n#### Enable/disable a product\n\n```js\ngumroad.toggleProduct(\"my-product-id\", false)\n.then(function(product) {\n    // Product has been disabled/enabled\n});\n```\n\n#### Delete a product\n\n```js\ngumroad.deleteProduct(\"my-product-id\")\n.then(function() {\n    // Product has been deleted\n});\n```\n\n## Offer Codes\n\nReference: https://gumroad.com/api#offer-codes\n\n#### List offers for a product\n\n```js\ngumroad.listOffers(\"product-id\")\n.then(function(offers) {\n    ...\n});\n```\n\n#### Create an offer\n\n```js\ngumroad.createOffer(\"product-id\", {\n    \"name\": \"...\"\n})\n.then(function(offer) {\n    ...\n});\n```\n\n#### Retrieve an offer\n\n```js\ngumroad.getOffer(\"product-id\", \"offer-id\")\n.then(function(offer) {\n    ...\n});\n```\n\n#### Delete an offer\n\n```js\ngumroad.deleteOffer(\"product-id\", \"offer-id\")\n.then(function() {\n    // Offer has been deleted\n});\n```\n\n#### Update a product\n\n```js\ngumroad.updateOffer(\"product-id\", \"offer-id\", {\n    // infos\n})\n.then(function(offer) {\n    // Offer has been updated\n});\n```\n\n## Licenses\n\nReference: https://help.gumroad.com/customer/portal/articles/1579327-license-keys\n\n#### Verify a license key\n\n```js\ngumroad.verifyLicense(\"my-product-id\", \"license-key\")\n.then(function(license) {\n    // License is OK\n}, function() {\n    // License verification failed\n});\n```\n\n## Sales\n\nReference: https://gumroad.com/api#sales\n\n#### List sales\n\n```js\ngumroad.listSales(\"after-date\", \"before-date\", \"page-num\")\n.then(function(sales) {\n    ...\n});\n```\n\n#### Retrieve a sale\n\n```js\ngumroad.getSale(\"sale-id\")\n.then(function(sale) {\n    ...\n});\n```","readmeFilename":"README.md"}