webflow / js-webflow-api

Node.js SDK for the Webflow Data API
https://www.npmjs.com/package/webflow-api
296 stars 95 forks source link

Configuration params #81

Closed SalGnt closed 1 year ago

SalGnt commented 1 year ago

Do you think a params object can be added to the client options?

johnagan commented 1 year ago

Can you describe your use-case?

SalGnt commented 1 year ago

Sure. Due to security reasons the interaction with Webflow is handled by a Man In The Middle proxy, with its own endpoint (that doesn't always include api.) that is used by the SDK on the client. Also, having optional params can help provide other possible data that such proxy needs.

The same scenario applies to #80.

Thank you!

johnagan commented 1 year ago

the interaction with Webflow is handled by a Man In The Middle proxy

Got it. This isn't something we would want to encourage/support in the SDK, but you can override the baseUrl and any params for your edge case by updating [instance].client.