Beispiele für die Google OAuth-Clientbibliothek für Java
Mit Sammlungen den Überblick behalten Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Die Google OAuth-Clientbibliothek für Java funktioniert mit jedem OAuth-Dienst im Web, nicht nur mit Google APIs. Bisher haben wir nur eine Stichprobe, aber wir hoffen, im Laufe der Zeit weitere hinzuzufügen. Wir freuen uns auch über Beiträge für Beispiele für andere APIs, wie in unserem Leitfaden für Beitragende beschrieben.
Beispiel für die Befehlszeile von Daily Motion OAuth2:
Beispiele für alle Google APIs finden Sie in den Beispielen für die Google API-Clientbibliothek für Java.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\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,["The 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)."]]