我成功使用了 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'那里得到一个错误。谁能告诉我这里出了什么问题。我需要在邮递员的某个地方输入命名空间名称字段吗?