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

Can't get only the HTTP response code on consuming REST API #146

Open
glaubergad opened this issue Apr 28, 2020 · 0 comments
Open

Can't get only the HTTP response code on consuming REST API #146

glaubergad opened this issue Apr 28, 2020 · 0 comments

Comments

@glaubergad
Copy link

Can't understand.
How can I access response->code to obtain only the code INT of the response? When I try to get it, it comes along with all the response variables.

$response = Unirest\Request::get($url, $header);

If I try to get $response->code, it comes with everything the API returned body.

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

1 participant