Advertisement

Saturday, March 4, 2017

Free DynaSlack – Dynamo Package Providing Integration with Slack

From GitHub:

Dynamo package providing integration with Slack, allowing you to post messages to Slack, currently via webhooks only.

Includes support for :
  • Slack text formatting
  • using an emoji or image as message icons
  • setting integration name (equivalent to a person’s name on Slack)

Soon to include support for :
  • OAuth flow
  • posting as a bot
  • posting as a user

Getting Started

Getting started with DynaSlack for your own use is very simple : using Dynamo’s built-in package manager, search for DynaSlack and then click the download button.

A new category called DynaSlack should appear in the Dynamo node library, but in some cases you might need to restart Dynamo. Remember that installation for packages is separate for Dynamo Sandbox/Studio and Dynamo for Revit, so you will need to install it separately as required.

Using DynaSlack

DynaSlack currently exposes a few nodes in Dynamo, in the DynaSlack.Slack category, organised in a further 2 sub-categories :
  • Client
  • Webhooks

Simple example

The samples folder includes a simple example that shows you how to post a message using webhooks.

The definition is pictured below :


The result of this will show up Slack as below :


More complex example

The samples folder includes a more complex example that shows you how to post 2 separate messages using 2 differently configured webhooks that have different names and different icons. One of the webhooks makes use of an emoji icon whilst the other uses a cloud-hosted image.

The definition is pictured below :


The result of this will show up Slack as below :


Please remember to fill in your own webhook URL, the one used in the samples has been deactivated.



DynaSlack is brought to you by Radu Gidei. It's free.

There's more information available on GitHub.

No comments: