Google Workspace API चालू करें

Google API का इस्तेमाल करने से पहले, आपको उन्हें Google Cloud प्रोजेक्ट में चालू करना होगा. एक ही Google Cloud प्रोजेक्ट में, एक या उससे ज़्यादा एपीआई चालू किए जा सकते हैं. अगर आपके पास पहले से कोई Google Cloud प्रोजेक्ट नहीं है, तो Cloud प्रोजेक्ट बनाएं लेख पढ़ें.

अपने Cloud प्रोजेक्ट में किसी एपीआई को चालू करने के लिए:

Google Cloud कंसोल

  1. Google Cloud Console में, मेन्यू > ज़्यादा प्रॉडक्ट > Google Workspace > प्रॉडक्ट लाइब्रेरी पर जाएं.

    प्रॉडक्ट लाइब्रेरी पर जाएं

  2. उस एपीआई पर क्लिक करें जिसे चालू करना है.
  3. चालू करें पर क्लिक करें.
  4. ज़्यादा एपीआई चालू करने के लिए, यह तरीका दोहराएं.

Google Cloud सीएलआई

  1. Google Cloud Command Line Interface (CLI) इंस्टॉल करें या खोलें.
  2. services enable कमांड चलाएं और बताएं कि कौनसी एपीआई सेवा चालू करनी है.

    gcloud services enable API_SERVICE_ID

(ज़रूरी नहीं) एक्सपेरिमेंट के तौर पर उपलब्ध ऐप्लिकेशन में Google Workspace API आज़माएं

अगर Google Workspace का इस्तेमाल किया जा रहा है, तो यहां दिया गया शॉर्टकट इस्तेमाल करें. इससे Google Workspace के लोकप्रिय एपीआई चालू हो जाते हैं. साथ ही, OAuth क्रेडेंशियल बन जाते हैं, जिनका इस्तेमाल किया जा सकता है.

अगर आपको ऐसा ऐप्लिकेशन डेवलप करना है जो उपयोगकर्ताओं की जानकारी ऐक्सेस करता है, तो आपको ऐप्लिकेशन रिलीज़ करने से पहले, OAuth की सहमति स्क्रीन को कॉन्फ़िगर करना होगा.

Google Cloud प्रोजेक्ट चुनने या बनाने के लिए, इस बटन पर क्लिक करें. इससे Workspace API अपने-आप चालू हो जाएंगे:

Workspace API चालू करना

इसके बाद दिखने वाले डायलॉग में, क्लाइंट कॉन्फ़िगरेशन डाउनलोड करें पर क्लिक करें और credentials.json को अपनी वर्किंग डायरेक्ट्री में सेव करें.

उपलब्ध सभी एपीआई की पूरी सूची देखने के लिए, Google Workspace APIs एक्सप्लोरर देखें. साथ ही, अपने ब्राउज़र से कुछ तरीकों को आज़माएं.

चालू किए गए एपीआई (ज़्यादा जानकारी देखने के लिए क्लिक करें)

इस बटन से ये एपीआई चालू होते हैं:

  • Admin SDK API
  • Apps Script API
  • Calendar API
  • Chat API
  • Classroom API
  • Docs API
  • डिस्क API
  • Forms API
  • Gmail API
  • Google Workspace Add-ons API
  • Google Keep API
  • Meet REST API
  • Sheets API
  • Slides API

Google Workspace APIs

अपने Cloud प्रोजेक्ट में Google Workspace के कुछ एपीआई चालू करने के लिए, Google Cloud Console के इन लिंक का इस्तेमाल करें या Google Cloud Command Line Interface (CLI) का इस्तेमाल करें.

Admin SDK API चालू करें
gcloud services enable admin.googleapis.com
Alert Center API चालू करें
gcloud services enable alertcenter.googleapis.com
Apps Script API चालू करें
gcloud services enable script.googleapis.com
CalDAV API चालू करें
gcloud services enable caldav.googleapis.com
Calendar API चालू करें
gcloud services enable calendar-json.googleapis.com
Chat API चालू करें
gcloud services enable chat.googleapis.com
Classroom API चालू करें
gcloud services enable classroom.googleapis.com
Cloud Identity API चालू करें
gcloud services enable cloudidentity.googleapis.com
Cloud Search API चालू करें
gcloud services enable cloudsearch.googleapis.com
Docs API चालू करें
gcloud services enable docs.googleapis.com
Drive API चालू करें
gcloud services enable drive.googleapis.com
Drive Activity API चालू करें
gcloud services enable driveactivity.googleapis.com
Drive Labels API चालू करें
gcloud services enable drivelabels.googleapis.com
Forms API चालू करें
gcloud services enable forms.googleapis.com
Gmail API चालू करें
gcloud services enable gmail.googleapis.com
Groups Migration API चालू करें
gcloud services enable groupsmigration.googleapis.com
Groups Settings API चालू करना
gcloud services enable groupssettings.googleapis.com
Google Workspace Add-ons API चालू करें
gcloud services enable gsuiteaddons.googleapis.com
Google Keep API चालू करें
gcloud services enable keep.googleapis.com
Enterprise License Manager API चालू करें
gcloud services enable licensing.googleapis.com
Marketplace API चालू करें
gcloud services enable appsmarket.googleapis.com
Marketplace SDK टूल चालू करना
gcloud services enable appsmarket-component.googleapis.com
Meet REST API चालू करें
gcloud services enable meet.googleapis.com
People API चालू करें
gcloud services enable people.googleapis.com
Postmaster Tools API चालू करना
gcloud services enable gmailpostmastertools.googleapis.com
Reseller API चालू करें
gcloud services enable reseller.googleapis.com
Sheets API चालू करें
gcloud services enable sheets.googleapis.com
Slides API चालू करें
gcloud services enable slides.googleapis.com
Tasks API चालू करें
gcloud services enable tasks.googleapis.com
Vault API चालू करना
gcloud services enable vault.googleapis.com

अगला चरण

Google Workspace API के लिए, पुष्टि करने और अनुमति देने के तरीके के बारे में जानें.