尝试创建存储桶获取对象缺少响应

时间:2016-11-22 17:26:00

标签: autodesk autodesk-forge

试图通过以下请求与api交谈:

public class MySessionCustomizer implements SessionCustomizer {

  @Override
  public void customize(final Session session) {

    DatasourceLogin login = session.getLogin();
    login.setDefaultNullValue(long.class, -1L);

  }
}

响应:

POST /oss/v2/buckets/ HTTP/1.1
Host: developer.api.autodesk.com
Authorization: "Bearer sOla4eICLR6IBcx0892MvPjJ***"
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 1018dee7-22f1-d20b-4d11-32c4fd41d525

{
  "bucketKey":"energymetrics.bucket1",
  "policyKey":"transient"
} 

在PostMan和C#中都尝试过

1 个答案:

答案 0 :(得分:2)

请确保您使用不带斜杠的网址

https://developer.api.autodesk.com/oss/v2/buckets