CreateWebHook() public method

public CreateWebHook ( int roomId, string url, string pattern, Hipchat.Models.RoomEvent eventType, string name ) : CreateWebHookResponse
roomId int
url string
pattern string
eventType Hipchat.Models.RoomEvent
name string
return CreateWebHookResponse
Esempio n. 1
0
        private static void Main(string[] args)
        {
            //Setup shit
            const int roomId = 510675;
            const string postToUrl = "http://kylegobel.com/hipchatRedisRelay/message";

            var client = new HipchatClient();
            client.CreateWebHook(roomId, postToUrl, "", HipchatApiV2.Enums.RoomEvent.RoomNotification, "Botso send message hook");

            Console.ReadLine();
        }