Dewald_Smit | 2022-11-09 02:17:31 UTC | #1
I am trying my noobest with Python SDK but I ran into an error that i can't seem to resolve. If anyone could please point out my mistake, its driving me nuts.
Code:
from html import entities import PureCloudPlatformClientV2 import yaml import json
Load YAML Config
with open('HealthCheck_Config.yaml') as f: config = yaml.load(f, Loader=yaml.FullLoader)
region = PureCloudPlatformClientV2.PureCloudRegionHosts.euwest1 PureCloudPlatformClientV2.configuration.host = region.getapihost()
Get Auth Token
apiClient = PureCloudPlatformClientV2.apiclient.ApiClient().getclientcredentialstoken(config['clientId'],config['clientSecret'])
authApi = PureCloudPlatformClientV2.AuthorizationApi(apiClient)
EdgeStatusApi = PureCloudPlatformClientV2.TelephonyProvidersEdgeApi.gettelephonyprovidersedges(authApi,pagesize=50)
for edgeId in EdgeStatusApi.entities: edge = edgeId.id EdgeNetworkStatus = PureCloudPlatformClientV2.TelephonyProvidersEdgeApi.gettelephonyprovidersedgelogicalinterfaces(authApi,edge_id=edge) print(EdgeNetworkStatus)
Error:
Message='int' object has no attribute 'lower'
anon14299330 | 2022-11-09 11:12:36 UTC | #2
Hi,
I've managed to reproduce the error and I'm currently looking into this issue. There appears to be some strange behaviour here with this endpoint. I will update as soon as possible.
Thanks,
Mike
system | 2022-12-10 11:13:28 UTC | #3
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: 17141