【发布时间】:2021-01-14 04:07:02
【问题描述】:
我成功使用了 tm1py 包,并且能够使用以下代码获取立方体信息。
from TM1py.Services import TM1Service
with TM1Service(address= "localhost",port="51130",user= "pm",password= "IBMDem0s",namespace="Harmony LDAP",ssl= False) as tm1:
df =tm1.cubes.cells.execute_view_dataframe(cube_name ="PUR_Sales_Planning",view_name="View1",private= False)
现在我需要使用 Postman 命令检查同样的事情。我试过https://code.cubewise.com/blog/mastering-the-tm1-rest-api-with-postman 来测试一下
。所以我使用授权类型为“基本身份验证”。用户名为 pm,密码为 IBMDemos。URL 如下。http://localhost:51130/api/v1/Cubes(我只需要所有立方体名称)。
但是我收到了来自邮递员“401 Unauthorized”的错误。谁能告诉我这里出了什么问题。我需要在邮递员的某个地方输入命名空间名称字段吗?
【问题讨论】:
标签: python postman cognos-tm1