@ottofinancial/utils
v3.0.0
Published
Otto Financial Utilities
Downloads
3
Keywords
Readme
@ottofinancial/utils
api
const { api } = await import( '@ottofinancial/utils/api' );
api.set_gateway( process.env.API_GATEWAY );
const version = await api.fetch( {
endpoint: '/billing/version',
transform: ( body ) => ( body.version )
} );
const external_url_result = await api.fetch( {
url: 'https://google.com'
} );