אני רוצה לנסות
ממשקי Google API משתמשים מפרויקטים ב-Google Cloud. במדריך הזה מוסבר
התהליך של יצירת פרויקט ב-Google Cloud, הפעלת OR API
ולקבל מפתח API כדי לקרוא לנקודות הקצה ל-API.
יצירת פרויקט של Google Cloud
באמצעות חשבון שמתארח ב-Google,
יצירה
פרויקט במסוף Google Cloud. אם הפותר שבו אתם מתכוונים להשתמש הוא
בתוכנית של בודקים נאמנים, צריך לפעול לפי
guide קודם.
הפעלת ה-API
קבלת מפתח API
עוברים אל
פרטי כניסה
תפריט
לוחצים על '+ יצירת קהלים'
בחירת מפתח API
שומרים את מפתח ה-API בקובץ credentials.json
עם הגוף הבא
{
"key": "your_api_key"
}
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-29 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-29 (שעון UTC)."],[[["Google Cloud projects are necessary to utilize Google APIs, and this guide outlines the setup process for accessing the Optimization Routing API (OR API)."],["The process involves three main steps: creating a Google Cloud project, enabling the OR API within the project, and generating an API key for authentication."],["Before proceeding, ensure you have a Google account, and if utilizing a solver under a trusted tester program, refer to the provided guide for specific instructions."],["Once enabled, you'll need to obtain an API key through the Google Cloud console and securely store it in a 'credentials.json' file for API access."]]],[]]