Skip to content

Commit

Permalink
Merge pull request #31 from opsgenie/Adding_User_Agent
Browse files Browse the repository at this point in the history
Adding User Agent to REST API Calls
  • Loading branch information
prakhar-mudaiya authored May 27, 2021
2 parents 8c34fff + abac63f commit 80d7fa3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ OpsGenie Node.js SDK covers:
- User API
- Group API
- Team API
- Heartbeat API
- Incident API
- Escalation API (TODO: will be available soon)
- Schedule API (TODO: will be available soon)
- Schedule Override API (TODO: will be available soon)
- Forwarding Rule API (TODO: will be available soon)
- Heartbeat API (TODO: will be available soon)
- Integration API (TODO: will be available soon)
- Policy API (TODO: will be available soon)

Expand Down
3 changes: 2 additions & 1 deletion lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ var def_options = {
var def_http_options = {
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'User-Agent' : 'opsgenie-node-sdk:' + exports.sdkVersion
}
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opsgenie-sdk",
"version": "0.4.8",
"version": "0.4.9",
"description": "OpsGenie Node.js SDK",
"main": "./index.js",
"scripts": {
Expand Down

0 comments on commit 80d7fa3

Please sign in to comment.