-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support Promise-based operations in addition to callbacks #4
Comments
I don't know if it helps but here I have two ways of implementing an endpoint to be used with https://shields.io/endpoint. A big thanks to @ilyazub for helping me with that. Certainly a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now only callbacks are supported for
SerpApiSearch#json
.The workaround is to promisify functions, but out-of-the-box support would be great. Test with the workaround here.
PS. Node.js HTTPS module is used to send requests.
got
has a simpler API and the response stream is handled by the library.google-search-results-nodejs/lib/SerpApiSearch.js
Lines 72 to 95 in cbadec5
The text was updated successfully, but these errors were encountered: