Hi all,
I try to call Mediasense API via getSession with condition "isConference", but I receive result "The fieldName parameter is invalid".
I don't know how to solve this. Below is my code:
{
"requestParameters": [{
"fieldName": "isConference",
"fieldConditions": [{
"fieldOperator": "between",
"fieldValues": ["true"]
}],
"paramConnector": "AND"
}, {
"fieldName": "sessionState",
"fieldConditions": [{
"fieldOperator": "equals",
"fieldValues": ["CLOSED_NORMAL"]
}]
}],
"pageParameters": {
"offset": 0,
"limit": 1000
}
}
Thank you for help
Trinnachart
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If the issue is the pageParameters, you JSON looks correct. The default is 1,000, so you might try it without providing the paging parameters.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thank you ewindgat, but I want to search result that is "isConference" calls.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I noticed for isConference, you used between as the operator. I believe isConference is a Boolean, and you might try equals.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi ewindgat,
I used
{
"requestParameters": [{
"fieldName": "isConference",
"fieldConditions": [{
"fieldOperator": "equals",
"fieldValues": ["true"]
}],
"paramConnector": "AND"
}, {
"fieldName": "sessionState",
"fieldConditions": [{
"fieldOperator": "equals",
"fieldValues": ["CLOSED_NORMAL"]
}]
}],
"pageParameters": {
"offset": 0,
"limit": 1000
}
}
and I got result "The fieldName parameter is Invalid".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It looks like the fieldvalues can only be strings. Booleans are not accepted.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Trinnachart,
"isConference" isn't a valid input parameter for the MediaSense getSessions API, thus it's failing at your end.
As mentioned in the guide, "isConference" is an Output string in this API.
Please have a look at the developer guide to see valid input parameters. I am pasting MS 11.0 guide. Please have a look at the guide for your respective release.
Let me know in case of any queries.
Thanks
Nitin Singh
MediaSense Support
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.