Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Make it possible to retrieve billing period for usage #21

Closed
sypets opened this issue Mar 3, 2023 · 1 comment
Closed
Labels
api change Requires changes to the DeepL API enhancement New feature or request

Comments

@sypets
Copy link

sypets commented Mar 3, 2023

This probably requires an API change as well.

I would like to know to what time frame the "usage" applies to. I have count used and a limit (for characters, document and team documents). I assume it applies to current billing period, which is in our case monthly but the start of the time interval may vary (for example in our case it is February 26, 2023 - March 25, 2023). So you cannot assume the month starts with day 1, e.g. February 1.

For example this is the output I would like to display:

characters:
20% used (February 26, 2023 - March 25, 2023)

I can use the timeframe as fixed string in my case, but if people want to supply further PHP packages based on this API for public use, it would be helpful to be able to read this from the API.

My wish would be to extend the Usage information fetched from the DeepL API and Usage class in deepl-php.

https://www.deepl.com/docs-api/general/get-usage/

@seekuehe seekuehe added enhancement New feature or request api change Requires changes to the DeepL API labels Apr 17, 2023
@JanEbbing
Copy link
Member

Hi, I checked internally and this is currently not planned as it's blocked by another project. I agree that we should expose this information however, and we will revisit this once the other project is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api change Requires changes to the DeepL API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants