lasator | 2016-09-14 16:01:24 UTC | #1
Hello,
When using the REST api request https://api.{{environment}}/api/v2/conversations/calls the returned json content contains different casing for some values compared to all other similar request and web socket event content. The main offender is the state and direction properties of each participant. These values are in ALL CAPS for other requests and in web socket events but are lower case for the above request. I am currently handling this by uppercasing all similar values before comparison. However, this really should be consistent for all requests and web socket events.
tim.smith | 2016-10-04 16:09:19 UTC | #2
This sounds like CS-653, which has not been implemented yet.
As a best practice, the string values should always use a case insensitive comparison. If you're using one of the SDKs, they will handle that for you.
system | 2017-08-28 19:27:16 UTC | #3
This post was migrated from the old Developer Forum.
ref: 401