{"id":27290314,"url":"https://github.com/dylanmuir/slackmatlab","last_synced_at":"2026-03-11T03:31:29.173Z","repository":{"id":23499562,"uuid":"26865106","full_name":"DylanMuir/SlackMatlab","owner":"DylanMuir","description":"Basic integration for Slack notifications for Matlab.","archived":false,"fork":false,"pushed_at":"2014-11-20T08:14:38.000Z","size":448,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T21:35:06.606Z","etag":null,"topics":["incoming-webhooks","matlab","matlab-toolbox","notifications","slack","webhook-url"],"latest_commit_sha":null,"homepage":"dylan-muir.com","language":"Matlab","has_issues":false,"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/DylanMuir.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":"2014-11-19T14:29:38.000Z","updated_at":"2024-09-30T05:07:17.000Z","dependencies_parsed_at":"2022-08-22T01:30:34.906Z","dependency_job_id":null,"html_url":"https://github.com/DylanMuir/SlackMatlab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DylanMuir/SlackMatlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanMuir%2FSlackMatlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanMuir%2FSlackMatlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanMuir%2FSlackMatlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanMuir%2FSlackMatlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DylanMuir","download_url":"https://codeload.github.com/DylanMuir/SlackMatlab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanMuir%2FSlackMatlab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30369379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["incoming-webhooks","matlab","matlab-toolbox","notifications","slack","webhook-url"],"created_at":"2025-04-11T21:28:08.289Z","updated_at":"2026-03-11T03:31:29.153Z","avatar_url":"https://github.com/DylanMuir.png","language":"Matlab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README #\r\n\r\nThis repository contains ```Matlab``` functions to send notifications to a Slack channel or user, via the Slack [Incoming Webhooks](https://slack.com/services/new/incoming-webhook) API.\r\n\r\n## Usage ##\r\n\r\n```SendSlackNotification``` is used to send a notification to a URL provided by Slack, for a configured [Incoming Webhooks](https://slack.com/services/new/incoming-webhook) integration. See the documentation for this function for information on options.\r\n\r\n```MakeSlackAttachments``` can be used to generate Slack [message attachments](https://api.slack.com/docs/attachments), which can then be sent as notifications using ```SendSlackNotification```. See the documentation for this function for more information.\r\n\r\n## Set up ##\r\n\r\n1. Configure an [Incoming Webhooks](https://slack.com/services/new/incoming-webhook) integration for your team, from your team's [services](https://slack.com/services) page.\r\n2. Copy the Webhook URL once the service is configured, and store it in a ```Matlab``` string.\r\n3. Clone the [SlackMatlab repository](https://github.com/DylanMuir/SlackMatlab), and add the root directory to the ```Matlab``` path using ```pathtool```.\r\n4. Call ```SendSlackNotification```, passing the Webhook URL as an argument.\r\n\r\n### Example ###\r\n\r\n```matlab\r\n% - Create a message attachment to send with a notification\r\n%   (optional; several message attachments can be sent with a single notification)\r\nsA = MakeSlackAttachment('New open task [urgent]: \u003clink.to.website\u003e', 'Text of the notification message', ...\r\n      'Text that will be displayed before the message', '#0000ff', ...\r\n      {'Field 1 title', 'This is a field that will be shown in a table'}, ...\r\n      {'Field 2 title', 'This is another field that will be shown in a table'});\r\n\r\n% - Send the notification, with the attached message\r\nSendSlackNotification('https://hooks.slack.com/services/this/is/your/webhook/url', ...\r\n   'I sent this notification from matlab, on behalf of @username.', '#target-channel', ...\r\n   'Name to post under', 'http://www.icon.com/url/to/icon/image.png', [], sA);\r\n```\r\n\r\n## Emojis ##\r\n\r\nA list of Emojis supported by Slack is available from http://www.emoji-cheat-sheet.com.\r\n\r\n\r\n## Acknowledgements ##\r\n\r\nContains code from [URLREAD2](http://www.mathworks.com/matlabcentral/fileexchange/35693-urlread2) and [JSONLAB](http://www.mathworks.com/matlabcentral/fileexchange/33381-jsonlab--a-toolbox-to-encode-decode-json-files-in-matlab-octave).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanmuir%2Fslackmatlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanmuir%2Fslackmatlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanmuir%2Fslackmatlab/lists"}