{"_id":"@abdouhugo/email-verifly-client","name":"@abdouhugo/email-verifly-client","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@abdouhugo/email-verifly-client","version":"0.0.1","author":{"name":"hugo abdou"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/hugo-abdou/typescript-lib-example.git"},"registry":"https://npm.pkg.github.com","type":"commonjs","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"shx rm -rf _bundles && shx rm -rf dist","build":"npm run clean && tsc && webpack && npm run move","watch":"tsc --watch","move":"shx cp -R dist/src/* dist && shx rm -rf dist/src && shx cp -R _bundles/* dist"},"devDependencies":{"@types/lodash":"^4.14.149","@types/mocha":"^7.0.2","@types/node":"^13.11.1","mocha":"^7.1.1","shx":"^0.3.2","webpack-cli":"^5.0.0"},"dependencies":{"axios":"^1.1.3","lodash":"^4.17.15","ts-loader":"^9.4.2","tsc":"^2.0.4","typescript":"^4.9.3","webpack":"^5.75.0","xlsx":"^0.18.5"},"gitHead":"890089b018db361a9d5f97b12aab4723d6587e0c","description":"# Install","bugs":{"url":"https://github.com/hugo-abdou/typescript-lib-example/issues"},"homepage":"https://github.com/hugo-abdou/typescript-lib-example#readme","_id":"@abdouhugo/email-verifly-client@0.0.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-xydRSs3eb4sEG1Flyg33J+pd2idn+OFv42tQpLyc7prb+QpqtaDGpe9LD7ea1cAMfZYCmxo1nJPQSJa5JbG7yA==","shasum":"474bcd299b08ab0d0cb99924823ce5bd3ca00227","tarball":"https://registry.npmjs.org/@abdouhugo/email-verifly-client/-/email-verifly-client-0.0.1.tgz","fileCount":17,"unpackedSize":921061,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+PELrN5VuYr5t3zAnpjTntOyQovhF11mijY6oty5WuAiAHkEGo7FWDCU7U8s3FDsxTsML1KJUBLmeJQStpQwN02A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJji3pRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLQA//dl/buVJ48Wgvab0osx6FTqZxFz/p+l2ROR5wtfT+dKsb2jgU\r\n49okFBn5+HI45lrg/JEbcmtLeh/mDAOm79FjRWOlNZ1w18eELxzgIHMhpwv2\r\nzsAq4rug9uBNH+WpGeHdnpaEL19SAMOOUl4Lfk5f6J7IZnEFpXQhSfFJX+Gu\r\nPmJm89XuWONaBRmPVnnGqB1N9ah7ZgqTc3CT4Y76FZhVuWnVaPndUkyh3MPZ\r\nVxDCEHvwJCoJiAvGC2diXvcXLzHPX8TCVzXmKNZ09jEwV9eKaCmXfW3dqWP1\r\nkeyUY2BvCiaHVQC3KYMDo1sYq7NuFINJjENRghvJCWqSZj/H2Hig5taQXxBT\r\nmfRvj+/YL8nvIcwnzOaAy7jCrex0/SLwJfc2FhqS4X1mbgF5R/MTqA/nFwS4\r\nJJXvhw5y5N6qoeWJ2AxYg7aAE6OOBBcqR5sw573P5eWzOGmdrxeYhw65v3vX\r\nKc4DxnDETjNgtHVqj+Oota9O9e3kq5CMxI7yUXeaSXImerE/mlkhGmEtNsYn\r\nnBtM6KhO2Ipou5o8G1IDrAHN9dz7poV2HiSb+r0ULY0AJl45C/ptSrfURz4n\r\nZgufR+CboWPP/serlSAvW21wi5WSzo1h4dpRkwH1njBUa9HDQzdw56YYvzAc\r\nchijlTf1WvTP97m0kXYRFivc973GYfUjhd4=\r\n=alJD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"abdouhugo","email":"moikinge3@gmail.com"},"directories":{},"maintainers":[{"name":"abdouhugo","email":"moikinge3@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-verifly-client_0.0.1_1670085200953_0.19802582101884258"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-03T16:33:20.897Z","0.0.1":"2022-12-03T16:33:21.178Z","modified":"2022-12-03T16:33:21.329Z"},"maintainers":[{"name":"abdouhugo","email":"moikinge3@gmail.com"}],"description":"# Install","homepage":"https://github.com/hugo-abdou/typescript-lib-example#readme","repository":{"type":"git","url":"git+https://github.com/hugo-abdou/typescript-lib-example.git"},"author":{"name":"hugo abdou"},"bugs":{"url":"https://github.com/hugo-abdou/typescript-lib-example/issues"},"license":"MIT","readme":"# Autoresponders\n\n# Install\n\n## create Autoresponder instance\n\n```js\n// npm install --save https://github.com/hugo-abdou/autoresponder\n\n// 1, create file called autoresponder.{js,ts} on your project\n// 2, and initialize  the Autoresponder instance\n// 3, pass the config\nconst autoresponder = require(\"@abdouhugo/autoresponders\").default;\nconst autoresponder = new Autoresponder({\n    aweber: {\n        endpoint: \"https://api.aweber.com/1.0\",\n        oauth_endpoint: \"https://auth.aweber.com\",\n        scopes: \"account.read list.read subscriber.write\",\n        client_id: \"your_aweber_client_id\",\n        client_secret: \"your_aweber_client_secret\",\n        redirect_uri: \"your_project_url/aweber\",\n    },\n    mailchimp: {\n        endpoint: \"https://<dc>.api.mailchimp.com/3.0\",\n    },\n    getresponse: {\n        endpoint: \"https://api.getresponse.com/v3\",\n    },\n    sendinblue: {\n        endpoint: \"https://api.sendinblue.com/v3\",\n    },\n    // this two options is required if you are using pabbly or zapier even if empty\n    pabbly: {},\n    zapier: {},\n});\n\n// export the instance\nexports.modules = autoresponder;\n```\n\n## Available drivers\n\ngetresponse , sendinblue , mailchimp , aweber , zapier , pabbly\n\n## Check if Autoresponder need OAuth\n\n```js\n// import the instance from the file you create befor ( autoresponder.{js,ts} )\nconst autoresponder = require(\"autoresponder.{js,ts}\");\n// no params needed if you whant to check withOAuth\nconst driver = autoresponder.create();\n\nif (driver.withOAuth()) {\n    // OAuth logic  login or get tocken ext...\n} else {\n    // normal code\n}\n\n// you can change the requests timeout by calling the setTimout function on the driver before you call the apis\ndriver.setTimeout(500);\n```\n\n## Getresponse And Sendinblue\n\n```js\n// import the instance from the file you create befor ( autoresponder.{js,ts} )\nconst autoresponder = require(\"autoresponder.{js,ts}\");\nconst driver = autoresponder.create(\"getresponse or sendinblue\", {\n    apiKey: user_key,\n});\n\n// test the api\nawait driver.testApi();\n\n// get the list of categories from autoresponder\nawait driver.getList();\n\n//  add subscriber to list (category)\nawait driver.addSubscriber(\n    \"list_id\",\n    \"exampl@email.com\",\n    \"user_first_name\",\n    \"user_last_name\"\n);\n```\n\n## Mailchimp\n\n```js\nconst autoresponder = require(\"autoresponder.{js,ts}\");\nconst driver = autoresponder.create(\"mailchimp\", {\n    apiKey: user_key,\n    datacenter: api_datacenter,\n});\n\n// test the api\nawait driver.testApi();\n\n// get the list of categories from autoresponder\nawait driver.getList();\n\n//  add subscriber to list (category)\nawait driver.addSubscriber(\n    \"list_id\",\n    \"exampl@email.com\",\n    \"user_first_name\",\n    \"user_last_name\"\n);\n```\n\n## Aweber\n\n```js\nconst autoresponder = require(\"autoresponder.{js,ts}\");\nconst driver = autoresponder.create(\"aweber\", {\n    access_token: user_token,\n    refresh_token: user_refresh_token,\n    expires_in: user_expires_in,\n});\n\n// return the login url of aweber you nead to redirect the user to this url\n// and you nead a webhook to catch the code from aweber when user login successfuly\nawait driver.getAuthorizationUrl();\n\n//return access token from aweber its need the code from aweber webhook\n//you need to save the returned data on databas\nawait driver.getAccessToken(code);\n\n//test the api\nawait driver.testApi();\n\n// get the list of categories from autoresponder\nawait driver.getList();\n\n// add subscriber to list (category)\nawait driver.addSubscriber(\n    \"list_id\",\n    \"exampl@email.com\",\n    \"user_first_name\",\n    \"user_last_name\"\n);\n```\n\n## Zapier Pabbly\n\n```js\nconst autoresponder = require(\"autoresponder.{js,ts}\");\nconst driver = autoresponder.create(\"zapier or pabbly\", {\n    url: webhook_url,\n});\n\n// send your data  to autoresponder\nawait driver.post(\n    email:string,\n    firstName:string,\n    lasName:string,\n);\n```\n","readmeFilename":"README.md"}