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

Make it easier to use parameters in the API calls #1218

Closed
nbartels opened this issue May 24, 2022 · 0 comments
Closed

Make it easier to use parameters in the API calls #1218

nbartels opened this issue May 24, 2022 · 0 comments
Assignees
Milestone

Comments

@nbartels
Copy link
Contributor

To make correct API calls we need sometimes query parameters to explain Meta what you really need. For example do you need the metadata, a special locale or some more/less fields.

Therefore we add some factory methods to our Parameter class to make this easier. Improve the code readability and beautiful.

For now 3 methods should be added:

  • Parameter.withMetadata() to add the metadata
  • Parameter.withFields(String fields) to define the returned fields
  • Parameter.withLocale(Locale locale) to define the language of the returned data
@nbartels nbartels added this to the 2022.6.0 milestone May 24, 2022
@nbartels nbartels self-assigned this May 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant