is a scala library for HipChat api v2
Sorry for my poor English. Please make a pull request if you found any error in the docs!
I want a "better" lib than hipchat-scala
- "Better" design
- scala-hipchat has internal struct similar to ac-node-hipchat and ac-koa-hipchat - the offical nodejs libs from Atlassian.
- Ex, both have:
- Multitenancy support: One add-on can be installed with multiple HipChat OAuth2 clients, referred to here as 'tenants'. In practice, a tenant is either a HipChat room or group, depending on the installation scope of the add-on.
- class RestClient with all api method included.
- class TenantClient that wrap RestClient & auto fetch-cache-reuse the appropriate token.
- ... dig into code for others :D
- Simpler for using
- Just clone the source code, run
activator run
then you have a hipchat addon that can be install via the capabilities url http://localhost:9000/hipchat/capabilities- Update file
conf/capabilities.json
to change the addon domain name, urls. Exhttp://mydomain.com/hipchat/capabilities
- @see HipChat addons docs to understand Capabilities Descriptor.
- @see [SslGuide.md] to setup & run the applicatino with https.
- scala-hipchat use Play Framework. Goto their docs for other help.
- Update file
- Just TenantClient.fromCache(tenantId) to get a Option[TenantClient] of the installed client. Then tenantClient.someApiMethod to invoke the hipchat api
- Just clone the source code, run
- All api methods is implemented, with typesafed and expand-support
- Ex:
tenantClient.getRoom("1", "statistics,owner").map { room => room.ownerExpand.is_guest must beFalse }.await(timeout = 5.seconds)
- @note The api is fully implemented (at least as in ac-node-hipchat) but not fully tested (althought I think it is already work as expected). If you use this lib, please contribute to it by adding specs. @see GetRoomSpec.
I use Intellij IDEA with scala plugin
@see db.default section in conf/application.conf
This software is licensed under the Apache 2 license: http://www.apache.org/licenses/LICENSE-2.0
Copyright 2014 Sân Đình (https://sandinh.com)