uploadcare / uploadcare-ruby

Ruby API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
https://uploadcare.com
MIT License
39 stars 28 forks source link

Proposal: add #files and #groups methods to Uploadcare::Api #39

Closed vizvamitra closed 2 years ago

vizvamitra commented 7 years ago

Currently the only two options of using the GET /files//GET /groups/ API endpoints are:

My proposal is to add two methods: api.files(options) and api.groups(options) that both will return raw API responces but perform same validations as api.file_list/api.group_list does and encapsulate the endpoint URLs

This will provide users with a convinient alternative to api.get("/files/"). Оffcource they will still have to use api.get(response['next']) in order to fetch next pages.