Connect

Using the connect layer, you're able to securely capture end-users login information. These are then encrypted and safely transfered to dapi.

On successful connection you recieve an accessCode that you can exchange for an accessToken to be able to run operations against the end-user. Check out Authentication for more info.

Connect On Web

Connect on the web works by including the connector.js library in your web app.

index.html
...
<script src="https://cdn.dapi.co/connect/v1/connector.js"></script>
<script>
var handler = Dapi.create({
//Intiation Connector with the correct paramteres
environment: 'sandbox',
appKey:'YOUR APP KEY',
redirectUri: 'YOUR REDIRECT URI',
onSuccess: function(access_code) {
//This is the callback function when the end-user connects succesfully
console.log('onSuccess')
console.log(access_code)
},
onFailure: function(err) {
//This is the callback function when the end-user is unable to connect succesfully
if (err != null) {
console.log('Error')
console.log(err)
} else {
console.log('No error')
}
},
})
var clickMe = function() {
//function to show the Connect interface
handler.open()
}
</script>
...

Connect On Mobile

On mobile our platform works through WebViews, you can copy the getting start code from our github for the below frameworks

  1. iOS

  2. Android

  3. Flutter

  4. React