Integrate SDKs
SDKs are distributed in our GitHub repositories:
Each distribution has a README.md file with more specific and extensive instructions on how to integrate it. Here, we will provide a minimal setup for the web SDK.
Example integration: web SDK
-
Clone the repository.
git clone https://github.com/MicroblinkPlatform/microblink-platform-browser-sdk -
Copy the package file (
microblink-platform-sdk.tgz) to your project's directory and perform a local package install, for example usingyarnornpm:cp microblink-platform-sdk.tgz path/to/my/project/
cd path/to/my/project
npm install ./microblink-platform-sdk.tgz -
Import and use the
IdvFlowfunction in your project:import { IdvFlow } from '@microblink/platform-sdk/react';
<IdvFlow
workflowId="{id-of-workflow-to-use}"
proxyConfig={{
url: '{url-to-your-proxy-service}'
}}
onExit={() => {
setShowIdvFlow(false);
}}
/>