How to find required information
Room Id
One way, there may be others, to find the unique Gitter Room Id is the following:
- Open Postman
- Create a new GET request, pointing at
https://api.gitter.im/v1/rooms/
- In the headers section, add a new header with
Content-Type
ofapplication\json
- In the headers section, add a new header with
Accept
ofapplication\json
- In the headers section, add a new header with
Authorization
ofBearer <Personal Access Token
NOTE: You can find your Personal Access Token by logging into here - Click Send
This will return a complete list of all the Rooms that you are a member of. Scroll through the list until you find the one that you are interested, and take note of the Room Id, as shown in the picture below:
Web Hook Url
Use the following steps to create a Custom Web Hook Url for your Gitter Room:
- Log into gitter.im
- Navigate to your Room
- Click the Settings icon at the top of the page, and click Integrations
- Scroll down to the "Add an integration" section, and click Custom
- In the window that opens up you will see your newly created Web Hook Url. It should look something like this
NOTE: The above Web Hook Url is a sample one, and no longer exists.
Personal Access Token
In order to post directly into a Gitter Room, you need to use an Access Token. Gitter does not provide the ability to generate Personal Access Tokens on a use case basis, however, you can use your own one. You can retrieve that by doing the following:
- Log into https://developer.gitter.im/apps
- Your Personal Access Token will be displayed