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

Define api response type instead of array to access response and body easily #733

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Mar 4, 2024

[response, body] -> {httpResponse, body}

@Yang-33 Yang-33 linked an issue Mar 4, 2024 that may be closed by this pull request
@Yang-33 Yang-33 merged commit 2e59cad into master Mar 4, 2024
5 checks passed
@Yang-33 Yang-33 deleted the modify-response-type branch March 4, 2024 06:47
Yang-33 added a commit that referenced this pull request Mar 4, 2024
This pull request updates the README and example projects to include
detailed instructions on how to retrieve headers and HTTP status codes
from API responses. Additionally, it outlines methods for capturing HTTP
status codes, headers, and error details when an error occurs. These
enhancements aim to improve the developer's understanding and handling
of API interactions and error management within the line-bot-sdk-nodejs.

(this depends on #733)
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

Successfully merging this pull request may close these issues.

Use fetch() function instead of axios
2 participants