rolin | 2018-01-05 18:16:48 UTC | #1
Hello,Every one i have a problem, that is when i use a QualityApi instance to call GetQualityEvaluationsQuery() , then it will have a error as folow: Error calling GetQualityEvaluationsQuery: {"status":400,"code":"bad.request","message":"Unable to parse query parameters: Invalid startTime parameter","contextId":"46639971-3e33-4662-bc5a-0483c5af0607","details":[],"errors":[]}
please tell me what is correct format of datetime (parameter) thanks. <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/cf08382c972bb048e4b1b5cf80c5addc05acc8c0.png" width="690" height="165">
rolin | 2018-01-05 09:42:00 UTC | #2
Complements my problem :slight_smile:
var conversationAggregateresults = q.GetQualityEvaluationsQuery(100, page, null, null, null, null, null, null, null, null, start.AddHours(-24 * 7).RoundDown(new TimeSpan(1, 0, 0)).ToString("yyyy/MM/ddTHH:mm:ss"), end.RoundUp(new TimeSpan(1, 0, 0)).ToString("yyyy-MM-ddTHH:mm:ss"), null, null, null, true,null);
please tell me how to modify the code thanks. <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/9a0e3def16c462be76d8862b14c5822c7c6612c3.png" width="690" height="31">
tim.smith | 2018-01-05 18:23:07 UTC | #3
All timestamps in PureCloud should be communicated in ISO-8601 format. You should be able to use the "O" string format, or build it yourself explicitly if necessary.
rolin | 2018-01-08 05:28:49 UTC | #4
Hi , Now i can use correctly a instance of Quality Api to call GetQualityEvaluationsQuery(100, page, null, null, null, null, null, AgentuserId, null, null, startstr, endstr, null, null, null, true, null);
I'm here to give a detailed explanation of how to call the method right now . parameter AgentuserId from groups whose data type is List<Callgroup> . e.g. AgentuserId = groups.First().Users.FirstOrDefault().id . startstr and endstr must be standard Utc format e.g. "2018-01-01T12:00:00Z".
rolin | 2018-01-23 02:08:13 UTC | #5
hi use QualityApi instance q to call GetQualityEvaluationsQuery(). Can I call this method at a time to query multiple agentuserid (change parameter string agentUserId to string [] agentUserIds or change parameter string evaluatorUserId to string [] evaluatorUserIds)?
EvaluationEntityListing GetQualityEvaluationsQuery(int? pageSize = default(int?), int? pageNumber = default(int?), string sortBy = null, List<object> expand = null, string nextPage = null, string previousPage = null, string conversationId = null, string agentUserId = null, string evaluatorUserId = null, string queueId = null, string startTime = null, string endTime = null, List<object> evaluationState = null, bool? isReleased = default(bool?), bool? agentHasRead = default(bool?), bool? expandAnswerTotalScores = default(bool?), int? maximum = default(int?), string sortOrder = null);
tim.smith | 2018-01-24 16:58:03 UTC | #6
Per the documentation, the agentUserId parameter is a single value.
rolin | 2018-01-29 01:16:31 UTC | #7
Is there any way to reduce the number of requests, but get the same amount of data,for avoiding error 429
tim.smith | 2018-01-29 18:22:23 UTC | #8
No, there is no bulk API, so you must make one request per user id. Your app will need to behave in accordance with API rate limiting.
system | 2018-03-01 18:25:11 UTC | #9
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 2308