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

快速开始 #837

Open
UCloudDocs opened this issue Oct 29, 2024 · 1 comment
Open

快速开始 #837

UCloudDocs opened this issue Oct 29, 2024 · 1 comment

Comments

@UCloudDocs
Copy link
Collaborator

快速开始

查看产品文档请点击下方链接

https://docs.ucloud.cn/api/summary/public

Copy link

public static void main(String[] args) throws Exception {
        Map<String, String> params = new HashMap<>();
        params.put("Action", "DescribeUHostInstance");
        params.put("Region", "cn-bj2");
        params.put("Limit", "10");

        String publicKey = "[email protected]";
        String privateKey = "46f09bb9fab4f12dfc160dae12273d5332b5debe";
        params.put("PublicKey", publicKey);
        String signature = generateSignature(params, privateKey);

        params.put("Signature", signature);
        System.out.println(HttpClientUtil.sendPost(API_ENDPOINT, params,null));
        System.out.println("Signature: " + signature);
    }

这个签名和示例是一致的,请求不通

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

2 participants