{"_id":"sinch-rest-api","_rev":"50-dc020138b0b0b37fdc6a39896d9c6794","name":"sinch-rest-api","dist-tags":{"latest":"0.0.20"},"versions":{"0.0.1":{"name":"sinch-rest-api","version":"0.0.1","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.1","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"8ccf3a46ce58704936e325cc8f2c93d35b4286bc","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.1.tgz","integrity":"sha512-DieukNr+VE/HNLnMj+3OIrmiMWI8+vOFh6tBFu/as+rXdDn4pjaJmB84iLkSlXaRR806uXndJQ5MujOmX8loMg==","signatures":[{"sig":"MEUCIQD/iyYvdO/VQnuqZYGTZZGpBv9HGFWxDIxfk4LHAqWRuQIgHfdKMssHdaXKInFI3yz4WLaN0QMgbcYH1EUf5R4Ay3k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8ccf3a46ce58704936e325cc8f2c93d35b4286bc","gitHead":"12067dc7caabba71d7fd1c1f95188d03ca023688","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sinch-request":"0.0.4"}},"0.0.2":{"name":"sinch-rest-api","version":"0.0.2","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.2","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"7033d8c27308fdaa9ccc643435df546813ead4e0","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.2.tgz","integrity":"sha512-TLsS89KGPObzWc+5zefJr6E0untxvbML7a43iOxHUnP2opyhLP4BkkKvcVSfe/PORzTMGe4gVU/hwCHqlwPvYQ==","signatures":[{"sig":"MEQCIHVzAVMRcvMqW+z4/SngLv0CQDax7OnJ0txbnbRb6+VeAiBrh5F8nfNQ4hWKDoe3YWEB+FiTbOj4PxuZVzmXGDy8ZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"7033d8c27308fdaa9ccc643435df546813ead4e0","gitHead":"a64fab70c1a551e5481296166fc33b8f928154e2","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.3":{"name":"sinch-rest-api","version":"0.0.3","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.3","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"620b1df6e5e5c7eddb6d07985c8a347e464a2c2f","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.3.tgz","integrity":"sha512-lUEl7yfXAllxKGWKg9vO6kyb7ULOK71vpUQDeKDmQACfjMObotine05MoG6HzuUyOs/ZZii85vpUi1L8yEbdQg==","signatures":[{"sig":"MEYCIQCewagEf+RP3ti3bUppncSnQh/J4tG9c0hhCWsMIf1qygIhANoMIuw1c5Wfm+EryDfuBgCuX2htlFYQpL0TmmyIEhXc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"620b1df6e5e5c7eddb6d07985c8a347e464a2c2f","gitHead":"a64fab70c1a551e5481296166fc33b8f928154e2","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.4":{"name":"sinch-rest-api","version":"0.0.4","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.4","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"71145409e3096cb9f845764d7c1957c98126ff8e","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.4.tgz","integrity":"sha512-br1cq5FPbhUbjRGpR/ajayMdV9ou9Z0j0qpioVx0O+dTyWpXAhm1cjYfe2SsWt1Hkcjjbn2/Ce5Ifphc36ZXPA==","signatures":[{"sig":"MEYCIQCd2XfYoHWO7bxdrxGAr8xReI55j9oEEbaKNLuBre1NfAIhAP4onCxDld4E2FhiHHYEuIN0FpMZ9pmSDliQHmlRGCQS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"71145409e3096cb9f845764d7c1957c98126ff8e","gitHead":"9f523b2c08a7ee0a91a8927f33c99e56ee1a7344","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.5":{"name":"sinch-rest-api","version":"0.0.5","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.5","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"760c40e50b8fd1bdc70a128304805c6358bcf87c","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.5.tgz","integrity":"sha512-gEXfEM/iOFw2sWkhYy0ICkxntle+ZEnRl2oU++oWCX67uZeuG7sW0eMkk5trIxEJkNV7gDT5pV+eGpifR+9zkw==","signatures":[{"sig":"MEUCIQCwlOPTuNPcXbRMTrK3U/NYF6UrOK2iv2Nak9dR7mL3TQIgT9QCydjtgoDPdxIrYkSVe1FdelQ2QiqC1liRsZBZMaw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"760c40e50b8fd1bdc70a128304805c6358bcf87c","gitHead":"a0161554e03a24acff88d0974e068c2ea9674e8d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.6":{"name":"sinch-rest-api","version":"0.0.6","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.6","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"234a6c1d92873e576a3a7294c86dd3ca1c74d43a","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.6.tgz","integrity":"sha512-dA54i0SwOmNnEnH8uGEGSIyaORaG4PP6h6Ch7dSDrOO5m2AHuF5jhPUlPj2JDSORKksFKivRs2eUGuLHxFJVkA==","signatures":[{"sig":"MEYCIQC8vZNqVyJbKX/5SmD4mhargDcNQHf+rMysg87seDyCigIhAJA9yE8kex7bHxA1nVWEMQFWj2EH9/rWDEiISzccxHYs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"234a6c1d92873e576a3a7294c86dd3ca1c74d43a","gitHead":"fd124c0a1ecfbe46fc5de14df1c173c9c4acbd29","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.7":{"name":"sinch-rest-api","version":"0.0.7","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.7","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"2caa474e8650546bf034e2adb3de6a7c77f362d0","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.7.tgz","integrity":"sha512-McZ9pUelTDXlAN3thA8CuWNgkOY1me54lowAY9cE/zB/Hu+5PV54PkWXL4WgIzstYI1dBwCH4Ku12D6u2mPVQg==","signatures":[{"sig":"MEUCIF1vlUsA22DmH0JKa8Lt3Uy2qb5J6p87v5491UARB3WYAiEAmPO6RoHf7RcyzyCvvNzjSa/bIx3uciuC8S2KAXPl4FE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"2caa474e8650546bf034e2adb3de6a7c77f362d0","gitHead":"1f17b6ba3f3016bbe62f09fef5433ed799da61ca","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.8":{"name":"sinch-rest-api","version":"0.0.8","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.8","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"80a644599252a6b03c20cadda0ea337bfa4cc7ac","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.8.tgz","integrity":"sha512-a1lLCrUpCgYDsxL8dmezBJUAWCS86f385rugN9VKzxNYPHioAaWflgh5FSCZfj2tUUVmQEBZR9Do/LzlFjl4Dg==","signatures":[{"sig":"MEUCIAjxJ12zEuL86dMfaOaPmpb+dAosAjw7fDBjYd7Tv+NWAiEA0BCEwyjUHeLhN9pXttVK+/KlJjj7sLCsmpw9Y8anxlQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"80a644599252a6b03c20cadda0ea337bfa4cc7ac","gitHead":"dadb85491888f66036e6677d5b40522f5dfde56d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.9":{"name":"sinch-rest-api","version":"0.0.9","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.9","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"6f395e8a296c4e2422330d7d23b4e79b5afbf3ec","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.9.tgz","integrity":"sha512-AP0B806ADRs0HCVw/262B+s94FrIctvmrdzl5k+SueRr5bFfvF9CK9eozRL51PyocNigqyL5e3Ck/wA/jASjIw==","signatures":[{"sig":"MEUCIDNotfcq/RE629ja2IaxCv5JeCLvdHeLoD71OAO8UftGAiEAhGxJV8/bM+57kUXW0seLKPu4KJS91bwLv2MBpbcHs1M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6f395e8a296c4e2422330d7d23b4e79b5afbf3ec","gitHead":"bb3ab37366a6e6cf6758106cde5a3b641a20f4ca","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.10":{"name":"sinch-rest-api","version":"0.0.10","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.10","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"a4f9ce27db55b04d60f9853edba0c85b1322fea7","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.10.tgz","integrity":"sha512-vEOb7c7edVFE433aGKt1h+OkNsBIuluPFr8MgIV5Pl43GzfS8bIxqWiIrYNVTqRrnQ4mUyWHg7P2SsNYUqqkEw==","signatures":[{"sig":"MEQCIE5Hfj0MWZM/c4DoTNoCNjjgs+urMRZvju6XdoKCI7GyAiBbMl0PthSGuQXCWoCTefXTySbygF942e9zWv36iw7aaQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a4f9ce27db55b04d60f9853edba0c85b1322fea7","gitHead":"f56e31b9a225d87a73f99efded42af1881a9714f","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.11":{"name":"sinch-rest-api","version":"0.0.11","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.11","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"40af6815f28cc97b494d3cbe7c493d804bd30608","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.11.tgz","integrity":"sha512-+BeMLjSk0EcrUjhBg9J3y/A4NPRcw1LCVqKxy8gn3uSAiGDgXzORGz3LGhMsJ3Yreu0lwLQpbeKAQ6iDoVtfBQ==","signatures":[{"sig":"MEUCIQCrh5s6txFimxm6EgkgF+4tWULXMJMtW9IfpGn7HknGewIgcnVW5yOR84jTvt5gH7snaVajjY6HIbOh3Ovl+k+krxI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"40af6815f28cc97b494d3cbe7c493d804bd30608","gitHead":"d22c2b353d06b731a3a2301f7276680986c68a56","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.12":{"name":"sinch-rest-api","version":"0.0.12","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.12","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"53ddcfc3bbf870f92b4ac66d1fe5aea9d34eaa63","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.12.tgz","integrity":"sha512-weLF1scWxIYNMJ7COi0kNt+iK7LIeLjD2QlBvSGgsbyOt2Z0d1jAVCoQzX7lKfO3YN/AvdzBr+EuDo7m9GqJzg==","signatures":[{"sig":"MEUCID34JnSpTt7M+G8fHeTJxlXvd1rjlzC9dVNb2ieZsBaIAiEAom2f556hnDXrdHUy5bspA6PEbC62Ofp4fC7TedyIwY8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"53ddcfc3bbf870f92b4ac66d1fe5aea9d34eaa63","gitHead":"35651b1d1a0722cf8054e0dfe97f9b3653da635f","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.13":{"name":"sinch-rest-api","version":"0.0.13","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.13","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"fe1e57ff3399fd0158fc78a1e322f77c28e063ee","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.13.tgz","integrity":"sha512-AAojVxoUQv5V7oIAc5gP8h2h/E14mH1RSz6XfKk3JssgO4r6HQ62qJNmLDAE8xdmYH4YBoFPpVtMgwCzaJkJUw==","signatures":[{"sig":"MEUCIQCbNjSvlpUv8HYuqq4FdT+d0tI9CaxKNv0IQZf57xDz6gIgK107JSTRUszLuN74b2UBGDHofQvyvCsqvGY3zeE3tMI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"fe1e57ff3399fd0158fc78a1e322f77c28e063ee","gitHead":"8c00876360d0a20fa01efc3d14db020412210998","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.14":{"name":"sinch-rest-api","version":"0.0.14","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.14","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"480dc1871c08cdbdfcfd217c5678d9f7b7839212","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.14.tgz","integrity":"sha512-oPc2GqSuxmjjly1cXsf3FGgkcRlrMuBTILAeTtt8Dql66yRS6S/kBP/R2wMjOgIez54x8WHVtvwcH1D4O4/5Hg==","signatures":[{"sig":"MEUCIEqqLgeXtG3PK5q7qpGk3OhPQjdePKH4UfP2ACMQU51CAiEAghNqcyUoZiCsHBUQpCTAwqQ8YhZ/Ac8v2CW1JL3NDLk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"480dc1871c08cdbdfcfd217c5678d9f7b7839212","gitHead":"881ca76a2fb109bc17bb9ffd7cfb7ee37db5d60a","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"0.10.32","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","sync-prompt":"^0.4.2","sinch-request":"0.0.4"}},"0.0.15":{"name":"sinch-rest-api","version":"0.0.15","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.15","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"e7f02c0f5817f38ce80a9e5b78de9c7a0fe393e0","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.15.tgz","integrity":"sha512-4548hAhv7V9sIwVBBSzFk6JcTPyavVK8vr75mVpl6xSEbLVUsYVCXnmIJEZTQKexnxVwgksZChm191YZ62GREg==","signatures":[{"sig":"MEUCIQD1p/oov9jgWYhe1T/Z9yeItHuBwBTqt1jCmldhK2nC3QIgckHAfkfxuNisUgxl6wiDFvTqZ71mhhtzm74z1DTw/WE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"e7f02c0f5817f38ce80a9e5b78de9c7a0fe393e0","gitHead":"47a3bbf703c1499bd228913e3ec696204c00888a","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"4.2.3","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","syncoprompt":"^1.0.1","sinch-request":"0.0.4"}},"0.0.16":{"name":"sinch-rest-api","version":"0.0.16","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.16","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"bc3dacddf431d0dbf762feabfc61a41b13d0e717","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.16.tgz","integrity":"sha512-w8HsOB9yaXudP1bR+99SNuMJzu1i2jrl5HqY9rQAPj1Qu15mRYEuFqXAnMlxULBt6rcux5gbBWYklQf+oGB3lQ==","signatures":[{"sig":"MEYCIQC+o0SHRxBwGfuNy9g/2EkYwdN6iwjzb3nVmUbPI6vhogIhANInehxWg5Bgci1m61X0RVvHFcydME5duiKrYxu71nwC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"bc3dacddf431d0dbf762feabfc61a41b13d0e717","gitHead":"9162917458229a32c45361b08ba223aa0661b79b","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"2.1.7","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"4.2.3","dependencies":{"q":"^1.4.1","assert-plus":"^0.1.5","syncoprompt":"^1.0.1","sinch-request":"0.0.4"}},"0.0.17":{"name":"sinch-rest-api","version":"0.0.17","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.17","maintainers":[{"name":"tantawi","email":"eltantawi@gmail.com"},{"name":"sinchmagnus","email":"magnus@sinch.com"}],"dist":{"shasum":"ae6461f7d5c101aca38177c986ee1ca79e43db26","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.17.tgz","integrity":"sha512-tNVcVCuw+Z9vGH3CHvXe4jP1llUIEWC5E7qx7CnXMc+IJTivh9CSqIDKL3Yj1YeJqqaPsq34VUN/v2L6WK30gQ==","signatures":[{"sig":"MEUCIHAG0Rp2jvENrLFQ+CaPr2eJGzsh8ccoKGEpcVt5m9ymAiEA/fAQXhFZCM7IkVCXcZdMOzdhN9xEi2DGpaHJZi4Jdg8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"tantawi","email":"eltantawi@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"5.5.1","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"8.9.1","dependencies":{"q":"^1.5.1","assert-plus":"^1.0.0","syncoprompt":"^1.0.1","sinch-request":"0.0.6"},"_npmOperationalInternal":{"tmp":"tmp/sinch-rest-api-0.0.17.tgz_1510662045912_0.8448192540090531","host":"s3://npm-registry-packages"}},"0.0.18":{"name":"sinch-rest-api","version":"0.0.18","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.18","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"},{"name":"tantawi","email":"eltantawi@gmail.com"}],"dist":{"shasum":"d261bc5ac37de11b04c853ada209536ee720ef8b","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.18.tgz","fileCount":17,"integrity":"sha512-CZcnhegABGbj9GhjSwODIIwraKKFAYjQxLc9nTghQ8BblOhX2nXM0QAewcuwBifgQaNPwTMpl9Kh3Err96nkxw==","signatures":[{"sig":"MEYCIQCbiM68qe6HC14+dOShCdz6RjQps2TAnRk5rFGNFQZdugIhAIUREDv7GOfhubVOoZfY5Pk1fFFliXXHb5qYf6+EDPb0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfSezCRA9TVsSAnZWagAAIxMP/i54Tb8gqz0Em0yElBf5\nY8tW68Ej1Ws6786Kb7P1ravYxFSTHIN448sUEctF4HaRkipspaMpUuyoXwvA\n9DOaBEP8r/5J7e9tnv9cKV0FGHYUM7DE1pBQTNCEYAFT85A+58ta5MXWCz7U\nOHUzCi4rmW9cQp8D8Bj6Tm9A/7n8ld4UroxtI84u7ARtRh+aO+Xv0HH9BMhw\nJZcyVv5qLPoXU8UjgY/bB52EEd3VMo+jZ8pxbwqXRJplrnEUJV6+SNeePPWZ\nWID51m9BTSeh2aoLVsyveeN72dic+5Jf75Mam4Y35CDaUDNVfrFseDmVUn4h\namsvyBxcygC4xx2Z3JUWkJANxOQo43tPdwxfSYHfDNXlmZ+Dvj/FwmkLQFOI\nINg0bkbfID0LbkM79lO65ye4Tc5/07EJj86YYQQQBmuVaPrsz4V7I46t01rE\nRvzY2QdAeNW9AgNom4Zjt+YjsknXt5SGCNhV2/0GklJ1+y61nO45iioTQ6P2\nMV+ad/j3gfCLyKmPYFg5Ze8O1V5DLSM4oqzUbT9Y/z7psOGVfs5UP4fbmZjq\ngGGy1sZeFaea8NJh1bDOyJMpwjS6T4eduhG87BJvsTCxKCRb9aUmJBOJ9cCU\nrFe7Uxg95Nf6pt5Wx79L0jBeQhdcEpJsHoein2V7/m3g0xqEqAbns9J8yULZ\ngld8\r\n=NatB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"dd944c0fcbb127001d0befebd64d985845e82e76","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"6.1.0","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"q":"^1.5.1","assert-plus":"^1.0.0","syncoprompt":"^1.0.1","sinch-request":"0.0.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sinch-rest-api_0.0.18_1534928818972_0.47057908697032147","host":"s3://npm-registry-packages"}},"0.0.19":{"name":"sinch-rest-api","version":"0.0.19","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.19","maintainers":[{"name":"sinchmagnus","email":"magnus@sinch.com"},{"name":"tantawi","email":"eltantawi@gmail.com"}],"dist":{"shasum":"2ea546f39099b0a0cee3c03cede1183b288296d7","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.19.tgz","fileCount":24,"integrity":"sha512-kq5Tcc1XKCdADZUjt0gFTGNGjjzTuNS1Kz23Jg3fLB0imT0BJk0XTdQ1zCkS2Pxa2jZGg20vCJO3tKL9KgoBrQ==","signatures":[{"sig":"MEUCIFNdCqDECjVlsmU2b4CaO6xKR99f7JGpy0ME8WVAEV1eAiEA4RA1/59QzYAxIv7MdaUqGpSVKg+GSy90En1gSg+6eOo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29900,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOv+lCRA9TVsSAnZWagAAi14P/RTO8iRSk3LPsN6e0G6g\n/Hgg15ItoCvrzUfiUKDtCege1hwdVr0rdS5RFAfdeRx6LRjGxnVa/C7RVdVQ\n6rHbJ92T19Eu6LsLPtNBXFh0eJLd9b8jYd4Wk7E6fuWojveF+ovKNIajiQcz\nIfsSt+uty4jhMG+/BYfeeyx4GcIbnlfjzPcYLmfie5pCRCZ+yGqbxV/8Fazv\nO4vV+RNumsGVvBZO5WQBf3hrJVcYktYmGzn5yPAHHRiu4VyZIKotaT6J0em3\na/GfR8YgZWoav176k7f6L1CVKg61GcOExf8aAuzUVxivIVlD1NFS+6J6zCjZ\n0oXUPb/ZC2LnE2N+gx/WaH7WzBsY+wKUWyx/UJLliW/6ckCsRMTIXfktMirA\nH0fkzV9iekx30HBUc0tARZOxKvJY+T4jH5kMyyz8mOFh9rpoznIrO2dorOEJ\nZBvTZ5+Fd9kHrkL+CmV0ywlRtN54k81LFEQtBsIf+6wKMPgLxnsdAvTxKPyZ\nngEP2/CvzLdLz7Qos1mXh3E5vLAd6AD8SfiPuqlqWI8oH0rKgYzs6DKORTFg\nhi1wNhmguat8Py+dwPONK2Jgo0YwaXZdxGIllFissbKyN6XI8ch2KX97EpXt\no7MK6JrX3BupFTF1TBrz1nyE0p6essAX54r+DCqUU0dx3UQG3KX/RPFuSGia\nKrBG\r\n=v1NM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"ad123d02d7ff0facbb7c73ef6691c0701ec0e477","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"5.6.0","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"8.11.4","dependencies":{"q":"^1.5.1","assert-plus":"^1.0.0","syncoprompt":"^1.0.1","sinch-request":"0.0.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sinch-rest-api_0.0.19_1564147620451_0.12660935601037293","host":"s3://npm-registry-packages"}},"0.0.20":{"name":"sinch-rest-api","version":"0.0.20","keywords":["Sinch","API","REST","SDK","browserify"],"author":{"name":"Magnus Lundstedt"},"license":"MIT","_id":"sinch-rest-api@0.0.20","maintainers":[{"name":"davidmsinch","email":"david.marquis@sinch.com"},{"name":"sinchmagnus","email":"magnus@sinch.com"},{"name":"spacedsweden","email":"christian@sinch.com"},{"name":"tantawi","email":"eltantawi@gmail.com"}],"dist":{"shasum":"c2429ce80bddd8bab6d578c128a2de618d6fd8b1","tarball":"https://registry.npmjs.org/sinch-rest-api/-/sinch-rest-api-0.0.20.tgz","fileCount":24,"integrity":"sha512-vNS5ukXm6pl41+g5XgaI1DlYNrjw5j1qRHNsxAjQmH6rX3fySz04ZqyIBwB1fqU7uIB0GM5qiJ96GquVLc1H5w==","signatures":[{"sig":"MEUCIFQW3bBt8wWpuiQrveHQN1p/QsRrAlfchgUO/9qutw/QAiEAo9GdQ75OjObEfMPVve80/XJk+/ChlNmhS5cvy3GPG3Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJubdCRA9TVsSAnZWagAAmHcQAJEQW+P81OEMfWLrUjU4\nEKCmdOeQCD2LjHaxhEr7E1f6oFvS4JazawvvsUjHb0sJgopdWOSXkthT/0wp\nqsV6qGlouKn0hxe6klAa5Nnfr27JBAB1deivVn6cIRkvftM8EFkSqNE6tDOj\nlIamvEh5GCaGH2M/6CkI3JAdaVk9QPyru6QedvtyW8qOKcnjFHp2mY01vxHS\nWVBchDrZC8pmgT3YF4mIOqIXRz+hCTa43AoobWIZU/WipD8xMEp15uXV6jQx\n3gVbaRiOP1S9ywUMgmNEbHcNWyKuwEDibWCwRyVvaN9vxQV7a8bjZDucwqop\nAU8whE6yHxF69ObApeocWILFpGGxcd5ss4pS6USiv1Xw7MePtiNH9dpV8TuA\nVKpr6Sr2UF3Qx1cFI8QpI0RvAZZw8pjI0cpR6iw+4Ene9WwEdxy8Ra+xqFNU\nhRS4Z5ZiEY+eMwjBPeeyWxG8vvlDka6r58B7b6otmAYZ3YbDO2yIlKu2diOc\nteqrjj7ts5Ccq5JYcvWukkfM3SJ+nHpX75qhXp6sxI2LWk0ATHuTr1AoOD7a\nRoz4e9eYZDrFI6Vv148yotDuuy9NLaAqrO606ySkP9nrIPKOZ3JDo880lthG\nRk3XYrUImhy9kCtTS1tKxP8lfu/81e+OR/bGriam2KeZyELMa9PZ7PhKFsgS\n6esv\r\n=B3ub\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"0d80fcaea25ccfcd7bfd546f2bcf6991e60c6725","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sinchmagnus","email":"magnus@sinch.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"5.6.0","description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","directories":{},"_nodeVersion":"8.11.4","dependencies":{"q":"^1.5.1","assert-plus":"^1.0.0","syncoprompt":"^1.0.1","sinch-request":"0.0.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sinch-rest-api_0.0.20_1579607773323_0.31995021126313095","host":"s3://npm-registry-packages"}}},"time":{"created":"2015-08-05T12:17:57.775Z","modified":"2026-08-11T13:02:19.314Z","0.0.1":"2015-08-05T12:17:57.775Z","0.0.2":"2015-08-06T07:12:28.739Z","0.0.3":"2015-08-06T07:13:28.121Z","0.0.4":"2015-08-06T08:21:35.824Z","0.0.5":"2015-08-06T09:29:46.944Z","0.0.6":"2015-08-06T15:14:40.922Z","0.0.7":"2015-08-06T15:18:27.349Z","0.0.8":"2015-08-07T07:16:24.249Z","0.0.9":"2015-08-07T07:34:52.327Z","0.0.10":"2015-08-07T15:16:58.258Z","0.0.11":"2015-08-10T11:56:09.937Z","0.0.12":"2015-08-10T12:37:13.665Z","0.0.13":"2015-09-25T14:14:41.501Z","0.0.14":"2015-11-16T11:30:50.753Z","0.0.15":"2015-12-15T15:38:55.934Z","0.0.16":"2015-12-15T17:02:24.780Z","0.0.17":"2017-11-14T12:20:46.915Z","0.0.18":"2018-08-22T09:06:59.062Z","0.0.19":"2019-07-26T13:27:00.850Z","0.0.20":"2020-01-21T11:56:13.543Z"},"author":{"name":"Magnus Lundstedt"},"license":"MIT","keywords":["Sinch","API","REST","SDK","browserify"],"description":"Library for making Sinch API Rest-requests for client (web/node) or backend.","maintainers":[{"email":"Antoin.Sein@Sinch.com","name":"asein_sinch"},{"email":"hugo.rivas@sinch.com","name":"hugo-rivas-sinch"},{"email":"marcos.lozanoromero@sinch.com","name":"marcos.lozanoromero"},{"email":"eduardo.sansegundo@sinch.com","name":"edu-sinch"},{"email":"patryk.mazur@sinch.com","name":"patryk.mazur.sinch"},{"email":"isthi.irfan@sinch.com","name":"isthi-sinch"},{"email":"dhaval.gusani@sinch.com","name":"dhagus_sinch"},{"email":"christian.jensen@sinch.com","name":"spacedsweden"},{"email":"piotr@lecenakodach.pl","name":"emems"},{"email":"jean-pierre.portier@sinch.com","name":"jpportier_sinch"},{"email":"magnus@sinch.com","name":"sinchmagnus"},{"email":"eltantawi@gmail.com","name":"tantawi"}],"readme":"# Sinch HTTP Rest API module\n\nNode module to make Sinch REST requests from within Node or Web applications (using Browserify).  \n\n## Installing\n\nInstall is straight forward using npm;\n\n\tnpm install sinch-rest-api --save\n\n_Note: Module is compatible with browserify_\n\n## Include module in your project\n\n\tvar sinchApi = require('sinch-rest-api')({\n\t\t\tkey: 'YOUR APPLICATION_KEY', \n\t\t\tsecret: 'YOUR_APPLICATION_SECRET'\n\t\t});\n\n_Note: Secret is optional, but starting that way will require additional credentials to be pushed to the credential stack for most features, see samples and chapter on credential stack below._\n\n_Note: If undefined is passed as credentials, sinch-rest-api will default to the Sinch Portal application key. See chapter on credential stack for more information._\n\n## Major API's \n\nSinch API consists of a number of major API areas, they're all reached from the same instance: \n\n* __sinchApi.base:__ Sinch base API, such as retrieving instance credentials or server time\n* __sinchApi.calling:__ Sinch calling API for PSTN and data calls\n* __sinchApi.messaging:__ Sinch messaging API for IM and SMS\n* __sinchApi.user:__ Sinch user API for user management (JS Auth)\n* __sinchApi.verification:__ Sinch verification API for SMS and Flashcall verification\n* __sinchApi.portal:__ Sinch portal API for partner portal operations\n* __sinchApi.reporting:__ Sinch reporting API for statistics and CDR retrieval\n\nWithin each there are a number of methods that can be used. These are defined in the `papi` folder. \n\n## Making REST call\n\nPlease see the [official documentation](https://www.sinch.com/docs/overview/) for information on the available REST endpoints and data expected. You can also get a clue in the definition files found in `papi` folder, however, quite often the endpoint may require certain data, in these cases please refer to the REST documentation or the sample apps. REST documentation is available for [Voice](https://www.sinch.com/docs/voice/rest/), [SMS](https://www.sinch.com/docs/sms/) and [Verification](https://www.sinch.com/docs/verification/rest/)\n\nAll Sinch API methods returns a promise, which will be resolved for any HTTP response code between 200 and 299 but rejected for all other http codes. In both the case of a resolve and reject the data is passed back as a parsed Javascript object (if possible), otherwise it will be returned as a string. Sinch REST API module relies on the Q library for promises.\n\n## Example\n\n### Application signed REST requests\n\n\tvar sinchApi = require('sinch-rest-api')({\n\t\t\tkey: 'YOUR_APPLICATION_KEY', \n\t\t\tsecret: 'YOUR_APPLICATION_SECRET'\n\t\t}); \n\n\tsinchApi.messaging.sendSms({number: '+1555123456', message: 'Hello World!'})\n\t\t.then(console.log)\n\t\t.fail(console.log)\n\nThe module `sinch-rest-api` is configured with application key _and_ application secret. This allows for application signed requests, which are typically made from a server/backend (never a client). \n\nUsing the `sendSms()` method in messaging API, we can pass an object containing a number and message to send a text message. The method returns a promise which can be used to take action when the SMS has been sent. In this example, it will simply log to the console on success or fail. \n\n### Instance signed REST requests\n\n\tvar sinchApi = require('sinch-rest-api')(); \n\n\tvar ticket = 'Some ticket, might be from sinch-ticketgen or sinchApi.user.authenticate';\n\t// Note: Using sinchApi.user.authenticate requires both key and secret\n\n\tsinchApi.base.getInstance(ticket) // Retrieve instance using a ticket\n\t\t.then(sinchApi.pushInstance.bind(sinchApi)) // Push instance to credential stack\n\t\t.then(sinchApi.calling.getConfiguration) // Retrieve call config for particular user\n\t\t.then(console.log)\n\t\t.fail(console.log)\n\nWhen performing acts as a client, or a user, of your application, requests are typically signed using the \"instance credentials\", which, just like the application credentials, is a key/secret pair. In order to use the REST Api with Instance signed requests, you must first obtain the instance credentials. In order to obtain an instance, a ticket is required, which contains data about the user, how long it's valid, the TTL on the created instance and a signature generated using the application key/secret credentials. \n\nThis allow clients to authenticate as a particular user without exposing the application secret to anyone. \n\nA ticket can be generated using the node package `sinch-ticketgen`, or it can be generated by Sinch servers if `JS Auth` is enabled. There are some risks with JS Auth, such as lack of control who create accounts, which is why it's recommended to always rely on making tickets in your infrastructure.\n\nPlease see documentation in sinch-ticketgen on how to use this module to generate tickets. \n\n## Credential stack\n\nThe sinchApi module utilize a stack for credentials, on which new credentials can be pushed when authenticated or popped when not needed any longer. \n\nWhen creating the sinchApi object, the initial (or root) credentials can be passed. These may be an application key/secret pair, only the application key, nothing for default partner management or it can even be a user instance. \n\nWhen having root credentials without a secret, the methods possible to use are limited to retrieving an instance using a ticket, or authenticating/creating users if \"JS Auth\" is enabled and retrieving a ticket which can be used to start an instance. This is useful for client applications. However, it should be noted that it's beneficial to have \"JS Auth\" turned off and instead generate the ticket on your backend. \n\nAuthenting, or creating, a user will result in a ticket, which can be used to create an instance. If this instance is to be used in future requests it must be pushed onto the `credential stack`. When the instance is no longer needed, it should be popped from the stack, returning sinchApi into a state to use the previous credentials.\n\nThis allows for great flexibility, for example a scenario where your root credential is the default partner management credentials, you authenticate with your sinch.com account, enabling you to make requests on behalf of you. With the new credentials you can, for example, purchase DID's or perhaps retrieve a list of applications and for each application push / pop the application key/secrets to make requests as that application (e.g. sending an SMS). You can also authenticate as a particular user and push those credentials on top of the stack to act as that user until you pop back. \n\nThere are two methods for managing the credential stack: \n\n* __sinchApi.pushInstance(credentials)__ Push new credentials on top of stack\n* __sinchApi.popInstance()__ Pop top credentials off of stack\n\nInitiating sinchApi with empty credentials, sinch-rest-api will default to the default partner management credentials, allowing you to manage your partner account. \n\n\tvar sinchApi = require('sinch-rest-api')(); \n\n## Feedback \n\nQuestions and/or feedback on this module can be sent by contacting [dev@sinch.com](mailto:dev@sinch.com).\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 Sinch AB\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","readmeFilename":"README.md"}