Skip to content

Commit 8e6412f

Browse files
authored
Merge pull request #21 from VishwaGhodasara/patch-2
Update README.md
2 parents de49046 + c86c0ad commit 8e6412f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ System.out.println(result.getResponseMetaData().getMap());
538538

539539
**6. Add tags**
540540

541-
Accepts the file IDs and tags and add tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/add-tags-bulk)
541+
Accepts an object of class `TagsRequest` specifying the parameters to be used to add tags. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/add-tags-bulk) can be passed via their setter functions to get the results.
542542

543543
```java
544544
List<String> fileIds = new ArrayList<>();
@@ -557,7 +557,7 @@ System.out.println(resultTags.getResponseMetaData().getMap());
557557

558558
**7. Remove tags**
559559

560-
Accepts the file IDs and tags to remove tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/remove-tags-bulk)
560+
Accepts an object of class `TagsRequest` specifying the parameters to be used to remove tags. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/remove-tags-bulk) can be passed via their setter functions to get the results.
561561

562562
```java
563563
List<String> fileIds = new ArrayList<>();
@@ -576,7 +576,7 @@ System.out.println(resultTags.getResponseMetaData().getMap());
576576

577577
**8. Remove AI tags**
578578

579-
Accepts the file IDs and AI tags to remove AI tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/remove-aitags-bulk)
579+
Accepts an object of class `AITagsRequest` specifying the parameters to be used to remove AI tags. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/remove-aitags-bulk) can be passed via their setter functions to get the results.
580580

581581
```java
582582
List<String> fileIds = new ArrayList<>();
@@ -612,7 +612,7 @@ System.out.println(result.getResponseMetaData().getMap());
612612

613613
**10. Delete FileVersion**
614614

615-
Accepts the file ID and version ID (particular version of the file except current version) to delete a FileVersion as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-file-version).
615+
Accepts an object of class `DeleteFileVersionRequest` specifying the parameters to be used to delete file version. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/delete-file-version) can be passed via their setter functions to get the results.
616616

617617
```java
618618
DeleteFileVersionRequest deleteFileVersionRequest = new DeleteFileVersionRequest();
@@ -648,7 +648,7 @@ System.out.println(result.getResponseMetaData().getMap());
648648

649649
**12. Copy file**
650650

651-
Accepts the sourceFilePath and destinationPath to copy the File as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-file).
651+
Accepts an object of class `CopyFileRequest` specifying the parameters to be used to copy file. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/copy-file) can be passed via their setter functions to get the results.
652652

653653
```java
654654
CopyFileRequest copyFileRequest = new CopyFileRequest();
@@ -666,7 +666,7 @@ System.out.println(resultNoContent.getResponseMetaData().getMap());
666666

667667
**13. Move file**
668668

669-
Accepts the sourceFilePath and destinationPath to move the File as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/move-file).
669+
Accepts an object of class `MoveFileRequest` specifying the parameters to be used to move file. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/move-file) can be passed via their setter functions to get the results.
670670

671671
```java
672672
MoveFileRequest moveFileRequest = new MoveFileRequest();
@@ -683,7 +683,7 @@ System.out.println(resultNoContent.getResponseMetaData().getMap());
683683

684684
**14. Rename file**
685685

686-
Accepts the filePath and newFileName to rename file as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/rename-file).
686+
Accepts an object of class `RenameFileRequest` specifying the parameters to be used to rename file. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/rename-file) can be passed via their setter functions to get the results.
687687

688688
```java
689689
RenameFileRequest renameFileRequest = new RenameFileRequest();
@@ -715,7 +715,7 @@ System.out.println(result.getResponseMetaData().getMap());
715715

716716
**16. Create Folder**
717717

718-
Accepts the folderName and parentFolderPath to cretae folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/create-folder).
718+
Accepts an object of class `CreateFolderRequest` specifying the parameters to be used to create folder. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/create-folder) can be passed via their setter functions to get the results.
719719

720720
```java
721721
CreateFolderRequest createFolderRequest = new CreateFolderRequest();
@@ -732,7 +732,7 @@ System.out.println(resultEmptyBlock.getResponseMetaData().getMap());
732732

733733
**17. Delete Folder**
734734

735-
Accepts the folderPath to delete folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-folder).
735+
Accepts an object of class `DeleteFolderRequest` specifying the parameters to be used to delete folder. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/delete-folder) can be passed via their setter functions to get the results.
736736

737737
```java
738738
DeleteFolderRequest deleteFolderRequest = new DeleteFolderRequest();
@@ -748,7 +748,7 @@ System.out.println(resultNoContent.getResponseMetaData().getMap());
748748

749749
**18. Copy Folder**
750750

751-
Accepts the sourceFolderPath, destinationPath and includeFileVersions to copy folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-folder).
751+
Accepts an object of class `CopyFolderRequest` specifying the parameters to be used to copy folder. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/copy-folder) can be passed via their setter functions to get the results.
752752

753753
```java
754754
CopyFolderRequest copyFolderRequest = new CopyFolderRequest();
@@ -765,7 +765,7 @@ System.out.println(resultOfFolderActions.getResponseMetaData().getMap());
765765

766766
**19. Move Folder**
767767

768-
Accepts the sourceFolderPath and destinationPath to move folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/move-folder).
768+
Accepts an object of class `MoveFolderRequest` specifying the parameters to be used to move folder. All parameters specified in the [documentation here](https://docs.imagekit.io/api-reference/media-api/move-folder) can be passed via their setter functions to get the results.
769769

770770
```java
771771
MoveFolderRequest moveFolderRequest = new MoveFolderRequest();

0 commit comments

Comments
 (0)