darkhorse166 / Hipchat-CS

An easy to use C# wrapper of the V2 Hipchat API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hipchat-CS

MyGet Build Status

An easy to use C# wrapper on the V2 Hipchat API

Can be installed through nuget.

Install-Package Hipchat-CS

Work in progress

Finished Methods

  • SetTopic
  • GetRoom
  • GenerateToken
  • DeleteRoom
  • UpdateRoom
  • DeleteWebhook
  • CreateRoom
  • GetAllRooms
  • SendNotification
  • CreateWebHook
  • GetAllWebhooks
  • GetAllUsers
  • GetAllMembers

All methods have several optional paramaters and or overloads, fully documented. Check intellisense.

Examples

//will look in app.config for the appSetting 'hipchat_auth_token', 
//or you can pass it in via the constructor
var client = new HipchatClient();

//check source or intellisense for overloads
//create a default room with whoever the api key holder is as owner
HipchatCreateRoomResponse testRoom = client.CreateRoom("My Test Room");

//send a message to the created room with the green background color
client.SendNotification(testRoom.Id, "Hello from Api!", RoomColors.Green);

//delete the room, kicking everyone out
client.DeleteRoom(testRoom.Id);

For more examples check the IntegrationTests project files

About

An easy to use C# wrapper of the V2 Hipchat API


Languages

Language:C# 100.0%