sajidali | 2017-05-29 12:14:00 UTC | #1
I am trying to call the the PostAnalyticsUsersDetailsQuery using UsersApi(). However it says that UsersApi() cannot find the definition for PostAnalyticsUsersDetailsQuery. But the in the example mentioned below, it clearly says otherwise. https://developer.mypurecloud.com/api/rest/v2/users/index.html#postAnalyticsUsersDetailsQuery
var api=new UsersApi(); UserDetailsQuery body = new UserDetailsQuery();
try {
AnalyticsUserDetailsQueryResponse result = api.PostAnalyticsUsersDetailsQuery(body);
Debug.WriteLine(result); }
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/2f87c88b7ad7b86247563c739c7d9259a2238f07.png" width="690" height="45">
tim.smith | 2017-05-30 15:48:07 UTC | #2
Are you using the latest version of PureCloudPlatform.Client.V2 (8.0.0)? UsersApi. PostAnalyticsUsersDetailsQuery is definitely there.
sajidali | 2017-06-01 14:06:45 UTC | #3
Hi, i updated the nuget package and its fine for UsersAPI, however all the "AnalyticsApi" function calls are failing now. for exmple:
var apiInstance=new AnalyticsApi(); var result = apiInstance.PostUsersAggregatesQuery(body);
May i know is this a big change which i need to do in already working piece of code? Also the documentation is still referring to older version of API, so i am not sure if this is an actual update or a bug.
tim.smith | 2017-06-01 15:07:09 UTC | #4
sajidali, post:3, topic:1352
all the "AnalyticsApi" function calls are failing now.
In what way are they failing? Are you getting 4xx or 5xx responses? Or are you having compile time errors?
sajidali, post:3, topic:1352
Also the documentation is still referring to older version of API
The documentation at https://developer.mypurecloud.com/api/rest/client-libraries/dotnet/ appears to be up to date. Can you be specific about where you are seeing outdated documentation and exactly what you believe is outdated?
sajidali | 2017-06-01 15:38:10 UTC | #5
Its the compilation errors for AnalyticsApi saying that AnalyticsApi does not contain the definition for "PostConversationsAggregatesQuery". When i look at the document of AnalyticsApi, i can not see this method anymore(in latest version). However i can see "PostAnalyticsConversationsAggregatesQuery".
So what i am trying to understand is that are all the functions/methods prior to this update are still with same names?
tim.smith | 2017-06-01 15:59:51 UTC | #6
sajidali, post:5, topic:1352
are all the functions/methods prior to this update are still with same names?
No, the names have changed from the pre-release SDK (version 0.x.x) to the stable release SDK (version 1.0.0+). See this post for the announcement about the stable release: https://developer.mypurecloud.com/forum/t/net-sdk-stable-release-1-0-0/1205
sajidali | 2017-06-02 08:53:35 UTC | #7
Thanks Tim, i guess i need to catch up with all the updates :slight_smile:
system | 2017-08-28 19:34:48 UTC | #8
This post was migrated from the old Developer Forum.
ref: 1352