Cannot get profile picture with users/me/photo api

rahmat-upbond

2022.12.01既読 664

Hello, i want to get user profile picture using this API GET https://www.worksapis.com/v1.0/users/me/photo, and the return of the API is

{
"code": "UNAUTHORIZED",
"description": "Authentication failed."
}
i have provided Bearer Token on header and trying other API like POST and DELETE https://www.worksapis.com/v1.0/users/me/photo and its success, but not for GET API. user and directory scope are enabled.
Thank you

コメント2

  • 업데이트 된 답글입니다.

    佐藤正宗

    これ、Redirectするので、たぶんFollow Authorization headerの設定してないからだと思いますよ。
    Postmanだとこんな設定があります。

    2022.12.02

    1
  • 업데이트 된 답글입니다.

    rahmat-upbond 投稿者

    It Works thank youuu

    2022.12.03

    0
前の投稿 Malformed Authorization header, Token is null string が発生する
次の投稿2段階認証を有効にした場合のAPIやBot利用への影響
リスト

まだ、解決できませんか?
今すぐ実際に使用しているLINE WORKSユーザーに質問してみましょう。