【问题标题】:How to get python API to access Smartsheet如何让 python API 访问 Smartsheet
【发布时间】:2019-04-27 20:24:38
【问题描述】:

我正在关注 smartsheet API 做一些练习https://smartsheet-platform.github.io/api-docs/index.html?python#sdks-and-sample-code,我对 API 完全陌生。以下是我的步骤(我是新手,如果我做错了,请纠正我):

  1. 我将 SDK 包安装到我的笔记本电脑(来自 https://github.com/smartsheet-platform/smartsheet-python-sdk
  2. 我在我的 Mac (10.7.5) 终端上使用“pip install smartsheet-python-sdk”安装了 pip
  3. 我使用 python 3.4.4 并创建了一个 .py 文件,并将该文件移动到 SDK 文件中
  4. 我在 .py 文件中有这些代码:

导入智能表 ss_client = smartsheet.Smartsheet(access_token) ss_client.errors_as_exceptions(True)

5.当我运行它时,我收到了错误消息

Traceback(最近一次调用最后一次): 文件“/Users/canny_aiyaya/Desktop/smartsheet-python-sdk-master/smartsheet/charity.py”,第 5 行,在 导入智能表 文件“/Users/canny_aiyaya/Desktop/smartsheet-python-sdk-master/smartsheet/smartsheet.py”,第 28 行,在 导入请求 ImportError:没有名为“请求”的模块

  1. 所以我寻找了一些可能的解决方案,并尝试使用“sudo pip3 install requests”在我的终端上安装请求,但它显示“No matching distribution found for requests”

这是我第一次尝试在 Smartsheet 上使用 API,任何支持/链接/视频都会非常有帮助。

【问题讨论】:

  • 问题已经解决了,但是我又遇到了新问题

标签: python-3.x api smartsheet-api


【解决方案1】:

有许多依赖项。您可以从 Smartsheet SDK 目录运行 python setup.py install 来安装它们。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-23
    • 2017-11-29
    • 1970-01-01
    • 1970-01-01
    • 2021-07-08
    • 1970-01-01
    • 2017-03-30
    相关资源
    最近更新 更多