.NET Server

Creating Google Service Account and Enabling Google API

In this article

Creating Google Service Account and Enabling Google API

In this article, we will create a new Google project, add a service account to the project, generate a service account ID and a private key, enable Google Drive API and finally validate the domain on which your server is running. The Google service account ID (client_email) and a private key (private_key) will be used when creating the聽 GSuiteEngineAsync聽class instance.聽The domain validation is required to sent Google Drive notifications about document changes to your server.

If you are running your server in the development mode, on the localhost, the domain validation is not required. However, in this case, Google Drive notification will not reach your server and file changes will be saved only when the user closes the G Suite editor and the document is unlocked.

  1. Create a new Google project. Go to Google Cloud Platform聽 https://console.cloud.google.com/聽and select IAM & Admin -> Service Accounts.聽

    Create a new project in Google Cloud Platform. Select IAM & Admin->Service Accounts.

    Select Create.

    Select Create to create a new Google project.

    Provide a project name.

    Provide Google project name.

  2. Create a service account.

    Select Create Service Account in your project.

    Provide a service account name.聽Note the "Service account ID" field, which contains "edit-preview-documents@edit-my-dms-files-in-g-suite.iam.gserviceaccount.com" value. You will use this ID when creating the聽 GSuiteEngineAsync聽class instance, passing it as the e-mail parameter. Do not confuse it with your Google account e-mail. This field will be present in the JSON file generated when creating a private key under the "client_email" name.

    Select "Create".

    Service account ID field (client_email) will be user when creating G Suite Engine.

    Live service account permissions to default.

    Do not change service account permissions.

    Create a private key.聽

    Create a Google service account private key.

    Select JSON, select Create.

    Select JSON and select Create.

    Save the private key.聽You will be using "private_key" and "client_email" values from this file when creating GSuiteEngineAsync class.

    Save Google private key, you will be using it when creating IT Hit G Suite Engine.

  3. Enable the Google Drive API.聽Go to APIs & Services -> Library.

    Navigate to Google API Library. Select APIs & Services -> Library menu.

    Find the Google Drive API.

    Find Google Drive API.

    Enable the Google Drive API.

    Enable Google Drive API.

  4. Validate domain. Here you will confirm the ownership of the聽domain on which your IT Hit Server Engine is running.

    Go to APIs & Services -> Domain Verification.

    To verify domain go to APIs & Services -> Domain Verification.

    Follow Goggle domain verification guidelines to verify your domain.

聚圣源高 姓 起名美国打伊朗小游戏平台宝宝起名字生辰八字免费测试武汉支点深圳卫视在线直播给纸包鱼起名千博九画起名的吉祥字强国网猪年姓王男宝宝起名起名字女孩瑶起名的意思是什么安男宝起名有关春节的古诗女孩起名测试打分的守卫剑阁下载小虎队爱寇世远乃字辈起名吉祥字七寻记洋气的姓胡男孩起名酒品牌起名石榴木命开公司起什么名字宝宝起名 四字一路向西ed2k英文诗网游小说全本下载秋梦痕羊羊小心愿淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻让美丽中国“从细节出发”清明节放假3天调休1天男孩疑遭霸凌 家长讨说法被踢出群国产伟哥去年销售近13亿网友建议重庆地铁不准乘客携带菜筐雅江山火三名扑火人员牺牲系谣言代拍被何赛飞拿着魔杖追着打月嫂回应掌掴婴儿是在赶虫子山西高速一大巴发生事故 已致13死高中生被打伤下体休学 邯郸通报李梦为奥运任务婉拒WNBA邀请19岁小伙救下5人后溺亡 多方发声王树国3次鞠躬告别西交大师生单亲妈妈陷入热恋 14岁儿子报警315晚会后胖东来又人满为患了倪萍分享减重40斤方法王楚钦登顶三项第一今日春分两大学生合买彩票中奖一人不认账张家界的山上“长”满了韩国人?周杰伦一审败诉网易房客欠租失踪 房东直发愁男子持台球杆殴打2名女店员被抓男子被猫抓伤后确诊“猫抓病”“重生之我在北大当嫡校长”槽头肉企业被曝光前生意红火男孩8年未见母亲被告知被遗忘恒大被罚41.75亿到底怎么缴网友洛杉矶偶遇贾玲杨倩无缘巴黎奥运张立群任西安交通大学校长黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发妈妈回应孩子在校撞护栏坠楼考生莫言也上北大硕士复试名单了韩国首次吊销离岗医生执照奥巴马现身唐宁街 黑色着装引猜测沈阳一轿车冲入人行道致3死2伤阿根廷将发行1万与2万面值的纸币外国人感慨凌晨的中国很安全男子被流浪猫绊倒 投喂者赔24万手机成瘾是影响睡眠质量重要因素春分“立蛋”成功率更高?胖东来员工每周单休无小长假“开封王婆”爆火:促成四五十对专家建议不必谈骨泥色变浙江一高校内汽车冲撞行人 多人受伤许家印被限制高消费

聚圣源 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化