适用于 Java 的 Google OAuth 客户端库示例
使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。
适用于 Java 的 Google OAuth 客户端库旨在与网络上的任何 OAuth 服务搭配使用,而不仅仅是与 Google API 结合使用。到目前为止,我们只有一个示例,但我们希望以后添加更多示例。我们也欢迎您为其他 API 的示例贡献代码,正如我们成为贡献者的指南中所述。
Daily Motion OAuth2 命令行示例:
如需浏览所有 Google API 的示例,请参阅 Java 版 Google API 客户端库示例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe Google OAuth Client Library for Java can be used with any OAuth service, not just Google APIs.\u003c/p\u003e\n"],["\u003cp\u003eCurrently, there is a sample for Daily Motion OAuth2, with instructions and source code provided.\u003c/p\u003e\n"],["\u003cp\u003eGoogle welcomes contributions for samples of other APIs.\u003c/p\u003e\n"],["\u003cp\u003eUsers can find samples for all Google APIs in the Google API Client Library for Java.\u003c/p\u003e\n"]]],[],null,["# Samples for the Google OAuth Client Library for Java\n\nThe Google OAuth Client Library for Java is designed to work with any OAuth\nservice on the web, not just with Google APIs. So far we only have one sample, but\nwe hope to add more over time. We also welcome contributions for samples for other\nAPIs, as described in our guide to\n[becoming a contributor](/api-client-library/java/google-oauth-java-client/contribute).\n\nDaily Motion OAuth2 command-line sample:\n\n- [Instructions for dailymotion-cmdline-sample](http://htmlpreview.github.io/?https://github.com/google/google-oauth-java-client/blob/master/samples/dailymotion-cmdline-sample/instructions.html)\n- [Source for dailymotion-cmdline-sample](https://github.com/google/google-oauth-java-client/tree/master/samples/dailymotion-cmdline-sample)\n\nTo browse samples for all Google APIs, see the\n[samples for the Google API Client Library for Java](/api-client-library/java/google-api-java-client/samples)."]]