অনুরোধ অনুমোদন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনার অ্যাপ্লিকেশানটি Google এএমপি URL API-এ পাঠানো প্রতিটি অনুরোধ Google-এ আপনার অ্যাপ্লিকেশন সনাক্ত করতে হবে। অ্যাপ্লিকেশনের API কী ব্যবহার করে আপনার অ্যাপ্লিকেশন সনাক্ত করুন৷
একটি API কী অর্জন করুন এবং ব্যবহার করুন
একটি API কী সর্বজনীন ডেটার জন্য Google AMP URL API-এর অনুরোধের সাথে থাকা আবশ্যক৷
API কী আপনার প্রজেক্টকে শনাক্ত করে এবং API অ্যাক্সেস, কোটা এবং রিপোর্ট প্রদান করে। একটি API কী অর্জন করতে, নিম্নলিখিতগুলি করুন:
- শংসাপত্র পৃষ্ঠা খুলুন.
- একটি সার্ভার কী তৈরি করুন এবং ব্যবহার করুন। আপনার সার্ভার কোডের বাইরে এই কী ব্যবহার করবেন না। উদাহরণস্বরূপ, এটি একটি ওয়েব পৃষ্ঠায় এম্বেড করবেন না। কোটা চুরি রোধ করতে, আপনার কী সীমাবদ্ধ করুন যাতে অনুরোধগুলি শুধুমাত্র আপনার সার্ভারের উৎস আইপি ঠিকানা থেকে অনুমোদিত হয়।
আপনার API কীগুলি সুরক্ষিত রাখতে, নিরাপদে API কীগুলি ব্যবহার করার জন্য সর্বোত্তম অনুশীলনগুলি অনুসরণ করুন৷
আপনার কাছে একটি API কী থাকার পরে, আপনার অ্যাপ্লিকেশনটি সমস্ত অনুরোধের URL-এ ক্যোয়ারী প্যারামিটার key= yourAPIKey
যোগ করতে পারে।
API কী ইউআরএল-এ এম্বেড করার জন্য নিরাপদ; এটা কোন এনকোডিং প্রয়োজন নেই.
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2023-08-30 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2023-08-30 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eEvery request sent to the Google AMP URL API must identify your application using an API key.\u003c/p\u003e\n"],["\u003cp\u003eObtain an API key through the Google Developers Console, specifically a Server key, and restrict its usage to your server's IP addresses for security.\u003c/p\u003e\n"],["\u003cp\u003eInclude your API key in all request URLs as a query parameter (\u003ccode\u003ekey=yourAPIKey\u003c/code\u003e), which is safe for embedding without encoding.\u003c/p\u003e\n"]]],["To interact with the Google AMP URL API, obtain an API key from the Credentials page. Create a Server key and restrict it to your server's IP addresses for security. Append the `key=`yourAPIKey parameter to all request URLs. This key identifies your project, grants API access, and provides quota and reports. Do not embed the key outside of server code, as it's designed for server-side use. Refer to the linked best practices for securely managing your API key.\n"],null,["# Authorize Requests\n\nEvery request your application sends\nto the Google AMP URL API needs\nto identify your application to Google.\nIdentify your application using the application's\n[API key](https://developers.google.com/console/help/generating-dev-keys).\n\nAcquire and use an API key\n--------------------------\n\nAn [API key](https://developers.google.com/console/help/generating-dev-keys)\nmust accompany requests to the Google AMP URL API for public data.\n\nThe API key identifies your project and provides API access, quota, and reports.\nTo acquire an API key, do the following:\n\n1. Open the [Credentials page](https://console.developers.google.com/apis/credentials?project=_).\n2. Create and use a **Server key**. Do not use this key outside of your server code. For example, do not embed it in a web page. To prevent quota theft, restrict your key so that requests are only allowed from your servers' source IP addresses.\n\nTo keep your API keys secure, follow the\n[best practices for securely using\nAPI keys](https://developers.google.com/console/help/api-key-best-practices).\n\nAfter you have an API key,\nyour application can append the query parameter\n`key=`yourAPIKey\nto all request URLs.\n\nThe API key is safe for embedding in URLs; it doesn't need any encoding."]]