使用带有共享URL的图形api访问共享文件时为400

时间:2017-05-25 06:02:21

标签: microsoft-graph

我使用msgraph-sdk-php调用端点In [133]: with open('test.dat','rb') as f: ...: frame3 = np.frombuffer(f.read(12800),dtype=np.uint16) ,但将响应400作为:

/shares/{shareId}

虽然我可以通过{ "@odata.context":"https://graph.microsoft.com/v1.0/$metadata#shares/$entity", "id":"s!here-is-the-share-id", "name@odata.type":"#String", "name":{ "error": { "code": "BadRequest", "message": "A primitive value was specified; however, a value of the non-primitive type '' was expected.", "innerError": { "request-id": "3ea56b1c-acd6-4fdf-a856-c46b35e01cb7", "date": "2017-05-25T05:26:23" } } } (Yes, I even got 4 left brackets but only 3 right brackets.) api获得与api.onedrive.com相同的正确答案。 我真的找不到文档中的任何提示。

1 个答案:

答案 0 :(得分:1)

感谢您告诉我们@SevenOutman!这是一个现已解决的配置问题。