अनुरोधों को अनुमति देना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
आपका ऐप्लिकेशन, Google एएमपी यूआरएल एपीआई को जो भी अनुरोध भेजता है
उससे Google को आपके ऐप्लिकेशन की पहचान करनी पड़ती है.
ऐप्लिकेशन और एपीआई कुंजी का इस्तेमाल करके, अपने ऐप्लिकेशन की पहचान करें.
एपीआई कुंजी पाना और उसका इस्तेमाल करना
एपीआई कुंजी
को सार्वजनिक डेटा के लिए Google एएमपी यूआरएल एपीआई के अनुरोधों के साथ होना चाहिए.
एपीआई कुंजी से आपके प्रोजेक्ट की पहचान होती है. इसमें एपीआई का ऐक्सेस, कोटा, और रिपोर्ट शामिल हैं.
एपीआई कुंजी पाने के लिए, यह तरीका अपनाएं:
- क्रेडेंशियल पेज खोलें.
- सर्वर कुंजी बनाएं और उसका इस्तेमाल करें.
इस कुंजी का इस्तेमाल अपने सर्वर कोड के बाहर न करें.
उदाहरण के लिए, इसे किसी वेब पेज में एम्बेड न करें.
कोटा चोरी से बचने के लिए,
अपनी कुंजी को सीमित करें, ताकि
अनुरोधों को सिर्फ़ आपके सर्वर और सोर्स आईपी पतों से अनुमति मिले.
अपनी एपीआई कुंजियों को सुरक्षित रखने के लिए, एपीआई कुंजियों का सुरक्षित तरीके से इस्तेमाल करने के सबसे सही तरीके अपनाएं.
एपीआई कुंजी मिलने के बाद,
आपका ऐप्लिकेशन सभी यूआरएल के लिए, क्वेरी पैरामीटर
key=yourAPIKey
जोड़ सकता है.
एपीआई कुंजी को यूआरएल में एम्बेड करना सुरक्षित है; इसे कोड में बदलने की ज़रूरत नहीं होती है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-08-30 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2023-08-30 (UTC) को अपडेट किया गया."],[[["Every request sent to the Google AMP URL API must identify your application using an API key."],["Obtain an API key through the Google Developers Console, specifically a Server key, and restrict its usage to your server's IP addresses for security."],["Include your API key in all request URLs as a query parameter (`key=yourAPIKey`), which is safe for embedding without encoding."]]],["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"]]