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

Return headers if $response->Body() is null #35

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Return headers if $response->Body() is null #35

wants to merge 7 commits into from

Conversation

samoritano
Copy link

No description provided.

> Linkedin does give response but it's in the header not body. We should parse the response correctly.

Hi, I'm facing the same error. I think the problem is that the current responseToArray method are prepared to parse the body, but this api call, has no body in the response, it just has a new header with the ucgPost Id, as @soisme told.

I've done a little change in the method, so we can return the headers, but I'm not sure if this change could break any other api call, because I just started to use this package.
Return headers if $response->Body() is null
Add new Refresh Token Fields to AccesToken Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants