如何在华为中为任何套件获取或创建我的应用程序级客户端 ID?

发布于 2025-01-14 22:58:05 字数 83 浏览 4 评论 0原文

我希望开发一个应用程序并需要在AppGallery中发布。华为的客户端 ID 是什么?如何在华为获取或创建我的应用程序级客户端 ID? 我期待您的帮助。

I wish to develop an application and need to release in AppGallery. What is client id in Huawei, and How can I get or create my app level client id in Huawei?
I am looking forward your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

放手` 2025-01-21 22:58:06

您可以在华为开发者联盟API控制台创建OAuth 2.0客户端ID,使用该客户端ID为您的应用集成Account Kit,生成访问令牌,并调用华为公共API访问用户授权的资源。

如果您已经生成了客户端ID(例如手机、智慧屏应用的客户端ID),则无需执行本节的任何操作,即可使用该客户端ID实现多场景集成。
例如,如果John(开发者)为其移动应用程序获取了APPID-1(客户端ID),并且已经集成了Account Kit,则他可以直接在他的新Web应用程序中使用此ID来完成Account Kit的集成。

如果您在 AppGallery Connect 中创建应用,请将 client_id 和 client_secret 设置为创建应用后获取的 Client ID 和 Client Secret。

输入图片此处描述

You can create an OAuth 2.0 client ID on the API console of HUAWEI Developers, use the client ID to integrate Account Kit for your app, generate an access token, and call Huawei public APIs to access resources authorized by users.

If you have generated a client ID (for example, a client ID for a phone or smart display app), you can use the client ID to implement integration in multiple scenarios without performing any operation in this section.
For example, if John (a developer) has obtained APPID-1 (a client ID) for his mobile app and already has Account Kit integrated, he can directly use this ID for his new web app to complete the integration of Account Kit.

If you create an app in AppGallery Connect , set client_id and client_secret to the client ID and client secret that you get after the app is created.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文