HipChatAliases.

SendMessage(ICakeContext, string, string, string, string) Method

Summary

Send a HipChat message using the HipChat.Net NuGet Package
Assembly
Cake.HipChat.dll
Namespace
Cake.HipChat
Containing Type
HipChatAliases

Syntax

public static void SendMessage(this ICakeContext context, string authToken, string roomId, string senderName, string message)

Examples

     var authToken        = EnvironmentVariable("HIPCHAT_AUTH_TOKEN");
     var roomId = EnvironmentVariable("HIPCHAT_ROOM_ID");
     var senderName = EnvironmentVariable("HIPCHAT_SENDER_NAME");

     SendMessage(authToken, roomId, senderName, "Testing, 3, 2, 1");

Attributes

Type Description
CakeMethodAliasAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The Cake Context
authToken string
roomId string
senderName string
message string The message to send.

Return Value

Type Description
void