{"id":22790699,"url":"https://github.com/zachalam/chatfuel-node-api","last_synced_at":"2025-10-07T02:23:46.528Z","repository":{"id":57197285,"uuid":"107033381","full_name":"zachalam/chatfuel-node-api","owner":"zachalam","description":"Broadcast messages to your chatbot users with this unofficial chatfuel api wrapper.","archived":false,"fork":false,"pushed_at":"2017-10-15T18:43:43.000Z","size":1186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T11:05:45.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachalam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-15T17:27:07.000Z","updated_at":"2017-10-15T18:30:41.000Z","dependencies_parsed_at":"2022-09-01T00:31:47.274Z","dependency_job_id":null,"html_url":"https://github.com/zachalam/chatfuel-node-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachalam%2Fchatfuel-node-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachalam%2Fchatfuel-node-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachalam%2Fchatfuel-node-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachalam%2Fchatfuel-node-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachalam","download_url":"https://codeload.github.com/zachalam/chatfuel-node-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246350939,"owners_count":20763228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-12T02:28:42.354Z","updated_at":"2025-10-07T02:23:41.511Z","avatar_url":"https://github.com/zachalam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Broadcast Chatfuel Messages (Node)\n\nBroadcast messages to your chatbot users with this unofficial chatfuel api wrapper.\n\n\n### Installing\n\n```\nnpm install --save chatfuel-node-api\n```\n\nor globally..\n\n```\nnpm install --g chatfuel-node-api\n```\n\n### How To Use\n\nFollow these 3 easy steps to broadcast messages.\n\nInclude/Require chatfuel-node-api.\n```\nvar Chatfuel = require(\"chatfuel-node-api\");\n```\n\nCreate new chatfuel instance.\n```\nvar cf = new Chatfuel(\u003ctoken\u003e,\u003cbot_id\u003e);\n```\n\nBroadcast your message.\n```\ncf.broadcast({\n  user_id: \u003cuser_id\u003e,\n  block_id: \u003cblock_id\u003e,\n  attributes: {var1: true, var2: false, var3: \"message\"}},\n  function(body) {\n    // what to do after..\n  }\n});\n```\n\n### Putting it all Together\n\nHere's a final working code snippet. See \"how to use\" for parameter values.\n\n```\nvar Chatfuel = require(\"chatfuel-node-api\");\nvar cf = new Chatfuel(\n  \"mELtlMAHYqR0BvgEiMq8zVek3uYUK3OJMbtyrdNPTrQB9ndV0fM7lWTFZbM4MZvD\",\n  \"14c12219re312abgtfd12346q\");\ncf.broadcast({\n  user_id: 521412412512,\n  block_id: 2123,\n  attributes: {var1: true, var2: false, var3: \"message\"}},\n  function(body) {\n    // what to do after..\n  }\n});  \n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachalam%2Fchatfuel-node-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachalam%2Fchatfuel-node-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachalam%2Fchatfuel-node-api/lists"}