How to use workdrive api in crm widget?

How to use workdrive api in crm widget?

Is there a way to integrate WorkDrive API into a CRM widget? I'm currently developing a widget for the CRM platform and utilizing the JS SDK as detailed here: JS SDK Documentation. My goal is to create a new directory in WorkDrive for each account and then upload files from the widget to these directories. According to the WorkDrive API documentation at WorkDrive API OAuth2 Authentication, which client type should I select for a CRM widget? Or, is there a different approach to use the WorkDrive API within a CRM widget?