cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2499
Views
0
Helpful
5
Replies

getArchiveSessions JSON request example

Gozde Kumasoglu
Level 4
Level 4

Hi,

When calling getArchiveSessions  method of Mediasense 11.0.1 API , the JSON request below is responded as "{"responseMessage":"Failure: Invalid JSON syntax. Verify the syntax and try again.","responseCode":4056}"

{

"requestParameters":

[

{"sessionIdList":[],

"deviceRef":[],

"minSessionStartDate":1475226000000,

"maxSessionStartDate":1475229600000

}

]

}

While the request below is responded as "{"responseMessage":"Failure: Invalid date range.","responseCode":4065}"

{

"requestParameters":

[

{"sessionIdList":[],

"deviceRef":[],

"minSessionStartDate":2,

"maxSessionStartDate":1

}

]

}   

I can't see an example JSON in developer guide v11.0 (http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/mediasense/11/Developer_Guide/CUMS_BK_ms-… ).

Can you give me a valid JSON request example with real values for this method?
Thanks.

1 Accepted Solution

Accepted Solutions

ambdev
Cisco Employee
Cisco Employee

Hi Gozde,

You can you below syntax to get result:

=============================================

{

   "requestParameters": [

      {

         "sessionIdList": [

            "3158051e74501",

     "3158051e74701"

         ]

      },

    {

         "deviceRef": [

            "11635",

     "11630"

         ]

      },

      {

         "minSessionStartDate": "1477543948000",

  "maxSessionStartDate": "1477579948000"

      }

   ]

}

============================================

In your first request query, you should either provide session id in "" or just put "" in []

In your second request query, date should be in long format like 1477543948000.

Regards,

Ambrose Dev

View solution in original post

5 Replies 5

ambdev
Cisco Employee
Cisco Employee

Hi Gozde,

You can you below syntax to get result:

=============================================

{

   "requestParameters": [

      {

         "sessionIdList": [

            "3158051e74501",

     "3158051e74701"

         ]

      },

    {

         "deviceRef": [

            "11635",

     "11630"

         ]

      },

      {

         "minSessionStartDate": "1477543948000",

  "maxSessionStartDate": "1477579948000"

      }

   ]

}

============================================

In your first request query, you should either provide session id in "" or just put "" in []

In your second request query, date should be in long format like 1477543948000.

Regards,

Ambrose Dev

Hi Ambrose,

Thanks for the info.

I've made a request providing the session id and the dates in long format like below.

{

"requestParameters": [

{"sessionIdList":["6b761577a64c96f1"],

"deviceRef":["5455"],

"minSessionStartDate":1475226000000,

"maxSessionStartDate":1475229600000}

]

}

When trying to get http response to my request "The operation has timed out" exception was catched after waiting for some time without response. Mediasense server and SFTP server seems reachable. My sign in request is responded with JSessionID successfully. I am not sure what to check more. Can you help on that?

I opened an SR for this. It is resolved using Linux based SFTP server instead of Windows based SFTP server.

Hi Ambrose,

I have a question.

Does  MediaSense version 11.5 support role-based access for AXL (Cisco IP Phone 79xx)? Mean, user belongs to one group only  listen again some recording which this user has authoried.

Pham,

The roles and permissions for AXL users is not part of the 11.5 release.

In 11.5 we delivered the ability to restrict access when using Finesse for the login credentials.

The AXL roles and permissions is being considered for the 11.6 release.

Thanks,

Anil

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: