Chatting with HIpChat: APIs 101
-
Upload
colleenfry -
Category
Technology
-
view
607 -
download
4
description
Transcript of Chatting with HIpChat: APIs 101
![Page 1: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/1.jpg)
![Page 2: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/2.jpg)
Don Brown • Arch i tec t • At lass ian • @mrdonbrown
Chatting with HipChatAPI ’S 101
![Page 3: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/3.jpg)
![Page 4: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/4.jpg)
![Page 5: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/5.jpg)
![Page 6: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/6.jpg)
![Page 7: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/7.jpg)
![Page 8: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/8.jpg)
![Page 9: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/9.jpg)
![Page 10: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/10.jpg)
1. Google “hipchat bitbucket integration”
2. Click first Google result
3. Click “these instructions” link
4. Click “Hipchat hook management” link as page was renamed
5. Visit Bitbucket and login
6. Go to desired repository
7. Click admin icon
8. Select “Hooks” menu item
9. Select “HipChat” from hooks dropdown list
10.In a separate tab, go back to HipChat and login
11.Click on “Group Admin” tab
12.Click on “API”
13.Type in “Bitbucket integration, select “Notifications, copy new API key
14.Click on the “Rooms” tab
15.Click on the target room
16.Copy the “API ID” value
17.Go back to the Bitbucket tab
18.Copy in ID, API key, and API url (consult docs), and click “Save”
Install Bitbucket Integration
![Page 11: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/11.jpg)
HipChat Add-Ons =
API’s + Connect + Marketplace
![Page 12: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/12.jpg)
Character Sheets
SaaS Dev Experts Founder Enterprise ArchStrDexConInt
WisChaLevelExp
17 10 12
18 12 14
12 14 18
15 16 14
11 16 17
12 18 14
2 6 5
4,200 52,650 34,800
![Page 13: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/13.jpg)
Session 3 - Entrepreneur
Session 2 - Intrapreneur
Session 1 - Hacker
SaaS Jr. Developer Scenario
![Page 14: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/14.jpg)
Goal: Show signups in my team’s room
![Page 15: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/15.jpg)
Just text by itself, for impact.
![Page 16: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/16.jpg)
Just text by itself, for impact.
![Page 17: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/17.jpg)
Just text by itself, for impact.
![Page 18: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/18.jpg)
curl -H "Content-Type: application/json" \ -d '{"message": "Hello world"}' -v "https://api.hipchat.com/v2/room/My%20Room/message"
![Page 19: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/19.jpg)
< HTTP/1.1 401 Unauthorized< Server: nginx< Date: Mon, 16 Sep 2013 23:33:27 GMT< Content-Type: application/json< Transfer-Encoding: chunked< Connection: keep-alive< Access-Control-Allow-Origin: *< WWW-Authenticate: Bearer realm="HipChat"<{ "error": { "code": 401, "message": "Authenticated requests only. See https://www.hipchat.com/docs/apiv2/auth for more information.", "type": "Unauthorized" }
![Page 20: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/20.jpg)
![Page 21: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/21.jpg)
Just text by itself, for impact.
![Page 22: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/22.jpg)
Just text by itself, for impact.
![Page 23: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/23.jpg)
curl -H "Content-Type: application/json" \ -d '{"message": "Hello world"}' -v "https://api.hipchat.com/v2/room/My%20Room/message?auth_token=VPNE7g0rHbfpNZ68XcOP0mwoBhwLGe9cFtBmLFdq"
![Page 24: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/24.jpg)
< HTTP/1.1 204 No Content< Server: nginx< Date: Mon, 16 Sep 2013 23:42:31 GMT< Content-Type: text/html< Connection: keep-alive< X-Ratelimit-Remaining: 499< X-Ratelimit-Limit: 500< Access-Control-Allow-Origin: *< X-Ratelimit-Reset: 1379374980.0
![Page 25: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/25.jpg)
![Page 26: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/26.jpg)
![Page 27: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/27.jpg)
![Page 28: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/28.jpg)
GET https://api.hipchat.com/v2/room/Engineering
{ "created": "2013-08-08T18:42:20", "id": 34, ... "participants": [ { "id": 375, "links": { "self": "https://api.hipchat.com/v2/user/375" }, "name": "Garret Heaton" } ]}
![Page 29: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/29.jpg)
GET https://api.hipchat.com/v2/room/Engineering?expand=participants
{ "created": "2013-08-08T18:42:20", "id": 34, ... "participants": [ { "created": "2013-08-08T18:42:20", "email": "[email protected]", "id": 375, "is_deleted": false, "is_group_admin": true, "is_guest": false, "mention_name": "GarretHeaton", "name": "Garret Heaton", ... }]}
![Page 30: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/30.jpg)
![Page 31: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/31.jpg)
Just text by itself, for impact.
![Page 32: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/32.jpg)
Session 1 - Hacker
Session 3 - Entrepreneur
Session 2 - Intrapreneur
SaaS Jr. Developer Scenario
Session 2- Intrapreneur
![Page 33: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/33.jpg)
Goal: Show signups in any team’s room
![Page 34: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/34.jpg)
Just text by itself, for impact.
![Page 35: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/35.jpg)
HipChat
Signup DB
Signup Add-On
![Page 36: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/36.jpg)
{ "name": "Signups", "description": "Posts signups in rooms", "key": "com.example.signups",
"links": { "homepage": "https://example.com/signups", "self": "https://example.com/signups/capabilities" },
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] } }}
![Page 37: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/37.jpg)
Just text by itself, for impact.
![Page 38: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/38.jpg)
Just text by itself, for impact.
![Page 39: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/39.jpg)
Just text by itself, for impact.
![Page 40: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/40.jpg)
![Page 41: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/41.jpg)
Just text by itself, for impact.
![Page 42: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/42.jpg)
Just text by itself, for impact.
![Page 43: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/43.jpg)
curl -v \! -u d4d6949e-791e-43ce-a0b7-50134495b73e:j998i9niK8zhi89R2sieBVVQSFfIgzdTOBpxI8aP \ ! -d "grant_type=client_credentials&scope=send_notification" \! https://api.hipchat.com/v2/oauth/token
![Page 44: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/44.jpg)
< HTTP/1.1 200 OK< Server: nginx< Date: Tue, 17 Sep 2013 01:28:03 GMT< Content-Type: application/json< Transfer-Encoding: chunked< Connection: keep-alive< X-Ratelimit-Remaining: 499< X-Ratelimit-Limit: 500< Access-Control-Allow-Origin: *< X-Ratelimit-Reset: 1379381340.0<{"access_token": "E9NGsQjqWgHSK50ZXHGgIAoQ0E13b1FuGiLPNdYj", "expires_in": 82800, "scope": "view_group", "token_type": "bearer"}
![Page 45: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/45.jpg)
![Page 46: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/46.jpg)
{ "name": "Signups", "description": "Posts signups in rooms", "key": "com.example.signups",
"links": { "homepage": "https://example.com/signups", "self": "https://example.com/signups/capabilities" },
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] },
"installable": { "callbackUrl": "https://example.com/signups/installed" } }}
![Page 47: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/47.jpg)
![Page 48: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/48.jpg)
Session 1 - Hacker
Session 3 - Entrepreneur
Session 2 - Intrapreneur
SaaS Jr. Developer Scenario
Session 3 -Entrepreneur
![Page 49: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/49.jpg)
Goal: show sales in customer rooms
![Page 50: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/50.jpg)
![Page 51: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/51.jpg)
{ "name": "Signups", "description": "Posts signups in rooms", "key": "com.example.signups",
...
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] },
"installable": { "callbackUrl": "https://example.com/signups/installed" },
"configurable": { "url": "https://example.com/signups/config" } }}
![Page 52: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/52.jpg)
Just text by itself, for impact.
![Page 53: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/53.jpg)
Screenshot of marketplace docs
![Page 54: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/54.jpg)
Screenshot of marketplace registration
![Page 55: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/55.jpg)
Just text by itself, for impact.
![Page 56: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/56.jpg)
Just text by itself, for impact.
![Page 57: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/57.jpg)
Session 3 - Entrepreneur
Session 2 - Intrapreneur
Session 1 - Hacker
Enterprise Architect Scenario
![Page 58: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/58.jpg)
Goal: Show sales in my dev team’s room
![Page 59: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/59.jpg)
Just text by itself, for impact.
![Page 60: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/60.jpg)
Just text by itself, for impact.
![Page 61: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/61.jpg)
Just text by itself, for impact.
![Page 62: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/62.jpg)
curl -H "Content-Type: application/json" \ -d '{"message": "Hello world"}' -v "https://api.hipchat.com/v2/room/My%20Room/message"
![Page 63: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/63.jpg)
< HTTP/1.1 401 Unauthorized< Server: nginx< Date: Mon, 16 Sep 2013 23:33:27 GMT< Content-Type: application/json< Transfer-Encoding: chunked< Connection: keep-alive< Access-Control-Allow-Origin: *< WWW-Authenticate: Bearer realm="HipChat"<{ "error": { "code": 401, "message": "Authenticated requests only. See https://www.hipchat.com/docs/apiv2/auth for more information.", "type": "Unauthorized" }
![Page 64: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/64.jpg)
![Page 65: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/65.jpg)
Just text by itself, for impact.
![Page 66: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/66.jpg)
Just text by itself, for impact.
![Page 67: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/67.jpg)
curl -H "Content-Type: application/json" \ -d '{"message": "Hello world"}' -v "https://api.hipchat.com/v2/room/My%20Room/message?auth_token=VPNE7g0rHbfpNZ68XcOP0mwoBhwLGe9cFtBmLFdq"
![Page 68: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/68.jpg)
< HTTP/1.1 204 No Content< Server: nginx< Date: Mon, 16 Sep 2013 23:42:31 GMT< Content-Type: text/html< Connection: keep-alive< X-Ratelimit-Remaining: 499< X-Ratelimit-Limit: 500< Access-Control-Allow-Origin: *< X-Ratelimit-Reset: 1379374980.0
![Page 69: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/69.jpg)
![Page 70: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/70.jpg)
![Page 71: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/71.jpg)
![Page 72: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/72.jpg)
GET https://api.hipchat.com/v2/room/Engineering
{ "created": "2013-08-08T18:42:20", "id": 34, ... "participants": [ { "id": 375, "links": { "self": "https://api.hipchat.com/v2/user/375" }, "name": "Garret Heaton" } ]}
![Page 73: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/73.jpg)
GET https://api.hipchat.com/v2/room/Engineering?expand=participants
{ "created": "2013-08-08T18:42:20", "id": 34, ... "participants": [ { "created": "2013-08-08T18:42:20", "email": "[email protected]", "id": 375, "is_deleted": false, "is_group_admin": true, "is_guest": false, "mention_name": "GarretHeaton", "name": "Garret Heaton", ... }]}
![Page 74: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/74.jpg)
![Page 75: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/75.jpg)
Just text by itself, for impact.
![Page 76: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/76.jpg)
Session 1 - Hacker
Session 3 - Entrepreneur
Session 2 - Intrapreneur
Enterprise Architect Scenario
Session 2 - Intrapreneur
![Page 77: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/77.jpg)
Goal: Show sales in any team’s room
![Page 78: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/78.jpg)
Just text by itself, for impact.
![Page 79: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/79.jpg)
HipChat
Sales DB Sales Add-On
![Page 80: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/80.jpg)
{ "name": "Sales Info", "description": "Posts sales to rooms", "key": "com.example.sales",
"links": { "homepage": "https://example.com/sales", "self": "https://example.com/sales/capabilities" },
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] } }}
![Page 81: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/81.jpg)
Just text by itself, for impact.
![Page 82: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/82.jpg)
Just text by itself, for impact.
![Page 83: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/83.jpg)
Just text by itself, for impact.
![Page 84: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/84.jpg)
![Page 85: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/85.jpg)
Just text by itself, for impact.
![Page 86: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/86.jpg)
Just text by itself, for impact.
![Page 87: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/87.jpg)
curl -v \! -u d4d6949e-791e-43ce-a0b7-50134495b73e:j998i9niK8zhi89R2sieBVVQSFfIgzdTOBpxI8aP \ ! -d "grant_type=client_credentials&scope=send_notification" \! https://api.hipchat.com/v2/oauth/token
![Page 88: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/88.jpg)
< HTTP/1.1 200 OK< Server: nginx< Date: Tue, 17 Sep 2013 01:28:03 GMT< Content-Type: application/json< Transfer-Encoding: chunked< Connection: keep-alive< X-Ratelimit-Remaining: 499< X-Ratelimit-Limit: 500< Access-Control-Allow-Origin: *< X-Ratelimit-Reset: 1379381340.0<{"access_token": "E9NGsQjqWgHSK50ZXHGgIAoQ0E13b1FuGiLPNdYj", "expires_in": 82800, "scope": "view_group", "token_type": "bearer"}
![Page 89: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/89.jpg)
![Page 90: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/90.jpg)
{ "name": "Sales Info", "description": "Posts sales to rooms", "key": "com.example.sales",
"links": { "homepage": "https://example.com/sales", "self": "https://example.com/sales/capabilities" },
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] },
"installable": { "callbackUrl": "https://example.com/sales/installed" } }}
![Page 91: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/91.jpg)
![Page 92: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/92.jpg)
Session 1 - Hacker
Session 3 - Entrepreneur
Session 2 - Intrapreneur
Enterprise Architect Scenario
Session 3 -Entrepreneur
![Page 93: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/93.jpg)
Goal: Create side-project to show Stripe sales in
customer rooms
![Page 94: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/94.jpg)
![Page 95: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/95.jpg)
{ "name": "Stripe Integration", "description": "Posts credit card sales in rooms", "key": "com.example.stripe",
...
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] },
"installable": { "callbackUrl": "https://example.com/stripe/installed" },
"configurable": { "url": "https://example.com/stripe/config" } }}
![Page 96: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/96.jpg)
Just text by itself, for impact.
![Page 97: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/97.jpg)
Screenshot of marketplace docs
![Page 98: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/98.jpg)
Screenshot of marketplace registration
![Page 99: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/99.jpg)
Just text by itself, for impact.
![Page 100: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/100.jpg)
Just text by itself, for impact.
![Page 101: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/101.jpg)
Session 3 - Entrepreneur
Session 2 - Intrapreneur
Session 1 - Hacker
Experts Founder Scenario
![Page 102: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/102.jpg)
Goal: Add external chat room to website
![Page 103: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/103.jpg)
Just text by itself, for impact.
![Page 104: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/104.jpg)
Just text by itself, for impact.
![Page 105: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/105.jpg)
Just text by itself, for impact.
![Page 106: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/106.jpg)
curl -H "Content-Type: application/json" \ -d '{"message": "Hello world"}' -v "https://api.hipchat.com/v2/room/My%20Room/message"
![Page 107: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/107.jpg)
< HTTP/1.1 401 Unauthorized< Server: nginx< Date: Mon, 16 Sep 2013 23:33:27 GMT< Content-Type: application/json< Transfer-Encoding: chunked< Connection: keep-alive< Access-Control-Allow-Origin: *< WWW-Authenticate: Bearer realm="HipChat"<{ "error": { "code": 401, "message": "Authenticated requests only. See https://www.hipchat.com/docs/apiv2/auth for more information.", "type": "Unauthorized" }
![Page 108: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/108.jpg)
![Page 109: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/109.jpg)
Just text by itself, for impact.
![Page 110: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/110.jpg)
Just text by itself, for impact.
![Page 111: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/111.jpg)
curl -H "Content-Type: application/json" \ -d '{"message": "Hello world"}' -v "https://api.hipchat.com/v2/room/My%20Room/message?auth_token=VPNE7g0rHbfpNZ68XcOP0mwoBhwLGe9cFtBmLFdq"
![Page 112: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/112.jpg)
< HTTP/1.1 204 No Content< Server: nginx< Date: Mon, 16 Sep 2013 23:42:31 GMT< Content-Type: text/html< Connection: keep-alive< X-Ratelimit-Remaining: 499< X-Ratelimit-Limit: 500< Access-Control-Allow-Origin: *< X-Ratelimit-Reset: 1379374980.0
![Page 113: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/113.jpg)
![Page 114: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/114.jpg)
![Page 115: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/115.jpg)
![Page 116: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/116.jpg)
GET https://api.hipchat.com/v2/room/Engineering
{ "created": "2013-08-08T18:42:20", "id": 34, ... "participants": [ { "id": 375, "links": { "self": "https://api.hipchat.com/v2/user/375" }, "name": "Garret Heaton" } ]}
![Page 117: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/117.jpg)
GET https://api.hipchat.com/v2/room/Engineering?expand=participants
{ "created": "2013-08-08T18:42:20", "id": 34, ... "participants": [ { "created": "2013-08-08T18:42:20", "email": "[email protected]", "id": 375, "is_deleted": false, "is_group_admin": true, "is_guest": false, "mention_name": "GarretHeaton", "name": "Garret Heaton", ... }]}
![Page 118: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/118.jpg)
![Page 119: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/119.jpg)
![Page 120: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/120.jpg)
Just text by itself, for impact.
![Page 121: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/121.jpg)
Session 1 - Hacker
Session 3 - Entrepreneur
Session 2 - Intrapreneur
Experts Founder Scenario
Session 2- Intrapreneur
![Page 122: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/122.jpg)
Goal: Private support chats on website
![Page 123: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/123.jpg)
Just text by itself, for impact.
![Page 124: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/124.jpg)
HipChat
Support DB
Support Add-On
![Page 125: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/125.jpg)
{ "name": "Support Chats", "description": "Manages support chats", "key": "com.example.support",
"links": { "homepage": "https://example.com/support", "self": "https://example.com/support/capabilities" },
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] } }}
![Page 126: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/126.jpg)
Just text by itself, for impact.
![Page 127: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/127.jpg)
Just text by itself, for impact.
![Page 128: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/128.jpg)
Just text by itself, for impact.
![Page 129: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/129.jpg)
![Page 130: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/130.jpg)
Just text by itself, for impact.
![Page 131: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/131.jpg)
Just text by itself, for impact.
![Page 132: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/132.jpg)
curl -v \! -u d4d6949e-791e-43ce-a0b7-50134495b73e:j998i9niK8zhi89R2sieBVVQSFfIgzdTOBpxI8aP \ ! -d "grant_type=client_credentials&scope=send_notification" \! https://api.hipchat.com/v2/oauth/token
![Page 133: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/133.jpg)
< HTTP/1.1 200 OK< Server: nginx< Date: Tue, 17 Sep 2013 01:28:03 GMT< Content-Type: application/json< Transfer-Encoding: chunked< Connection: keep-alive< X-Ratelimit-Remaining: 499< X-Ratelimit-Limit: 500< Access-Control-Allow-Origin: *< X-Ratelimit-Reset: 1379381340.0<{"access_token": "E9NGsQjqWgHSK50ZXHGgIAoQ0E13b1FuGiLPNdYj", "expires_in": 82800, "scope": "view_group", "token_type": "bearer"}
![Page 134: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/134.jpg)
![Page 135: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/135.jpg)
{ "name": "Support Chats", "description": "Manages support chats", "key": "com.example.support",
"links": { "homepage": "https://example.com/support", "self": "https://example.com/support/capabilities" },
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] },
"installable": { "callbackUrl": "https://example.com/support/installed" } }}
![Page 136: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/136.jpg)
![Page 137: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/137.jpg)
Session 1 - Hacker
Session 3 - Entrepreneur
Session 2 - Intrapreneur
Experts Founder Scenario
Session 3 -Entrepreneur
![Page 138: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/138.jpg)
Goal: Sell support chats in the Marketplace
![Page 139: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/139.jpg)
![Page 140: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/140.jpg)
{ "name": "Support Chats", "description": "Manages support chats", "key": "com.example.support",
...
"capabilities": { "hipchatApiConsumer": { "scopes": [ "send_notification" ] },
"installable": { "callbackUrl": "https://example.com/support/installed" },
"configurable": { "url": "https://example.com/support/config" } }}
![Page 141: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/141.jpg)
Just text by itself, for impact.
![Page 142: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/142.jpg)
Screenshot of marketplace docs
![Page 143: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/143.jpg)
Screenshot of marketplace registration
![Page 144: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/144.jpg)
Just text by itself, for impact.
![Page 145: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/145.jpg)
Just text by itself, for impact.
![Page 146: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/146.jpg)
1.Visit HipChat and login
2.Click on “Rooms” tab
3.Click on desired room
4.Click on “Add-ons”
5.Find Bitbucket addon, and click “Install”
6.Type the repository name, and click “Add”
Install Bitbucket Add-on
![Page 147: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/147.jpg)
Just text by itself, for impact.
![Page 148: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/148.jpg)
The Future. . .
![Page 149: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/149.jpg)
• Level One
• Level Two
• Level Two
• Level Two
• Level One
Page title here
![Page 150: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/150.jpg)
![Page 151: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/151.jpg)
![Page 152: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/152.jpg)
Feedback time!
![Page 153: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/153.jpg)
Be the hero! Hack HipChat!”“
![Page 154: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/154.jpg)
Thank you!
Don Brown • Arch i tec t • At lass ian • @mrdonbrown
![Page 155: Chatting with HIpChat: APIs 101](https://reader034.fdocuments.net/reader034/viewer/2022052315/54b1d63d4a795997118b460d/html5/thumbnails/155.jpg)
Text code below to 22333or visit http://bit.ly/1dPD0tv
Chatting with HipChat: APIs 101
To join this session, send text 136888 to
AWESOME = 8
PRETTY GOOD = 7
NOT BAD = 6
MEH = 5
Rate this Talk