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

Varying return structures #5

Open
nickescobedo opened this issue Nov 8, 2017 · 1 comment
Open

Varying return structures #5

nickescobedo opened this issue Nov 8, 2017 · 1 comment

Comments

@nickescobedo
Copy link
Collaborator

Calling $api->match()->getByIds([23423423]) (single element) sets content in the response so to get the raw response have to call getContent().

Calling$api->match()->getByIds([23423234, 23423423]) sets a data property in the response so to get the raw response have to call getData();

Is it possible to always use content or always use data?
Is this intentional?

@m1so
Copy link
Owner

m1so commented Nov 10, 2017

Unifying the API sounds like a good idea.

Using multiple ids returns a batch result now, whereas using a single id yields a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants