How to replace the deprecated ScriptDb with Mongodb using URL Fetch service?

后端 未结 1 418
悲&欢浪女
悲&欢浪女 2020-12-17 07:36

Due to the recent ScriptDb deprecation I need to replace it. I chose MongoDb(as I need noSQL db). Google does not provide any guides on how to connect mongo. It\'s just said

相关标签:
1条回答
  • 2020-12-17 07:50

    It seems that I've found a solution. MongoDB also provides the third way of accessing the DB, though they strongly recommend to use 2 ways described in my question. This is to use their REST API:

    enter image description here

    So it seems we should pass this url https://api.mongolab.com/api/1/databases?apiKey=<your-api-key> to the UrlFetchApp.fetch() function.

    Please correct me if I'm not right. Any additions and notes are appreciated.

    0 讨论(0)
提交回复
热议问题