דוגמאות לספריית הלקוח של Google OAuth עבור Java
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ספריית הלקוח של Google OAuth ל-Java תוכננה לפעול עם כל שירות OAuth באינטרנט, ולא רק עם ממשקי API של Google. עד עכשיו יש לנו רק דוגמה אחת, אבל אנחנו מקווים להוסיף עם הזמן. כמו כן, אנחנו מקבלים תוספות לדוגמאות עבור ממשקי API אחרים, כפי שמתואר במדריך שלנו לתרומת תוכן.
דוגמה לשורת הפקודה OAuth2 של Motion:
כדי לעיין בדוגמאות לכל ממשקי ה-API של Google, אפשר לעיין בדוגמאות של ספריית הלקוח ב-Google API ל-Java.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון 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,["# 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)."]]