自建应用获取 tenant_access_token 的封装获取数据为null
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java
- Domain
- api, authentication
Research direction
Start with InternalTenantAccessTokenResp and the client.auth().v3().tenantAccessToken().internal(req) entry point, then compare its handling with the documented JSON response. Verify the behavior against versions 2.8.1–2.8.5 and ensure the returned tenant_access_token can be retrieved through the response API rather than requiring a nonexistent data field.
Written by the indexing model from the issue text.
Description
InternalTenantAccessTokenResp resp = client.auth().v3().tenantAccessToken().internal(req);
resp.getData()
{
"app_access_token": "xxxxxxx",
"code": 0,
"expire": 114514,
"msg": "ok",
"tenant_access_token": "xxxxxx"
}
官方示例的代码返回的data都是null,测试了2.8.1~2.8.5均无法获得有效数据,不过这个接口返回的确实没有data,那你倒是得给我个方法拿出来token吧
- Dominant language
- Java
- Stars
- 311
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from larksuite/oapi-sdk-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
larksuite/oapi-sdk-java#196 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
larksuite/oapi-sdk-java#191 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
larksuite/oapi-sdk-java#149 ·
-
接口响应类型错误Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
larksuite/oapi-sdk-java#79 ·
-
什么时候能加入云文档的"修订"功能Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
larksuite/oapi-sdk-java#195 ·
All issues in larksuite/oapi-sdk-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
aoqia194/leaf-loader#19 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/streampark#4521 ·
-
Update license yearOpen0 - Backlog 1 - Ready documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
cbor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
FasterXML/jackson-dataformats-binary#844 ·
Maintainers usually reply within 1 day