From c1a6f09e8e544a978d4bebea830a3512045f7d8a Mon Sep 17 00:00:00 2001 From: Lucas Bussey Date: Mon, 12 Sep 2016 10:32:16 -0700 Subject: [PATCH 1/2] Added token auth and acdc queue stats to API --- lib/apis/accounts.json | 10 ++++++++++ lib/apis/api_auth.json | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 lib/apis/api_auth.json diff --git a/lib/apis/accounts.json b/lib/apis/accounts.json index e000029..6d9b141 100644 --- a/lib/apis/accounts.json +++ b/lib/apis/accounts.json @@ -43,5 +43,15 @@ "method": "GET", "url": "/accounts/{{account_id}}/channels", "auth_required": true + }, + "get_summary_stats_queues":{ + "method": "GET", + "url": "/accounts/{{account_id}}/queues/stats_summary", + "auth_required": true + }, + "get_summary_stats_agents":{ + "method": "GET", + "url": "/accounts/{{account_id}}/agents/stats_summary", + "auth_required": true } } \ No newline at end of file diff --git a/lib/apis/api_auth.json b/lib/apis/api_auth.json new file mode 100644 index 0000000..ff2f52f --- /dev/null +++ b/lib/apis/api_auth.json @@ -0,0 +1,7 @@ +{ + "create_api_auth": { + "method": "PUT", + "url": "/api_auth", + "auth_required": false + } +} \ No newline at end of file From fb92c7eb5d55cc521bdae7ceabc07190b2bfb4ef Mon Sep 17 00:00:00 2001 From: Lucas Bussey Date: Wed, 14 Sep 2016 15:59:30 -0700 Subject: [PATCH 2/2] Added method to user auth to get token info --- lib/apis/user_auth.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/apis/user_auth.json b/lib/apis/user_auth.json index b1bc601..68d05e8 100644 --- a/lib/apis/user_auth.json +++ b/lib/apis/user_auth.json @@ -3,5 +3,10 @@ "method": "PUT", "url": "/user_auth", "auth_required": false + }, + "get_user_auth": { + "method": "GET", + "url": "/accounts/{{account_id}}/user_auth/{{auth_token}}", + "auth_required": true } } \ No newline at end of file