Skip to content

Commit abac63f

Browse files
Adding User Agent to REST API Calls
1 parent 8c34fff commit abac63f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ OpsGenie Node.js SDK covers:
1515
- User API
1616
- Group API
1717
- Team API
18+
- Heartbeat API
19+
- Incident API
1820
- Escalation API (TODO: will be available soon)
1921
- Schedule API (TODO: will be available soon)
2022
- Schedule Override API (TODO: will be available soon)
2123
- Forwarding Rule API (TODO: will be available soon)
22-
- Heartbeat API (TODO: will be available soon)
2324
- Integration API (TODO: will be available soon)
2425
- Policy API (TODO: will be available soon)
2526

lib/configure.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ var def_options = {
1616
var def_http_options = {
1717
headers: {
1818
'Accept': 'application/json',
19-
'Content-Type': 'application/json'
19+
'Content-Type': 'application/json',
20+
'User-Agent' : 'opsgenie-node-sdk:' + exports.sdkVersion
2021
}
2122
};
2223

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opsgenie-sdk",
3-
"version": "0.4.8",
3+
"version": "0.4.9",
44
"description": "OpsGenie Node.js SDK",
55
"main": "./index.js",
66
"scripts": {

0 commit comments

Comments
 (0)