gpt4 book ai didi

zoho - 模块 'zcrmsdk' 没有属性 'ZCRMRestClient'

转载 作者:行者123 更新时间:2023-12-04 13:27:55 24 4
gpt4 key购买 nike

我无法进行以下工作:

    import zcrmsdk

config = {
"apiBaseUrl":"https://www.zohoapis.com",
"apiVersion":"v2",
"currentUserEmail":"sample@gmail.com",
"sandbox":"False",
"applicationLogFilePath":"./log",
"client_id":"1000.1xxxxxxxxxxxxxxxxxxxxxxxxxxxC",
"client_secret":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"redirect_uri":"http://localhost:800/some_path",
"accounts_url":"https://accounts.zoho.com",
"token_persistence_path":"",
"access_type":"online"
}

zcrmsdk.ZCRMRestClient.initialize(config)
oauth_client = zcrmsdk.ZohoOAuth.get_client_instance()
grant_token = "1000.xxxxxxxxxxxxx.....xxxxxxxx...x.x.x"
oauth_tokens = oauth_client.generate_access_token(grant_token)

print(oauth_tokens)

我收到了 AttributeError: module 'zcrmsdk' has no attribute 'ZCRMRestClient'我知道我错过了一些东西。我错过了什么?有人可以帮忙吗?

最佳答案

有同样的问题。我认为这与您使用的版本有关。版本 zcrmsdk==2.0.12 有此属性可用。

关于zoho - 模块 'zcrmsdk' 没有属性 'ZCRMRestClient',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67047916/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com