From abac63f5efd7cf28822d1d5eed2c1390ca78b592 Mon Sep 17 00:00:00 2001 From: pmudaiya Date: Wed, 26 May 2021 13:24:20 +0530 Subject: [PATCH] Adding User Agent to REST API Calls --- README.md | 3 ++- lib/configure.js | 3 ++- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9b03b9d..eb389c1 100755 --- a/README.md +++ b/README.md @@ -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) diff --git a/lib/configure.js b/lib/configure.js index 05189a5..a290af3 100755 --- a/lib/configure.js +++ b/lib/configure.js @@ -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 } }; diff --git a/package.json b/package.json index 6aa9115..a96d844 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opsgenie-sdk", - "version": "0.4.8", + "version": "0.4.9", "description": "OpsGenie Node.js SDK", "main": "./index.js", "scripts": {