我正在尝试通过输入API密钥来运行Plaid快速入门服务器。通过执行以下操作,我能够安装必要的文件:
(home directory)> git clone https://github.com/plaid/quickstart.git
(home directory)> cd quickstart/python
(home directory)/quickstart/python> pip install -r requirements.txt
然后,文档中的说明指定我应该输入我的API密钥才能运行快速入门。我在外壳程序中输入了API密钥,它返回了错误
“术语'PLAID_CLIENT_ID =(我的密钥)'未被识别为 cmdlet,函数,脚本文件或可运行程序”。
如何让PowerShell将我的API密钥分配给这些变量? 我所遵循的指示在这里:https://plaid.com/docs/quickstart/#introduction
我在PowerShell上所做的所有操作均来自(主目录)/ quickstart / python。我怀疑路径存在问题,因此我进入了控制面板上的“系统属性”,转到“环境变量”,选择了PATH,并添加了两个不同的路径:
C:\Users\wheel\quickstart\java\src\main\java\com\plaid\quickstart
C:\Users\wheel\quickstart\python
到目前为止,它仍然返回相同的错误。当我直接从网站复制并粘贴密钥时,发生了另一个错误,该错误指出在参数列表中缺少参数。 实际结果是shell无法将变量识别为函数。预期结果是使程序“ server.py”运行时将凭据插入到外壳中。错误消息显示在上方。
Error 1:
PS C:\Users\wheel\quickstart\python>
PLAID_CLIENT_ID='5d1bfa99cb5c2800125a8231' \
PLAID_CLIENT_ID=5d1bfa99cb5c2800125a8231 : The term
'PLAID_CLIENT_ID=5d1bfa99cb5c2800125a8231' is not recognized as
the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ PLAID_CLIENT_ID='5d1bfa99cb5c2800125a8231' \
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound:
(PLAID_CLIENT_ID=5d1bfa99cb5c2800125a8231:String) [], CommandNotFoundExc
eption
+ FullyQualifiedErrorId : CommandNotFoundException
Error 2:
PS C:\Users\wheel\quickstart\python> PLAID_CLIENT_ID=concealed \
>> PLAID_SECRET=concealed \
>> PLAID_PUBLIC_KEY=concealed \
>> PLAID_PRODUCTS=transactions \
>> PLAID_COUNTRY_CODES=US,CA,GB,FR,ES \
>> PLAID_ENV=sandbox \
>> python server.py
At line:5 char:23
+ PLAID_COUNTRY_CODES=US,CA,GB,FR,ES \
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [],
ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
预期结果是使用我输入的凭据运行程序“ server.py”。我得到的结果显示在上面的shell提示符中。