Interface ObjectApi


  • public interface ObjectApi
    • Method Detail

      • getUploadUrl

        @Named("b2_get_upload_url")
        @POST
        @Path("/b2api/v2/b2_get_upload_url")
        @Consumes("application/json")
        @Produces("application/json")
        UploadUrlResponse getUploadUrl​(String bucketId)
      • deleteFileVersion

        @Named("b2_delete_file_version")
        @POST
        @Path("/b2api/v2/b2_delete_file_version")
        @Consumes("application/json")
        @Produces("application/json")
        DeleteFileResponse deleteFileVersion​(String fileName,
                                             String fileId)
      • getFileInfo

        @Named("b2_get_file_info")
        @POST
        @Path("/b2api/v2/b2_get_file_info")
        @Consumes("application/json")
        @Produces("application/json")
        B2Object getFileInfo​(String fileId)
      • downloadFileById

        @Named("b2_download_file_by_id")
        @GET
        @Path("/b2api/v2/b2_download_file_by_id")
        B2Object downloadFileById​(@QueryParam("fileId")
                                  String fileId)
      • downloadFileById

        @Named("b2_download_file_by_id")
        @GET
        @Path("/b2api/v2/b2_download_file_by_id")
        B2Object downloadFileById​(@QueryParam("fileId")
                                  String fileId,
                                  GetOptions options)
      • downloadFileByName

        @Named("b2_download_file_by_name")
        @GET
        @Path("/file/{bucketName}/{fileName}")
        B2Object downloadFileByName​(@PathParam("bucketName")
                                    String bucketName,
                                    @PathParam("fileName")
                                    String fileName)
      • downloadFileByName

        @Named("b2_download_file_by_name")
        @GET
        @Path("/file/{bucketName}/{fileName}")
        B2Object downloadFileByName​(@PathParam("bucketName")
                                    String bucketName,
                                    @PathParam("fileName")
                                    String fileName,
                                    GetOptions options)
      • hideFile

        @Named("b2_hide_file")
        @POST
        @Path("/b2api/v2/b2_hide_file")
        @Consumes("application/json")
        @Produces("application/json")
        HideFileResponse hideFile​(String bucketId,
                                  String fileName)