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

Get photo #19

Open
AntoineLemaire opened this issue May 7, 2015 · 0 comments
Open

Get photo #19

AntoineLemaire opened this issue May 7, 2015 · 0 comments

Comments

@AntoineLemaire
Copy link
Contributor

Try to get photo from UserAPI

$response = $this->client->get(
    sprintf('/v2/user/%s/photo/%s', $userId, $size)
);

https://api.hipchat.com/v2/user/@MyName/photo/small

Get HTTP/1.1 400 Bad Request

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Code>InvalidArgument</Code>
    <Message>Unsupported Authorization Type</Message>
    <ArgumentName>Authorization</ArgumentName>
    <ArgumentValue>Bearer FxxxxxxxxxxxxxxxxxxxxxxxTE0</ArgumentValue>
    <RequestId>3F1B465075D3B6E3</RequestId>
    <HostId>DjrScqVdt4WUjyUEvaay3gHhvVO/UZ1efxb6WHrqz2ZkWNFBkLkFGKs3vktPjV5j</HostId>
</Error>

(Bearer value is exactly the same as my others requests who succeed)

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