Q&A
Not able to access LINE APIs like getFriends, getGroups, getApprovers in Group after LOGIN to LINE SDK in Swift iOS and generating access token.
Pre condition, Condition to reproduce
I have created a POC on LINE LOGIN SDK in iOS Swift. I am using starter App mentioned below. https://github.com/line/line-sdk-ios-swift I am able to Login using this POC. and I am getting the access Token successfully.
Issue/ Error Message details
When I try to Click on GetFriends, GetGroups. It gives me below error.
Accompanying respective source code
responseFailed(reason: LineSDK.LineSDKError.ResponseErrorReason.invalidHTTPStatusAPIError(detail: LineSDK.LineSDKError.ResponseErrorReason.APIErrorDetail(code: 403, error: Optional(LineSDK.APIError(error: "Unlicensed API Request", detail: nil)), raw: <NSHTTPURLResponse: 0x600001fec5a0> { URL: https://api.line.me/graph/v2/friends } { Status Code: 403, Headers {
"Cache-Control" = (
"max-age=0, no-cache, no-store"
);
"Content-Length" = (
36
);
"Content-Type" = (
"application/json;charset=UTF-8"
);
Date = (
"Wed, 18 Aug 2021 05:37:55 GMT"
);
Expires = (
"Wed, 18 Aug 2021 05:37:55 GMT"
);
Pragma = (
"no-cache"
);
Server = (
openresty
);
"x-content-type-options" = (
nosniff
);
"x-frame-options" = (
DENY
);
"x-xss-protection" = (
"1; mode=block"
);
} }, rawString: Optional("{\"message\":\"Unlicensed API Request\"}"))))
Resolution Tried
I tried other APIs like getApprovers in friends , open chat that are also returning similar error.
Reference information (Version / Platform/ environment)
関連する質問
関連する質問はありません