{"_id":"@infobip-api/sdk","_rev":"5-68d30a7f76b563fa6bfb6c2609cd2f6d","name":"@infobip-api/sdk","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.0":{"version":"0.1.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","docs":"api-extractor run --local --verbose","test":"tsdx test --coverage","lint":"tsdx lint --fix","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"jest":{"testEnvironment":"node"},"name":"@infobip-api/sdk","author":{"name":"Alex Lakatos"},"module":"dist/infobip.esm.js","size-limit":[{"path":"dist/infobip.cjs.production.min.js","limit":"10 KB"},{"path":"dist/infobip.esm.js","limit":"10 KB"}],"devDependencies":{"@microsoft/api-extractor":"^7.20.1","@size-limit/preset-small-lib":"^7.0.8","husky":"^7.0.4","size-limit":"^7.0.8","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.6.2"},"dependencies":{"axios":"^0.26.0","form-data":"^2.3.3"},"description":"Node.js Client SDK for Infobip APIs.","directories":{"doc":"docs","test":"test"},"repository":{"type":"git","url":"git+https://github.com/infobip-community/infobip-api-node-sdk.git"},"keywords":["infobip","api","infobip","sdk","sms","whatsapp","email","2fa"],"bugs":{"url":"https://github.com/infobip-community/infobip-api-node-sdk/issues"},"homepage":"https://github.com/infobip-community/infobip-api-node-sdk#readme","gitHead":"26719f595a6148bafe2b94f0a093b643b29d16ae","_id":"@infobip-api/sdk@0.1.0","_nodeVersion":"15.2.1","_npmVersion":"7.0.8","dist":{"integrity":"sha512-+F4/0eYjOzc+PpfmZpJg6q2QuGA/K2kZBellyaTvKd0UqQ7BNp5rvABNHRnR8vaHxsp0VawAJ/cWohEMVgiKbA==","shasum":"2c3d63ddbc12f114ee7b205de34a12a814ab3606","tarball":"https://registry.npmjs.org/@infobip-api/sdk/-/sdk-0.1.0.tgz","fileCount":53,"unpackedSize":534228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBwSIDjd70DJrxcnocTL6Fk4QK4i2rONT+Ye2RyIwHyAiALDl282zHrEnjCV1oiVKqzCVlINq1k5jYgtbysVQ3vuw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4vWRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraoBAAjIvzL1XlEHVhUFJGSRmnG5qT6COl9gY8VbAKPbNRqKzGfttG\r\nrJ2vWVUooo6lo/LqJQUFGlLafVjcPg5YsemQjCruPTefkgUXELERFd9Fjt71\r\n++WmQ0wx1NFe9xayxywS7LHJt/2b6rwORCbj38RP9Qfe1rQtX+1UUR6+98SH\r\nlSwO9SL47fCtW1ie1U16liVDjUuXZ4nE1o8zzJyN0cWsHjFTe3XK9Pgh8Kjv\r\nyBQ9FAzUQmvJYywp3p6cix476vg+CZOpAt764WRnodW0QUStvc8b6AFk95ce\r\niJpCZUdKqCfGtx+cBsiCD/PQ/I3N1cYCS5IqolMny1+UYwWa9R0ZCjVyMBhw\r\n91jkkRhCejMHwS0uCXVcASCskPo8RGvKgLVzDKuieH8jvAvHiqE3nK/6dyN4\r\ngc1L48+zFmHY2CALROoiPkB5ycWOut1uQ49IrwxPkailxhSNgPvkrDPbVLhf\r\neAvfIqBL5LSF9QaLPrL9jhQwgbW7EEP4QD/VaXJWGG/Rc5QXLuuYjYIsL804\r\nSkB5etg30s4Ds29+sffIlFap9yq2QZnFcUNUfa5WhD7DC3oWDpFP3AuqcjWO\r\neHc3cCZV/MYb779l/MnAYdVQ4cds55oWPChMz6P6bPCh5dAu1LIeYeL621rE\r\nIp8SFsQlbjZh70j3msYyI9iQJx9gGGStkXM=\r\n=RCrC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexlakatos","email":"alex.lakatos.qa@gmail.com"},"maintainers":[{"name":"juliacodez","email":"biro.julia.izabella@gmail.com"},{"name":"alexlakatos","email":"alex.lakatos.qa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.1.0_1659041168885_0.060650283739349"},"_hasShrinkwrap":false},"0.2.0":{"version":"0.2.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","docs":"api-extractor run --local --verbose","test":"tsdx test --coverage","lint":"tsdx lint --fix","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"jest":{"testEnvironment":"node"},"name":"@infobip-api/sdk","author":{"name":"Alex Lakatos"},"module":"dist/infobip.esm.js","size-limit":[{"path":"dist/infobip.cjs.production.min.js","limit":"10 KB"},{"path":"dist/infobip.esm.js","limit":"10 KB"}],"devDependencies":{"@microsoft/api-extractor":"^7.20.1","@size-limit/preset-small-lib":"^7.0.8","husky":"^7.0.4","size-limit":"^7.0.8","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.6.2"},"dependencies":{"axios":"^0.26.0","form-data":"^2.3.3"},"gitHead":"77f41cf6e465206bfac70f0301fa45d610a80b6c","description":"Node.js Client SDK for Infobip APIs.","_id":"@infobip-api/sdk@0.2.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-I9C+MIMxoW/PProBSt6UIMqDE5cgVODno5o5JOlcjMbbFS2ou490e5zS0V44sH2z5W6BDhOGyT50FQetF8BeUQ==","shasum":"a0e2b3ac740fb309b3811169364d9d970ea332c4","tarball":"https://registry.npmjs.org/@infobip-api/sdk/-/sdk-0.2.0.tgz","fileCount":58,"unpackedSize":662689,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBWgYan+cAbR+woHm4gJT4RcrUX6uzhnViPsSogjILDpAiEAq0jZ2xITEZDXZEQu69if7CpGiwkYP1McJSVm2jbBDZM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkjpQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnDg/7BTjpA+/umOqNgZzKr4nBoC7qeb44oTSWi615QG1a/ZJMlWgv\r\nX9ATQ/B/uDEu4DnG1RzIhpDGs82t82DWMnqjihQOr/x2QXBgAa9S7ZVd1lSQ\r\nhJdBbnWgWzg/nKFAiUFWJuXVa2q8l/7Wv8K3albQEntsQJIwQUuDy/I1pIYj\r\nCv91nAKeJt7vkeXzQNkTDUvxaStx8jhqWF0KhdDrdJ0BDDqLZdBeTLZXlDtJ\r\n2ELFlVCxgz3xKLpb2lHxQw2jUDmzst2Y8P3xMQ+ikQ/SdnguDNqL47LdN/fS\r\nIZAlOcEvqR/+Hd171AM6bdKfnQ1xb5OVEvg7JvGEwRpyYoQu1eXCTr24VDL4\r\n9OFaFJA9tIq52udGNivuWIZMDTYLJDmi/R7pk+eN4mrUkpf5j2Z2IDejeIX2\r\nrMqLMPywLUMuWApI3EEBU3DWqYO2unjnvMMGUqrqi/P5cyPQK4qe3ZLBxiyN\r\nlckLXPijpNfEuj5SgPn3jfUiSdveJ1mboy5N2H+iUa1KTwqJLKF9/M8FidML\r\nI16VcspI0lXZQPkuCzrZGcenhDtEFhNome3giVjBjCVPql+dq009RRg7GdK5\r\nCzppyzkdUvxwwVP6bXmyujEy8UqE62+pOaYYcFJ8KfYpDUiCXhqmx8EyfuFG\r\nLVbmo9/6K9hl+Etd57QiTzl/Q28QZNB1C+g=\r\n=Dtg/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexlakatos","email":"alex.lakatos.qa@gmail.com"},"directories":{},"maintainers":[{"name":"juliacodez","email":"biro.julia.izabella@gmail.com"},{"name":"alexlakatos","email":"alex.lakatos.qa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.2.0_1670527568391_0.5953250308797642"},"_hasShrinkwrap":false},"0.3.0":{"version":"0.3.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","docs":"api-extractor run --local --verbose","test":"tsdx test --coverage","lint":"tsdx lint","lint:fix":"tsdx lint --fix","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"jest":{"testEnvironment":"node","moduleNameMapper":{"axios":"axios/dist/node/axios.cjs"}},"name":"@infobip-api/sdk","author":{"name":"Developer Relations","email":"devrel@infobip.com"},"contributors":[{"name":"Alex Lakatos","email":"alex.lakatos.dev@gmail.com"},{"name":"Julia Biro","email":"julia.biro@infobip.com"},{"name":"Mike Elsmore","email":"mike.elsmore@infobip.com"}],"module":"dist/infobip.esm.js","type":"module","size-limit":[{"path":"dist/infobip.cjs.production.min.js","limit":"10 KB"},{"path":"dist/infobip.esm.js","limit":"10 KB"}],"devDependencies":{"@microsoft/api-extractor":"^7.20.1","@size-limit/preset-small-lib":"^7.0.8","@types/axios":"^0.14.0","@types/uuid":"^9.0.0","husky":"^7.0.4","size-limit":"^7.0.8","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.6.2","uuid":"^9.0.0"},"dependencies":{"axios":"^1.2.1","form-data":"^4.0.0"},"description":"Node.js Client SDK for Infobip APIs.","directories":{"doc":"docs","test":"test"},"repository":{"type":"git","url":"git+https://github.com/infobip-community/infobip-api-node-sdk.git"},"keywords":["infobip","api","infobip","sdk","sms","whatsapp","email","2fa"],"bugs":{"url":"https://github.com/infobip-community/infobip-api-node-sdk/issues"},"homepage":"https://github.com/infobip-community/infobip-api-node-sdk#readme","_id":"@infobip-api/sdk@0.3.0","gitHead":"cc2cfdac22fca1fa7b7c9de5cc578350543c3d9a","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Hbck9nfd1BQLa6zG6oIBrEL2gBiOPmPKWHll+V5Q6cOpnh3Nn5+O9hO1b0u9kl8mmnjEto5BKs/BmQ2m5CqfPA==","shasum":"f3efd5a584df2e73d6fa01c267394a7e3517382d","tarball":"https://registry.npmjs.org/@infobip-api/sdk/-/sdk-0.3.0.tgz","fileCount":58,"unpackedSize":713236,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAN2CNufuDwmYVWVPzCoGi/PY/6JSM3VxhihsXQ9kNPEAiAVvbLwgfZVFG47NHVVN06VHvqvWWtkzOdTDaOVWYAibg=="}]},"_npmUser":{"name":"ukmadlz","email":"mike@elsmore.me"},"maintainers":[{"name":"ukmadlz","email":"mike@elsmore.me"},{"name":"juliacodez","email":"biro.julia.izabella@gmail.com"},{"name":"alexlakatos","email":"alex.lakatos.qa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.3.0_1694962046650_0.7693593778666346"},"_hasShrinkwrap":false},"0.3.1":{"version":"0.3.1","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","docs":"api-extractor run --local --verbose","test":"tsdx test --coverage","lint":"tsdx lint","lint:fix":"tsdx lint --fix","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"jest":{"testEnvironment":"node","moduleNameMapper":{"axios":"axios/dist/node/axios.cjs"}},"name":"@infobip-api/sdk","author":{"name":"Developer Relations","email":"devrel@infobip.com"},"contributors":[{"name":"Alex Lakatos","email":"alex.lakatos.dev@gmail.com"},{"name":"Julia Biro","email":"julia.biro@infobip.com"},{"name":"Mike Elsmore","email":"mike.elsmore@infobip.com"}],"module":"dist/infobip.esm.js","size-limit":[{"path":"dist/infobip.cjs.production.min.js","limit":"10 KB"},{"path":"dist/infobip.esm.js","limit":"10 KB"}],"devDependencies":{"@microsoft/api-extractor":"^7.20.1","@size-limit/preset-small-lib":"^7.0.8","@types/axios":"^0.14.0","@types/uuid":"^9.0.0","husky":"^7.0.4","size-limit":"^7.0.8","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.6.2","uuid":"^9.0.0"},"dependencies":{"axios":"^1.2.1","form-data":"^4.0.0"},"description":"Node.js Client SDK for Infobip APIs.","directories":{"doc":"docs","test":"test"},"repository":{"type":"git","url":"git+https://github.com/infobip-community/infobip-api-node-sdk.git"},"keywords":["infobip","api","infobip","sdk","sms","whatsapp","email","2fa"],"bugs":{"url":"https://github.com/infobip-community/infobip-api-node-sdk/issues"},"homepage":"https://github.com/infobip-community/infobip-api-node-sdk#readme","_id":"@infobip-api/sdk@0.3.1","gitHead":"e7e6b70d997958e0a68a082f15ae9363aad8a12b","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-nRpVmricC3BNNCNUhqhb/geQDMC9McwwXlCg6DhGFYVrw17InDsQYWeAnfNMstFaJT/g4KutlT8rAGvixZSbeg==","shasum":"f7e1b8ab8851b70c1789f53f5a376c93dbf492be","tarball":"https://registry.npmjs.org/@infobip-api/sdk/-/sdk-0.3.1.tgz","fileCount":58,"unpackedSize":713216,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRL4cUJxnKmRfsOj+okZrO0qGXGmYYe588UK9swZVihAiBw9xdZhXXGzN650xKPi74xrePmIYkcs0C6Uvmd3NxJYg=="}]},"_npmUser":{"name":"ukmadlz","email":"mike@elsmore.me"},"maintainers":[{"name":"ukmadlz","email":"mike@elsmore.me"},{"name":"juliacodez","email":"biro.julia.izabella@gmail.com"},{"name":"alexlakatos","email":"alex.lakatos.qa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.3.1_1694966314867_0.2597778326345068"},"_hasShrinkwrap":false},"0.3.2":{"version":"0.3.2","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","docs":"api-extractor run --local --verbose","test":"tsdx test --coverage","lint":"tsdx lint","lint:fix":"tsdx lint --fix","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"jest":{"testEnvironment":"node","moduleNameMapper":{"axios":"axios/dist/node/axios.cjs"}},"name":"@infobip-api/sdk","author":{"name":"Developer Relations","email":"devrel@infobip.com"},"contributors":[{"name":"Alex Lakatos","email":"alex.lakatos.dev@gmail.com"},{"name":"Julia Biro","email":"julia.biro@infobip.com"},{"name":"Mike Elsmore","email":"mike.elsmore@infobip.com"}],"module":"dist/infobip.esm.js","size-limit":[{"path":"dist/infobip.cjs.production.min.js","limit":"10 KB"},{"path":"dist/infobip.esm.js","limit":"10 KB"}],"devDependencies":{"@microsoft/api-extractor":"^7.20.1","@size-limit/preset-small-lib":"^7.0.8","@types/axios":"^0.14.0","@types/uuid":"^9.0.0","husky":"^7.0.4","size-limit":"^7.0.8","tsdx":"^0.14.1","tslib":"^2.3.1","typescript":"^4.6.2","uuid":"^9.0.0"},"dependencies":{"axios":"^1.6.0","form-data":"^4.0.0"},"description":"Node.js Client SDK for Infobip APIs.","directories":{"doc":"docs","test":"test"},"repository":{"type":"git","url":"git+https://github.com/infobip-community/infobip-api-node-sdk.git"},"keywords":["infobip","api","infobip","sdk","sms","whatsapp","email","2fa"],"bugs":{"url":"https://github.com/infobip-community/infobip-api-node-sdk/issues"},"homepage":"https://github.com/infobip-community/infobip-api-node-sdk#readme","_id":"@infobip-api/sdk@0.3.2","gitHead":"61a66a5c07e92f073a4613ef07f34fd873adf5d5","_nodeVersion":"20.6.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Jj/FSBWLvt7KLVsx1fZOfIoO68AtTvi/sEv0HEOMUehssuM7/AJSLeRerQNHtBMULBKrgYIRRAU4Y3QiwUbyOg==","shasum":"a1fb897ad475e9d3be50e3446e0e63708cb478fe","tarball":"https://registry.npmjs.org/@infobip-api/sdk/-/sdk-0.3.2.tgz","fileCount":58,"unpackedSize":713216,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8z/9qP6tokrYgpLR8U1tAt7QSVwfYGjqLwBPNFqh6LwIgNjFPGyeDEtuTXLV4kPa3tEpH9qyYJAvdFMeqkq27ugY="}]},"_npmUser":{"name":"ukmadlz","email":"mike@elsmore.me"},"maintainers":[{"name":"ukmadlz","email":"mike@elsmore.me"},{"name":"juliacodez","email":"biro.julia.izabella@gmail.com"},{"name":"alexlakatos","email":"alex.lakatos.qa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk_0.3.2_1700757124877_0.7604461247793748"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-28T20:46:08.831Z","0.1.0":"2022-07-28T20:46:09.048Z","modified":"2023-11-23T16:32:05.294Z","0.2.0":"2022-12-08T19:26:08.536Z","0.3.0":"2023-09-17T14:47:26.819Z","0.3.1":"2023-09-17T15:58:35.021Z","0.3.2":"2023-11-23T16:32:05.070Z"},"maintainers":[{"name":"ukmadlz","email":"mike@elsmore.me"},{"name":"juliacodez","email":"biro.julia.izabella@gmail.com"},{"name":"alexlakatos","email":"alex.lakatos.qa@gmail.com"}],"description":"Node.js Client SDK for Infobip APIs.","author":{"name":"Developer Relations","email":"devrel@infobip.com"},"license":"MIT","readme":"# infobip-api-node-sdk\nNode.js Client SDK for Infobip APIs.\n\n# Supported Channels\n- Whatsapp -> [Docs](https://www.infobip.com/docs/api#channels/whatsapp)\n- Email -> [Docs](https://www.infobip.com/docs/api#channels/email)\n- SMS -> [Docs](https://www.infobip.com/docs/api#channels/sms)\n\n#### Table of Contents:\n\n- [General Info](#general-info)\n- [License](#license)\n- [Installation](#installation)\n- [Code example](#code-example)\n- [Testing](#testing)\n\n## General Info\n\nFor the `@infobip-api/sdk` package versioning we use the [Semantic Versioning](https://semver.org) scheme.\n\n[Node.js 14](https://nodejs.org/en/about/releases/) is minimum supported version by this SDK.\n\n## License\n\nPublished under an [MIT License](LICENSE).\n\n## Installation\n\nInstall the library by using the following command:\n```bash\nnpm install @infobip-api/sdk\n```\n\n## Code Example\n\nThe package is intended to be used with an Infobip account. If you don't already have one, you can create a free trial account [here](https://www.infobip.com/signup).\n\nThis example shows you how to send a WhatsApp text message. The first step is to import the `Infobip` and `AuthType` dependencies.\n\n```javascript\nimport { Infobip, AuthType } from \"@infobip-api/sdk\";\n```\n\nNext, you need to create an instance of `Infobip` with your API Base URL and authentication mechanism. You can find all this information on the [Infobip Portal](https://portal.infobip.com/homepage/).\n\n```javascript\nlet infobip = new Infobip({\n  baseUrl: \"YOUR_BASE_URL\",\n  apiKey: \"YOUR_API_KEY\",\n  authType: AuthType.ApiKey,\n});\n```\nAfter that you can access all the objects from `infobip.channel`.\n\nTo send text message you can use the `infobip.channel.whatsapp.send` method and add a payload:\n\n```javascript\nlet response = await infobip.channels.whatsapp.send({\n  type: \"text\",\n  from: \"447860099299\",\n  to: \"447123456789\",\n  content: {\n    text: \"Hello World\",\n  },\n});\n\nconsole.log(response);\n```\n\n### E-mail Attachment Example\n\nWhen sending an E-mail with an attachment or inline image, you'll need follow the below process\n\n``javascript\nimport { Infobip, AuthType } from \"@infobip-api/sdk\";\n```\n\nNext, you need to create an instance of `Infobip` with your API Base URL and authentication mechanism. You can find all this information on the [Infobip Portal](https://portal.infobip.com/homepage/).\n\n```javascript\nlet infobip = new Infobip({\n  baseUrl: \"YOUR_BASE_URL\",\n  apiKey: \"YOUR_API_KEY\",\n  authType: AuthType.ApiKey,\n});\n```\n\nAnd to send with an attachment, the following way to identify it\n\n```javascript\nlet response = await infobip.channels.email.send({\n  to: 'test@example.com',\n  from: 'Tests <testing@example.com>',\n  subject: 'Testing',\n  text: 'hello world',\n  attachment: [{\n    data: Fs.readFile('/path/to/your/file'),\n    name: 'name-of-the-attachment-in-the-email',\n  }]\n})\n\nconsole.log(response);\n```\n\n## Testing\n\nTo run tests position yourself in the project's root after you've installed dependencies and run:\n\n```bash\nnpm run test\n```\n\n## Building & Installing a Local Version\n\nTo build the project for the first time, position yourself in the project's root and run:\n\n```bash\nnpm install\n```\n\nSubsequent builds can be triggered by using:\n\n```bash\nnpm run build\n```\n\nAfter building a local version of this SDK, you can use it in a local Node.js project. First, position yourself in the new project root, and then run:\n\n```\nnpm install ../path/to/infobip-node\n```","readmeFilename":"README.md","homepage":"https://github.com/infobip-community/infobip-api-node-sdk#readme","keywords":["infobip","api","infobip","sdk","sms","whatsapp","email","2fa"],"repository":{"type":"git","url":"git+https://github.com/infobip-community/infobip-api-node-sdk.git"},"contributors":[{"name":"Alex Lakatos","email":"alex.lakatos.dev@gmail.com"},{"name":"Julia Biro","email":"julia.biro@infobip.com"},{"name":"Mike Elsmore","email":"mike.elsmore@infobip.com"}],"bugs":{"url":"https://github.com/infobip-community/infobip-api-node-sdk/issues"}}