{"_id":"@addtodoist/twitter-autohook","_rev":"4-c006a934f88eca97f919ea3249e07c15","name":"@addtodoist/twitter-autohook","dist-tags":{"latest":"2.2.0"},"versions":{"1.0.0":{"name":"@addtodoist/twitter-autohook","version":"1.0.0","type":"module","description":"Automatically setup and serve webhooks for the Twitter Account Activity API","repository":{"type":"git","url":"git+https://github.com/AddToDoist/autohook.git"},"main":"index.js","author":{"name":"Twitter"},"contributors":[{"name":"David Jiménez","email":"dubisdev@gmail.com","url":"https://dubis.dev"}],"license":"MIT","keywords":["twitter","twitter-api","webhooks"],"dependencies":{"dotenv":"16.0.1","needle":"3.1.0","ngrok":"4.3.1"},"devDependencies":{"eslint-plugin-import":"2.26.0","eslint":"7.6.0"},"engines":{"node":">=16.0.0"},"gitHead":"3301d04204df0b38b269285cad67d46745e786da","bugs":{"url":"https://github.com/AddToDoist/autohook/issues"},"homepage":"https://github.com/AddToDoist/autohook#readme","_id":"@addtodoist/twitter-autohook@1.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-bZnVKb7GDOlE3PXKWBjrPtEm2hvCH+RKXH/rsWi7vL4UaEtNSLgLQNfua7r/D0xUDnRuShryOZfXsE+0mc/Rpw==","shasum":"643562663256db9bf688356f1c648c7bd4ae837d","tarball":"https://registry.npmjs.org/@addtodoist/twitter-autohook/-/twitter-autohook-1.0.0.tgz","fileCount":13,"unpackedSize":117923,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE9pVEODIu/Uf83PqhkV55gkZm0kbEuwDPKKJXbD+luuAiEA9e0z5tg7xm8XGxcz0I2qfLMohMZakmEYvLOAyhV27Ic="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqZbWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBcg/+MiBPySNKT9ZplTfdiYx7oxmHVsBw3xWHOnP1MDFBbnAMAIZ2\r\ntwAtx6zrKrOl7B6I1uueA7a8PzrLctW3MUk/qOOx6VOgcMEpV1jcv3alswcD\r\nt2amvPtD1ESs9Jwn5aasSj5cT+4L9IHzAaFv4j+rFVgSXXWMSQ03hJvhEJFu\r\np2mrt4wRijAz8yKdMM4esgfuIO7FhmcSvsgn2SALzOZZqjCC2hWdneKUnq9k\r\nETFeqVzOldISLNNar+j4jDF8JYzkReP1fl3lj1qIcAo11BxjqrG08rUClVAd\r\noG636ZX0VuCMuK62nwxq61iqEmwFm8JYgBx/BfsNvkA7Z9s568Um/kDJgjeE\r\nXna8b2lpvwO4ZaBz6JfmhAq7JAls3m3XZvk27/oK34BG2H5WHt2ZN7z3FXWQ\r\neC5DqatJs/zrJdLvwDbX/jzUcXHOSUWe+dNZLlTHOCy38kTYXzWp/LUOGP4s\r\n3NBduatYpooHoXa3Ski38w0RfMcmO4NRuGQ4HKf6lGFtHJI9dJKXd3FLkJMU\r\ntnNBb3kM2DfmVt0bOmDPrQ8LJtIiDy1IxiHk7O7L5L7Koea2rvAaO5cwTIeR\r\nPyPWbvNMo6yIyfe3/wNMzLIpKR6qZS68j3QHlj6KJXj7HG+ixJE6Byi/RPvY\r\ncHFPTP696d5VFXyXM66FG6Mh/uLwythgPHk=\r\n=sNry\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dubisdev","email":"dubisdev@gmail.com"},"directories":{},"maintainers":[{"name":"dubisdev","email":"dubisdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twitter-autohook_1.0.0_1655281366154_0.6405942656626049"},"_hasShrinkwrap":false},"2.0.0":{"name":"@addtodoist/twitter-autohook","version":"2.0.0","type":"module","description":"Automatically setup and serve webhooks for the Twitter Account Activity API","repository":{"type":"git","url":"git+https://github.com/AddToDoist/autohook.git"},"main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"Twitter"},"contributors":[{"name":"David Jiménez","email":"dubisdev@gmail.com","url":"https://dubis.dev"}],"license":"MIT","keywords":["twitter","twitter-api","webhooks"],"scripts":{"build":"tsc","prepack":"yarn build"},"dependencies":{"dotenv":"16.0.1","needle":"3.1.0","ngrok":"4.3.1"},"devDependencies":{"@types/node":"17.0.43","eslint":"7.32.0","eslint-plugin-import":"2.26.0","typescript":"4.7.3"},"engines":{"node":">=16.0.0"},"gitHead":"3850c08814bd6fd4fe46ed28683da9fc43264371","bugs":{"url":"https://github.com/AddToDoist/autohook/issues"},"homepage":"https://github.com/AddToDoist/autohook#readme","_id":"@addtodoist/twitter-autohook@2.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-YJqVbxbGZ4Q9wYY2pnv4Bn7fPpZB4/13HtR7M2zoDqiytXKjhNTdSwZF7oAdE6ZDQF6yK96YVSvVnaUPCX9wdA==","shasum":"e56d5ee0cf2eb711c989b3473ebd5e6f153de3bd","tarball":"https://registry.npmjs.org/@addtodoist/twitter-autohook/-/twitter-autohook-2.0.0.tgz","fileCount":18,"unpackedSize":32391,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxpQHoumdwsIW2bi9h4Z09TwdC8FZVreIfViGlNaJvMAIgVAC4ORYCihqtK2f6Fmonv6lKvhNLmyUZ/76WUC39BtM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqamxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqf9Q//U3n/Poqwv9Vn0Xmr3TTmvxgBMZml8HDfag7CJ6GW4MDD+f1p\r\nc6j1U8KNI8DrUsbfKf1qc5KEwEMKy09qaR31cwhUvSnf+wWOoAoH1+7Or8aq\r\nXwk+PjXx9jC8nmB9qd6vFq2RBcpNhw7BCG6OJGQrOyVstVk+0UgB5P7nEcxa\r\ndaQSe50fIKHtaCo+G7+KUeiHw4PCCmdRU0L52U3v/CSrO0s5bwBfsiJ9/mTj\r\nYkjuf3Ajx3Xe+vkdcdA3i2eyZoIRF16K4+Y0QAyEZGTsOG7Zd2G74aDhpjfn\r\n4Yl/AgAWG6beQ7I/YBOVN5ijmsoZZm4DznD3O3WYFg869YQniERUHN62wiKz\r\nKAXlQivwM7X91CNMPdfitCWNZZFhW4Y1SCFihnhsgWAPMEfaw2z2Poj+itgF\r\njl1Hc/7gnBC/37vpT65Ym7+AtUqLk4VxJctkQchFfgTDqpPsRGbF1eRbPlNl\r\n8Tq92612oSSLmISie4YmxeCEA4gwPujv7RF7Y9NlRPgOfCX08Y3D7eY14z9x\r\nW45/192LEM3GrebAmkdqX6jMFeoynM26obDVawZ8DRXIIM7DPzheNZ9sZs8b\r\nDlLernIkmJqb1c3htjp87B/bBlNUL+IMqwoBGt4ncTG3eSgUiqTjrVfBsVaD\r\niz6vCB3ppSZDDjo8lHm6Hy8fOBX1PRZVsI4=\r\n=PxIq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dubisdev","email":"dubisdev@gmail.com"},"directories":{},"maintainers":[{"name":"dubisdev","email":"dubisdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twitter-autohook_2.0.0_1655286193305_0.47483432919675295"},"_hasShrinkwrap":false},"2.0.1":{"name":"@addtodoist/twitter-autohook","version":"2.0.1","type":"module","description":"Automatically setup and serve webhooks for the Twitter Account Activity API","repository":{"type":"git","url":"git+https://github.com/AddToDoist/autohook.git"},"main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"Twitter"},"contributors":[{"name":"David Jiménez","email":"dubisdev@gmail.com","url":"https://dubis.dev"}],"license":"MIT","keywords":["twitter","twitter-api","webhooks"],"scripts":{"build":"tsc","prepack":"yarn lint && yarn build","lint":"eslint src/**/**"},"dependencies":{"dotenv":"16.0.1","needle":"3.1.0","ngrok":"4.3.1"},"devDependencies":{"@types/node":"17.0.43","@typescript-eslint/eslint-plugin":"5.28.0","@typescript-eslint/parser":"5.28.0","eslint":"8.17.0","typescript":"4.7.3"},"engines":{"node":">=16.0.0"},"gitHead":"937e518c0b6a4517c3c3297afa8069d3fbe3e0e0","bugs":{"url":"https://github.com/AddToDoist/autohook/issues"},"homepage":"https://github.com/AddToDoist/autohook#readme","_id":"@addtodoist/twitter-autohook@2.0.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-dGaOpO+5t684dDGxCXrJHAt0AudWNaYgvRRMXnQuHGGrGs1ZDvdf3TAmK/Dj6CQZW3KFiKgiflFhAkQQlR1sPA==","shasum":"cb29c5488cb69c579b8abed9d7865e538026a6f5","tarball":"https://registry.npmjs.org/@addtodoist/twitter-autohook/-/twitter-autohook-2.0.1.tgz","fileCount":18,"unpackedSize":32550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmUzXfRvV3YbxmegDXoN0gOhmjMNZlCBCj++OXBmLU2AiEAndMeIwhVOW2o5lLwLBmnJoYuEGdBGEC1avNqAT1No6c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqa3BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLiw/8CAmPHQXWwVlCUdP6XDtMBqrw7Rrn+c3KuNU4VFHAVLu3jFYt\r\nlzFfXs4YyAzgZfmQPinKhOhjqnDnBhxuP5BZrN2Q+a3mC1whm1gtn6RZP39W\r\nzg14tReMkcnSYYFgSy+tl8Nbu1C5Zpx6UJk3Hk1bdHvw+qPDqiZOkzLh4nVH\r\nQ8pcOgioI4GV6wI5A6g4ljC05yBz0HUh3wiQv05aV6dLogbpq1Z/ml2woDWT\r\nW8NIaFtZUSOwTwqqmcCEYDw+eFamTTTe/nq5kVRp6Cj03z2ASExtO7pu+OOc\r\nezbNMHLyuPTTbE4EEtlYlK6WfZLdSjqnuBc7JAmCMURwPW/jHHmLnDj/u2Wq\r\nZwpgUyFA02/kLxA2OkpV3wvVTH/TOHRRA5HL/lC/KcB/c9VQB1WeoP5vR3Ks\r\njaCymObt92lgrJog7+xRR8vuCqyBhVMNRC/4TuKcgDTRAHoJnBQqglATHUFa\r\nErohVEela7IczK9ZSWdlaPXA9Vco7ZXwTd4TrOdWwxQGRQZpxQ6N3nrsBcug\r\n8a4QhBZ2HOHnvuGA6inAxxbf4K/81l+zOO1ZloqXArLyO8N0aDV2w9aQTwIZ\r\nSy1p7Eyd98heQV1R5SvVHf9N6gstSyCb8y+Mq4TG+A0m7OfXCBLvsB1nZQdC\r\n8C3vceODqDZ1iMZpKzyEFiIsBlbwpA1pxas=\r\n=9DBl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dubisdev","email":"dubisdev@gmail.com"},"directories":{},"maintainers":[{"name":"dubisdev","email":"dubisdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twitter-autohook_2.0.1_1655287233015_0.899386418022204"},"_hasShrinkwrap":false},"2.1.0":{"name":"@addtodoist/twitter-autohook","version":"2.1.0","type":"module","description":"Automatically setup and serve webhooks for the Twitter Account Activity API","repository":{"type":"git","url":"git+https://github.com/AddToDoist/autohook.git"},"main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"Twitter"},"contributors":[{"name":"David Jiménez","email":"dubisdev@gmail.com","url":"https://dubis.dev"}],"license":"MIT","keywords":["twitter","twitter-api","webhooks"],"scripts":{"build":"tsc","prepack":"yarn lint && yarn build","lint":"eslint src/**/**"},"dependencies":{"dotenv":"16.0.1","needle":"3.1.0","ngrok":"4.3.1"},"devDependencies":{"@types/node":"17.0.43","@typescript-eslint/eslint-plugin":"5.28.0","@typescript-eslint/parser":"5.28.0","eslint":"8.17.0","typescript":"4.7.3"},"engines":{"node":">=16.0.0"},"gitHead":"c6ae39dd43f1e39466390613df0b3cbe56f72c7b","bugs":{"url":"https://github.com/AddToDoist/autohook/issues"},"homepage":"https://github.com/AddToDoist/autohook#readme","_id":"@addtodoist/twitter-autohook@2.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-hlHCcdYCV7DyAY7+0joi0ALwmXsx034RZcW9lcKftNrkMTZXNT9zle4joacIsR5mvk3Z5vrlL8hnk09byOaNWQ==","shasum":"96a711f1805ceb3c8bc2c5530ad001ef6a97c99d","tarball":"https://registry.npmjs.org/@addtodoist/twitter-autohook/-/twitter-autohook-2.1.0.tgz","fileCount":18,"unpackedSize":32764,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGY9g9rffoDJIqKXQYaG780pC+miZZqCQWcz8KYH+i1AIgMe8MnXOOTiXocRp4SblVyjSMAIZlXGFWqx2B/K1cS+Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqa+HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpswQ//VyPw6JAjOuq70cPCLYMUlh2CzJPZhtzZ/OGsx2AOJuq8RXqQ\r\nM0aFdNhABhVtvSmjDHqzDe32t+IbFCzEbNXrx0TdjGvxSeDcVkvFMMyVzXF/\r\nNW5fCOqFvSxas4TZLsPDuFDequhzfHx8wgN1aSaD0RiNP4Tt3mTlvsjsaSxe\r\nE+FTo4u73qBUgPKUV6w1g5YsPO6qmdpH4Nc/rIFy/35oeYC5U7rAif0dp7GM\r\n9/LEiEzXy3hkoa0jZ1AArL95w4f1c/Z9AeizcUA/higBkJbzNPvGTWsaM5vC\r\nTpioKAlnloH8rUvBmOEFV0dXopzdEhzg5FC47V3mUslGq8/pmX1SudAhileL\r\nPRp1nG/S6YLtnZZ3pPth9r/omkDw7v02HlxjrJ5ddaLLrVO79n9iLxZLpEbS\r\nU1Ahq1oGF11YnqH2RSItTsZZ9cs7K1HN2/ospGkl44VXZARom4O1t5QUj+Uu\r\npI9EGBPDxc7pMW+kD5X0eA8+sYH2szvQ4FpqcEyqsAO+D/i7oKH+rd1NBJCk\r\nDPRBVF/nERF1PfAsOnnRLy/hHySIl497Exq6hpK+hUuDlrkMOxqPyhFhFJv3\r\nFQcKOYlUOwFQVoZu+2GV6+wnzSXVLV8LuP2lqR8ifSj335qCn6ybFrQ65QBE\r\nHOVmW4x0auZDqdyPdTa0Oudm00vwqFmqmkQ=\r\n=2JWK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dubisdev","email":"dubisdev@gmail.com"},"directories":{},"maintainers":[{"name":"dubisdev","email":"dubisdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twitter-autohook_2.1.0_1655287687353_0.5193892486817762"},"_hasShrinkwrap":false},"2.2.0":{"name":"@addtodoist/twitter-autohook","version":"2.2.0","type":"module","description":"Automatically setup and serve webhooks for the Twitter Account Activity API","repository":{"type":"git","url":"git+https://github.com/AddTodoist/autohook.git"},"main":"dist/index.js","types":"dist/index.d.ts","author":{"name":"Twitter"},"contributors":[{"name":"David Jiménez","email":"dubisdev@gmail.com","url":"https://dubis.dev"}],"license":"MIT","keywords":["twitter","twitter-api","webhooks"],"scripts":{"build":"tsc","prepack":"yarn lint && yarn build","lint":"eslint src/**/**"},"dependencies":{"dotenv":"16.0.2","needle":"3.1.0","ngrok":"4.3.3"},"devDependencies":{"@types/node":"18.7.21","@typescript-eslint/eslint-plugin":"5.38.0","@typescript-eslint/parser":"5.38.0","eslint":"8.24.0","typescript":"4.8.3"},"engines":{"node":">=16.0.0"},"gitHead":"655b1c9a2afd749834e0a70f9e1472a727d73ce2","bugs":{"url":"https://github.com/AddTodoist/autohook/issues"},"homepage":"https://github.com/AddTodoist/autohook#readme","_id":"@addtodoist/twitter-autohook@2.2.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-9UaNIdXCE7ur3iGOB0PZkcrgEuzDt++Dme2OpJk9Rr+ZEybJzqSBYg9M80nu9BtmkB0rgALciWqscKAt9j3IhQ==","shasum":"887fcb8db015414f371e8864259312a811d34900","tarball":"https://registry.npmjs.org/@addtodoist/twitter-autohook/-/twitter-autohook-2.2.0.tgz","fileCount":18,"unpackedSize":32956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyA0kT8pO67+v6nV77XuYSetjY0t4CatK9RuI+8nyayAiEAriSQJsZ+nNeAYjwDWO9pd84A9YKtg+m5Tf+cJZwKD8o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMH8+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1nBAAgsvxl8C8hZ5bASge6I2z4+xxcBDANCX8fyj2XRZwGAt0sE8A\r\nxNayw/8y202+5OO264zCeVp0EFgxxhe61Tte5sF7WPwqaRnsIhphipv7aFOT\r\nXndD84kh7LXx9I/RVnqgYHKysQn6zbDh7TYBq4v/4x/Zc+6IltoSP+Lve1gR\r\n7A9Adr+xEEK13tTLC4OLsMX/8jHRCugNEg5J0vIL4b+sH6aChjAPtTrKDIGM\r\nrxB2NqP/lBYlhgTKx0MBpC05R7WhmP1quRb8/WiGDiSJgLEhcPcJrmoPymto\r\nlNONicsBhSm+7bSTR5H7f4xZxyTK/6yd5yx0RfrhyWOzmT3rHnKGlbip/2D+\r\nCHxLpQsOksU4NI0VPXleDJkhF4zIO5rVKHgC7vDpumuMOkCE/b4iWDrjBmVi\r\ne7UjBTMqtlE4S8zM5Unj7TkjcCvfLVtfybk0NxwLGqN8gDO52nNif0yw2xOl\r\n2Y7cRxSeh2EJVXfArm0h8wNeEoShZ4M/wSEBELopfZdMa+SZU82Ohg1u9JA4\r\nPXuwmSnLELkxRrCpEYwU97typvHjsLVxabT0k6TdcM1AX40cuzakftY6Dqr1\r\nm03EWdFRovPKd8wfUSPb2HtVIk+02DWyoj9DSN0yD/MBSNWQbIZgsN7HfDP/\r\nYowUWyoteDKxmw9cHfVhK6FojGzZrKaaRoY=\r\n=VzGt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dubisdev","email":"dubisdev@gmail.com"},"directories":{},"maintainers":[{"name":"dubisdev","email":"dubisdev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/twitter-autohook_2.2.0_1664122685839_0.6680389170024588"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-15T08:22:46.067Z","1.0.0":"2022-06-15T08:22:46.536Z","modified":"2022-09-25T16:18:06.113Z","2.0.0":"2022-06-15T09:43:13.467Z","2.0.1":"2022-06-15T10:00:33.205Z","2.1.0":"2022-06-15T10:08:07.544Z","2.2.0":"2022-09-25T16:18:06.015Z"},"maintainers":[{"name":"dubisdev","email":"dubisdev@gmail.com"}],"description":"Automatically setup and serve webhooks for the Twitter Account Activity API","homepage":"https://github.com/AddTodoist/autohook#readme","keywords":["twitter","twitter-api","webhooks"],"repository":{"type":"git","url":"git+https://github.com/AddTodoist/autohook.git"},"contributors":[{"name":"David Jiménez","email":"dubisdev@gmail.com","url":"https://dubis.dev"}],"author":{"name":"Twitter"},"bugs":{"url":"https://github.com/AddTodoist/autohook/issues"},"license":"MIT","readme":"# Autohook 🎣\n\nAutohook configures and manages [Twitter webhooks](https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/guides/managing-webhooks-and-subscriptions) for you. Zero configuration. Just run and go!\n\n![Demo](https://github.com/twitterdev/autohook/raw/master/demo.gif)\n\n* 🚀 Spawns a server for you\n* ⚙️ Registers a webhook (it removes existing webhooks if you want, and you can add more than one webhook if your Premium subscription supports it)\n* ✅ Performs the CRC validation when needed\n* 📝 Subscribes to your current user's context (you can always subscribe more users if you need)\n* 🎧 Exposes a listener so you can pick up Account Activity events and process the ones you care about\n\n## Usage\n\n### Node.js module\n\n```js\nimport { Autohook } from 'twitter-autohook';\n\n(async ƛ => {\n  const webhook = new Autohook();\n  \n  // Removes existing webhooks\n  await webhook.removeWebhooks();\n  \n  // Listens to incoming activity\n  webhook.on('event', event => console.log('Something happened:', event));\n  \n  // Starts a server and adds a new webhook\n  await webhook.start();\n  \n  // Subscribes to a user's activity\n  await webhook.subscribe({oauth_token, oauth_token_secret});\n})();\n```\n\n## OAuth\n\nAutohook works only when you pass your OAuth credentials. You won't have to figure out OAuth by yourself – Autohook will work that out for you.\n\nYou can pass your OAuth credentials in a bunch of ways.\n\n## Dotenv (~/.env.twitter)\n\nCreate a file named `~/.env.twitter` (sits in your home dir) with the following variables:\n\n```bash\nTWITTER_CONSUMER_KEY= # https://developer.twitter.com/en/apps ➡️ Your app ID ➡️ Details ➡️ API key\nTWITTER_CONSUMER_SECRET= # https://developer.twitter.com/en/apps ➡️ Your app ID ➡️ Details ➡️ API secret key\nTWITTER_ACCESS_TOKEN= # https://developer.twitter.com/en/apps ➡️ Your app ID ➡️ Details ➡️ Access token\nTWITTER_ACCESS_TOKEN_SECRET= # https://developer.twitter.com/en/apps ➡️ Your app ID ➡️ Details ➡️ Access token secret\nTWITTER_WEBHOOK_ENV= # https://developer.twitter.com/en/account/environments ➡️ One of 'Dev environment label' or 'Prod environment label'\nNGROK_AUTH_TOKEN= # https://ngrok.com/ - (optional) Create a free account to get your auth token for stable tunnels\n```\n\nAutohook will pick up these details automatically, so you won't have to specify anything in code or via CLI.\n\n## Env variables\n\nUseful when you're deploying to remote servers, and can be used in conjunction with your dotenv file.\n\n```bash\n\n# To your current environment\nexport TWITTER_CONSUMER_KEY= # https://developer.twitter.com/en/apps ➡️ Your app ID ➡️ Details ➡️ API key\nexport TWITTER_CONSUMER_SECRET= # https://developer.twitter.com/en/apps ➡️ Your app ID ➡️ Details ➡️ API secret key\nexport TWITTER_ACCESS_TOKEN= # https://developer.twitter.com/en/apps ➡️ Your app ID ➡️ Details ➡️ Access token\nexport TWITTER_ACCESS_TOKEN_SECRET= # https://developer.twitter.com/en/apps ➡️ Your app ID ➡️ Details ➡️ Access token secret\nexport TWITTER_WEBHOOK_ENV= # https://developer.twitter.com/en/account/environments ➡️ One of 'Dev environment label' or 'Prod environment label'\nexport NGROK_AUTH_TOKEN= # https://ngrok.com/ - (optional) Create a free account to get your auth token for stable tunnels\n\n# To other services, e.g. Heroku\nheroku config:set TWITTER_CONSUMER_KEY=value TWITTER_CONSUMER_SECRET=value TWITTER_ACCESS_TOKEN=value TWITTER_ACCESS_TOKEN_SECRET=value TWITTER_WEBHOOK_ENV=value NGROK_AUTH_TOKEN=value\n```\n## Directly\n\nNot recommended, because you should always [secure your credentials](https://developer.twitter.com/en/docs/basics/authentication/guides/securing-keys-and-tokens.html).\n\n### Node.js\n\n```js\nnew Autohook({\n  token: 'value',\n  token_secret: 'value',\n  consumer_key: 'value',\n  consumer_secret: 'value',\n  ngrok_secret: 'value', // optional\n  env: 'env',\n  port: 1337\n});\n```\n## Install\n\n```bash\n# npm\n$ npm i twitter-autohook\n\n# Yarn\n$ yarn add twitter-autohook\n```\n","readmeFilename":"README.md"}