python-3.x - Athenahealth 沙盒 - 没有名为“athenahealthapi”的模块
问题描述
我正在尝试在 athenahealth 上玩沙箱 - https://docs.athenahealth.com/api/guides/explore-and-prototype - 注册和创建应用程序后,我开始使用沙箱 -试试 sandbox。我滚动到示例代码,转到 GH >> samplecode >> python3 >> testing.py。拉动并运行此代码时,我不断收到错误
ModuleNotFoundError:没有名为“athenahealthapi”的模块
我无法安装 athenahealthapi
解决方案
如果您正在查看 API 代码示例,您应该会看到一个具有称为 APIConnection 的类连接的示例。我相信您需要将该代码保存为一个名为 athenahealthapi.py 的文件,该文件与您运行脚本的文件夹相同。这本质上是 athenahealthapi 模块,它将 APIConnection 类拉为 athenahealthapi.APIConnection()。我已经通过了那部分,但现在遇到了缺少 access_token 密钥错误的问题。:(
推荐阅读
- flutter - Flutter 富文本国际化
- excel - 使用系统或 Office 语言的条件格式公式
- jquery - wenzhixin multipleSelect-JQuery 插件上的 Click-Event 不起作用
- java - 错误:无法找到或加载主类 weblogic.Server docker
- java - 如何从通用包装器内部或编译时抛出 ClassCastException
- r - 操作嵌套数据 2
- php - 全局变量的范围
- amazon-web-services - 标签被 Terraforms aws_vpc 数据源错误格式化
- angular - 在 Angular Arrayform 上使用 [formGroup]
- python-pptx - python-pptx:更改饼图的边框宽度