Using the Youtube SDK in scriptable

Has any one successfully used the youtube sdk in scriptable?

(https://www.npmjs.com/package/googleapis)

I have imported it using the method outlined here: [TIPS] How to use npm modules in Scriptable But an getting the error below.

2020-06-30 20:10:02: Error on line 339:135533 in googleapis module: TypeError: undefined is not an object (evaluating ‘e.fetch.bind’)

Any suggestions or guidance is very welcome.

Looking at the error message you provided, I think that it wants to use the fetch API available in modern browsers and probably also Node.js.

You would either need to make a polyfill on your Mac/PC or look for a browser version and run it in a WebView.