البدء
يتم استهلاك Google APIs من مشاريع Google Cloud. يستعرض هذا الدليل
عملية إنشاء مشروع على Google Cloud، ما يتيح استخدام OR API
والحصول على مفتاح واجهة برمجة التطبيقات لاستدعاء نقاط نهاية واجهة برمجة التطبيقات.
إنشاء مشروع على Google Cloud
باستخدام حساب مستضاف على Google
إنشاء
مشروع في Google Cloud Console. إذا كانت أداة الحلّ التي تريد استخدامها
ضمن برنامج مختبِر موثوق به، اتبع
الدليل أولاً.
تفعيل واجهة برمجة التطبيقات
الحصول على مفتاح واجهة برمجة التطبيقات
الانتقال إلى
بيانات الاعتماد
القائمة.
انقر على "+ إنشاء بيانات الاعتماد".
اختيار مفتاح واجهة برمجة التطبيقات
حفظ مفتاح واجهة برمجة التطبيقات في ملف credentials.json
يتضمّن النص التالي
{
"key": "your_api_key"
}
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-29 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-29 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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."]]],[]]