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: Expose more data returned in the jsonp request? #3

Open
QzSG opened this issue Nov 25, 2016 · 1 comment
Open

Feature request: Expose more data returned in the jsonp request? #3

QzSG opened this issue Nov 25, 2016 · 1 comment
Assignees

Comments

@QzSG
Copy link

QzSG commented Nov 25, 2016

For example searching for "Disney Ufufy" returns

AmazonAutocomplete.AmazonJSONPCallbackHandler_1(["disney ufufy",["disney ufufy"],[{"nodes":[{"name":"Toys & Games","alias":"toys-and-games"}]}],[],"22QXE08TSOQAD"]);

I guess the nodes name and alias would be useful to some (since the request is already made, why waste the data, do you have any idea whats the last field though?)

@caroso1222 caroso1222 self-assigned this Nov 26, 2016
@caroso1222
Copy link
Owner

That's a good idea. I didn't expose all the data because I wanted to keep it simple by just returning the words. I can expose another event in the API with all these data, or use the existing onNewWords event with additional arguments (trying to avoid modifying the existing API to keep it backwards compatible).

I don't actually know what's that last field mean. I thought it was the root browse node ID but it doesn't match (take a look here).

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

No branches or pull requests

2 participants