{"_id":"3ps-node","_rev":"2-1a7388d8c8b61d8806e7cdd5321f111e","name":"3ps-node","dist-tags":{"latest":"1.4.3"},"versions":{"1.4.2":{"name":"3ps-node","version":"1.4.2","description":"Node.js SDK for 3PS","main":"./src/index.js","scripts":{"test":"mocha tests"},"repository":{"type":"git","url":"git+https://github.com/ideea-inc/3PS-node.git"},"author":{"name":"Anthony Budd","email":"anthonybudd@ideea.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/ideea-inc/3PS-node/issues"},"homepage":"https://github.com/ideea-inc/3PS-node#readme","devDependencies":{"chai":"^4.2.0","mocha":"^5.0.0"},"dependencies":{"form-data":"^2.5.1","axios":"^0.18.0"},"gitHead":"e784e5d5da456ff29ad3f04a945ebf91e8f72b89","_id":"3ps-node@1.4.2","_nodeVersion":"12.4.0","_npmVersion":"6.9.1","dist":{"integrity":"sha512-LZrR1wNl+KJtbllKGt1Q1oOdBspgPpDWYmLbwrVvQYeI9gwwIh+8/TM+eKohVQZ9lcAyRf3l89SH/fulPLFb/A==","shasum":"3ecda6a4f0ce86626c9d75e7cbc180e48b71594a","tarball":"https://registry.npmjs.org/3ps-node/-/3ps-node-1.4.2.tgz","fileCount":7,"unpackedSize":32789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdv1VuCRA9TVsSAnZWagAAz6YP/irEFpYTPT6KNfERmPNn\nJmn1/xRyTSpBCELXZAGiO60hxXwkuenh1UUEIbBgCH6R/dpv5kmZ2+I6zMlP\nSUMbjoS/brk0/ZJO7p7YVvCAHd07HRYnvtOaAjFistkilW/eQqCh0wO8TqFq\nPOCV+tHe25h/YF8yjaQaB3P0WbD9jqhmIil4NtCyBrMgtmPJ0PmdRRFgzN0q\nE+jVNAUT8VKe3sk1ltTMfjAo0ac2CYoiAdq46rARzZ5jNKjGJnQrsmMiN68m\nhEzRkC61mIQGVMm6uvh275P4lhlMy87Q1iZrCea3/ojjU75nbW+TcPkuqiBj\ntYFTFra2Dv8JkV3450rkkcTBt5xfLLmNTFwYd6YODka7EfClYGazYZuZyA2Q\nVf8DCB+XwOmKoIourfPKnKWLbdAzQzoYJ77oCY6AF/702Z6RKHHOmJvvbMYQ\nGVzFQMxIE9lpFFf4YYpgBlJ+LX+D/QRYnJ9bJR9lvyYhYf1XEnXbNIH9Jn0r\n7v3qen2OT4r24NW+oTLS7ayw6c+BpZR9P+5+HaNgo/2Dh20jo2l8J9qZ0hj0\nNh5K+rBhvMsTEhdjozrt/0ornQSYONhE3NBlcU+XkePkXc9ZzRPH1vjOmClK\nnJ9qYldPxM7wTyii7Sx5dJmWrluF/TM2Zo7kfnvjVvVMS2fZXSkzsaueynPZ\nfdtl\r\n=hSj6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICi2IEJ6HPreeUkjDTPYEp4ZXTbscQuX+bRMgo5+bcPSAiEApkw/D6m6Jm1UTsQS/cs5fzRtbhCNYRScRh78LL5jagI="}]},"maintainers":[{"name":"anthonybudd","email":"anthonybudd@ideea.co.uk"}],"_npmUser":{"name":"anthonybudd","email":"anthonybudd@ideea.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3ps-node_1.4.2_1572820333895_0.37579260800607983"},"_hasShrinkwrap":false},"1.4.3":{"name":"3ps-node","version":"1.4.3","description":"Node.js SDK for 3PS","main":"./src/index.js","scripts":{"test":"mocha tests"},"repository":{"type":"git","url":"git+https://github.com/ideea-inc/3PS-node.git"},"author":{"name":"Anthony Budd","email":"anthonybudd@ideea.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/ideea-inc/3PS-node/issues"},"homepage":"https://github.com/ideea-inc/3PS-node#readme","devDependencies":{"chai":"^4.2.0","mocha":"^5.0.0"},"dependencies":{"form-data":"^2.5.1","axios":"^0.18.0"},"gitHead":"489c2265d27622c31146ab9fe8ad285318d994ba","_id":"3ps-node@1.4.3","_nodeVersion":"12.4.0","_npmVersion":"6.9.1","dist":{"integrity":"sha512-BI30LRv13xacIABb/0OtmsxbfyLubdMHDNTCd5P6bN0bRNb7dy3bHgQYCkHWl6rmuG/fZmUzLA3bOnnNGsCFYw==","shasum":"bf2a22ac45ebff0c0a5bf277843dbbce2202ec17","tarball":"https://registry.npmjs.org/3ps-node/-/3ps-node-1.4.3.tgz","fileCount":7,"unpackedSize":32755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdv1rBCRA9TVsSAnZWagAAX3QQAIIM2hJddaUtoCASOSrQ\nOvcL0sSt8Wm5LmQ7WFxb92qL+WAJofVqy+UkeqesZ0OuBbEitcOTNKOmy4AX\nu9S1oTVoI+ENeKEeXztZpf7SyjCal+QRFwYPyzq7EYQtF6USu1PHwpM/lYun\na+Ht4jD/an9KOZxM2oRo0iXHjYqu1RzDzoUQAB9xPXzpb1wsQPtWckfbSwyM\nIo2xKNiAd0hCeD2EE+ISfi0F6Ch5im3z0152WnMwoyMmg9x2SYQ3RICDFqQt\nxgl76yFZy2W6zNMzISZUyQx6VALMOEbT/jFfE9LjM8GBKd9m1vNQTIpY3a6M\nWxay9oILgPCnbJKJZJRPY9uGV1LV1hqS0WX7iggPspBlxUXkerRSY787l8nm\nL7X5KSz1qn/A4t9tdYD1SITMvX1yL7lFggsJ+ZR2u/PqElnW4FFF2yb4dfDR\nqmxjCuBH3R4AmBrUj6p86Vbxqxpj9EuDmmv3uqnez/ukhZo0k+eyppSBTO3K\nw6DtmWcrp/c5+t/D/89NMTBua8Tea9W3oQlWhuWiqH3F8z+WfnUHzpsf0u/w\ndExpPF2lpZ3ngF4AshszZBnpkmR65HzDDgwo2t46XvnHq1yBU3s5vgMN8OoJ\nEodrMRFfaV1SZ+ZGL/+MC/ntREMFU7McnSZTS6uP2xuhiirB59bVOHyK03qH\nd4mo\r\n=xN1a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLdvWj3MjMVLaxgYiL0YlEzsDyngoAtXIBivOfw4KunwIhAIpcACPFQFdC62NW2E6p2Nl8+CMgxk9A6jAhd+4h/U7X"}]},"maintainers":[{"name":"anthonybudd","email":"anthonybudd@ideea.co.uk"}],"_npmUser":{"name":"anthonybudd","email":"anthonybudd@ideea.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3ps-node_1.4.3_1572821697374_0.9820054340833866"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-03T22:32:13.894Z","1.4.2":"2019-11-03T22:32:14.104Z","modified":"2022-04-04T10:21:48.425Z","1.4.3":"2019-11-03T22:54:57.497Z"},"maintainers":[{"name":"anthonybudd","email":"anthonybudd@ideea.co.uk"}],"description":"Node.js SDK for 3PS","homepage":"https://github.com/ideea-inc/3PS-node#readme","repository":{"type":"git","url":"git+https://github.com/ideea-inc/3PS-node.git"},"author":{"name":"Anthony Budd","email":"anthonybudd@ideea.co.uk"},"bugs":{"url":"https://github.com/ideea-inc/3PS-node/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <img width=\"192\" src=\"https://ideea.io/static/img/3ps.png\" alt=\"3PS\">\n</p>\n\n---\n\n### [3PS](https://ideea.io/3ps) &nbsp;&nbsp;|&nbsp;&nbsp; [Ideea.io](https://ideea.io) &nbsp;&nbsp;|&nbsp;&nbsp; [Full Documentation](https://ideea.io/docs/3ps) &nbsp;&nbsp;|&nbsp;&nbsp; [NPM](https://www.npmjs.com/package/3ps-node)\n\n---\n\n# 3PS Node SDK\n\nThe 3PS API represents an abstraction of a 3D printer, with this API you can upload a .STL file and receive a tangible object just hours later. With this API you can print in any material, at any size, shipped anywhere in the world. Add 3D printing to your app, product or service in a matter of minutes with 3PS.\n\n## Installation\n\n```\n$ npm install 3ps-node\n```\n\n## Getting Started\n\n```js\nconst TPS = require('3ps-node')\nconst fs = require('fs')\n\nvar tps = new TPS('API_KEY')\n\nvar component = {\n\tname: 'Dice',\n\tis_public: false,\n\tgroup_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b',\n\n\t// .stl File\n\tstl: fs.readFileSync('./dice.stl'),\n\n\t// Default Print Settings\n\tmaterial: 'PLA',\n\tprocess: 'FDM',\n\tresolution: '200',\n\tinfill: '20',\n\tcolor: 'Red',\n}\n\n\n// Create Component\ntps.components.create(component).then(function(newComponent) {\n\n\t// Print Component\n\ttps.jobs.create({\n\t\tgroup_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b',\n\t\tfulfillment_type: 'standard',\n\t\tcomponents: [{\n\t\t\tid: newComponent.id\n\t\t}]\n\t}).then(function(job) {\n\t\tconsole.log(`Printing ${job.id}`)\n\t})\n})\n```\n\n## Methods\n\nPlease refer to the [full documentation](https://ideea.io/3ps/docs) for the full list of methods.\n\n### TPS.components.create(component)\nIn 3PS a component represents a single .STL file and an object is a collection of multiple components. Your component can be public or private, public components are accessible by all users and can be printed by anyone. You can also set your component’s default print settings for easy replication.\n\n```js\ntps.components.create({\n\tname: 'Dice',\n\tis_public: false,\n\tgroup_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b',\n\n\t// .stl File\n\tstl: fs.readFileSync('./dice.stl'),\n\n\t// Default Print Settings\n\tmaterial: 'PLA',\n\tprocess: 'FDM',\n\tresolution: '200',\n\tinfill: '20',\n\tcolor: 'Red',\n}).then((component) => {\n\n\tconsole.log(component)\n\n})\n```\n\n### TPS.jobs.create(job)\nA job reprsents a request from a customer to print one or more componets. To create a job send an array of objects and compoents using method TPS.job.create().\n\n```js\ntps.jobs.create({\n\tgroup_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b',\n\tcomponents: [{\n\t\tid: 'cead04bc-cf4f-402a-8e90-1f33669efa03'\n\t}]\n}).then((job) => {\n\n\tconsole.log(`Printing Job: ${job.id}`)\n\n})\n```\n","readmeFilename":"README.md"}