hnin | 2022-05-09 06:07:09 UTC | #1
Hi, I need to call this api using python SDH POST /api/v2/workforcemanagement/adherence/historical
This is the Attribute error I get when I make an api call AttributeError: module 'PureCloudPlatformClientV2.apis.workforcemanagementapi' has no attribute 'postworkforcemanagementadherence_historical'
although I see the function in the library at line 7474 /workforcemanagementapi.py
Any guidance is appreciated. Thank you.
Ebenezer_Osei | 2022-05-09 15:45:51 UTC | #2
Hello,
I am not able to reproduce your issue. Do you mind sharing a snippet of your script?
Thanks
hnin | 2022-05-11 23:10:24 UTC | #3
Hello Ebenezer,
I was able to trigger the API finally according to example given in the documentation this way.
apiclient = PureCloudPlatformClientV2.apiclient.ApiClient().getclientcredentialstoken(CLIENTID, CLIENTSECRET) PureCloudPlatformClientV2.configuration.accesstoken = apiclient.accesstoken apiinstance = PureCloudPlatformClientV2.WorkforceManagementApi() apiresponse = apiinstance.postworkforcemanagementadherencehistorical(body=body)
Thank you for the response. Regards, Hnin
system | 2022-06-11 23:08:52 UTC | #4
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: 14635