Skip to content

Commit b45c4ef

Browse files
committed
updated version and readme
1 parent fac150f commit b45c4ef

File tree

2 files changed

+60
-17
lines changed

2 files changed

+60
-17
lines changed

README.md

Lines changed: 59 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -470,16 +470,59 @@ imagekitio.rename_file(
470470
)
471471
```
472472

473-
**8. Delete file**
473+
**8. Delete File**
474+
474475
Delete a file as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-file). The method accepts the file ID of the file that has to be deleted.
475476

476477
```ruby
477478
imagekitio.delete_file(
478479
file_id: '598821f949c0a938d57563bd'
479480
)
480481
```
482+
**9. File versions**
483+
484+
Get all file versions as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/get-file-versions). The method accepts the file ID of the file.
485+
486+
```ruby
487+
imagekitio.file_versions(
488+
file_id: '598821f949c0a938d57563bd'
489+
)
490+
```
491+
**10. File version details**
492+
493+
Get all file version detail as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/get-file-version-details). The method accepts the file ID and version ID of the file.
494+
495+
```ruby
496+
imagekitio.file_version_detail(
497+
file_id: '598821f949c0a938d57563bd',
498+
version_id: '846321f949c0a938d57567ty'
499+
)
500+
```
501+
502+
**11. Delete file version**
503+
504+
Delete file version as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-file-version). The method accepts the file ID and version ID of the file.
505+
506+
```ruby
507+
imagekitio.delete_file_version(
508+
file_id: '598821f949c0a938d57563bd',
509+
version_id: '846321f949c0a938d57567ty'
510+
)
511+
```
512+
513+
**12. Restore file version**
514+
515+
Restore deleted file version as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/restore-file-version). The method accepts the file ID and version ID of the file.
516+
517+
```ruby
518+
imagekitio.restore_file_version(
519+
file_id: '598821f949c0a938d57563bd',
520+
version_id: '846321f949c0a938d57567ty'
521+
)
522+
```
523+
524+
**13. Bulk File Delete by IDs**
481525

482-
**9. Bulk File Delete by IDs**
483526
Delete a file as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-files-bulk). The method accepts a list of file IDs of files that has to be
484527
deleted.
485528

@@ -489,7 +532,7 @@ imagekitio.delete_bulk_files(
489532
)
490533
```
491534

492-
**10. Purge Cache**
535+
**14. Purge Cache**
493536
Programmatically issue a clear cache request as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/purge-cache).
494537
Accepts the full URL of the file for which the cache has to be cleared.
495538

@@ -498,7 +541,7 @@ imagekitio.purge_file_cache(
498541
file_url: 'https://ik.imagekit.io/demo/logo-white_SJwqB4Nfe.png'
499542
)
500543
```
501-
**11. Purge Cache Status**
544+
**15. Purge Cache Status**
502545

503546
Get the purge cache request status using the request ID returned when a purge cache request gets submitted as per the
504547
[API documentation here](https://docs.imagekit.io/api-reference/media-api/purge-cache-status)
@@ -509,7 +552,7 @@ imagekitio.purge_file_cache_status(
509552
)
510553
```
511554

512-
**12. Add Bulk Tags**
555+
**16. Add Bulk Tags**
513556

514557
Add multiple tags on multiple files using an array of file ids and an array of tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/add-tags-bulk)
515558

@@ -520,7 +563,7 @@ imagekitio.add_bulk_tags(
520563
)
521564
```
522565

523-
**13. Delete Bulk Tags**
566+
**17. Delete Bulk Tags**
524567

525568
Remove multiple tags from multiple files using an array of file ids and an array of tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/remove-tags-bulk)
526569

@@ -531,7 +574,7 @@ imagekitio.delete_bulk_tags(
531574
)
532575
```
533576

534-
**14. Delete Bulk Ai Tags**
577+
**18. Delete Bulk Ai Tags**
535578

536579
Delete bulk ai tags as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/remove-aitags-bulk)
537580

@@ -542,7 +585,7 @@ imagekitio.delete_bulk_ai_tags(
542585
)
543586
```
544587

545-
**15. Create Folder**
588+
**19. Create Folder**
546589

547590
Create folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/create-folder)
548591

@@ -554,7 +597,7 @@ imagekitio.create_folder(
554597
```
555598

556599

557-
**16. Copy Folder**
600+
**20. Copy Folder**
558601

559602
Copy folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-folder)
560603

@@ -565,7 +608,7 @@ imagekitio.copy_folder(
565608
)
566609
```
567610

568-
**17. Move Folder**
611+
**21. Move Folder**
569612

570613
Move folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/move-folder)
571614

@@ -576,7 +619,7 @@ imagekitio.move_folder(
576619
)
577620
```
578621

579-
**18. Delete Folder**
622+
**22. Delete Folder**
580623

581624
Delete folder as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-folder)
582625

@@ -586,7 +629,7 @@ imagekitio.delete_folder(
586629
)
587630
```
588631

589-
**19. Bulk Job Status**
632+
**23. Bulk Job Status**
590633

591634
Get the bulk job status as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-move-folder-status)
592635

@@ -596,7 +639,7 @@ imagekitio.bulk_job_status(
596639
)
597640
```
598641

599-
**20. Create Custom Metadata Fields**
642+
**24. Create Custom Metadata Fields**
600643

601644
Create custom metadata fields as per the [API documentation here](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/create-custom-metadata-field)
602645

@@ -613,7 +656,7 @@ imagekitio.create_custom_metadata_field(
613656
)
614657
```
615658

616-
**21. Get Custom Metadata Fields**
659+
**25. Get Custom Metadata Fields**
617660

618661
Get the custom metadata fields as per the [API documentation here](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/get-custom-metadata-field)
619662

@@ -623,7 +666,7 @@ imagekitio.get_custom_metadata_fields(
623666
)
624667
```
625668

626-
**22. Update Custom Metadata Fields**
669+
**26. Update Custom Metadata Fields**
627670

628671
Update custom metadata fields as per the [API documentation here](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/update-custom-metadata-field)
629672

@@ -635,7 +678,7 @@ imagekitio.update_custom_metadata_field(
635678
)
636679
```
637680

638-
**23. Delete Custom Metadata Fields**
681+
**27. Delete Custom Metadata Fields**
639682

640683
Delete custom metadata fields as per the [API documentation here](https://docs.imagekit.io/api-reference/custom-metadata-fields-api/delete-custom-metadata-field)
641684

lib/imagekitio/sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module ImageKitIo
22
module Sdk
3-
VERSION = '2.1.1'
3+
VERSION = '2.2.0'
44
end
55
end

0 commit comments

Comments
 (0)