larksuite / larksuite/oapi-sdk-java

关于POST 请求url上 被动加上/open-apis 问题

Open
#47 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
310
Forks
115
PR merge metrics
No merged PRs in 30d

Description

// 构建请求
Request<Map<String, Object>, Map<String, Object>> request = Request.newRequest("approval/openapi/v2/approval/get",
"POST", AccessTokenType.Tenant, body, new HashMap<>());
的时候 最终url 会变成 https://open.feishu.cn/open-apis/approval/openapi/v2/approval/get
而正确的请求是https://www.feishu.cn/approval/openapi/v2/approval/get
请问现在该怎么支持审批这块呢

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Request.newRequest call shown in the issue and trace how the request URL is assembled, especially where /open-apis is added. Verify whether the base path can be configured for approval/openapi/v2/approval/get. Done means the POST request can target https://www.feishu.cn/approval/openapi/v2/approval/get without the unwanted prefix; no file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.