Skip to content

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

License

Notifications You must be signed in to change notification settings

kinpro/Hipchat-CS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hipchat-CS

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

  • CreateRoom
  • CreateWebHook
  • DeleteRoom
  • DeleteWebhook
  • GenerateToken
  • GetAllEmoticons
  • GetAllRooms
  • GetAllUsers
  • GetAllWebhooks
  • GetEmoticon
  • GetRoom
  • SendNotification
  • SetTopic
  • UpdateRoom
  • CreateUser
  • DeleteUser

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%