Retrieve the credential
Please get familiar with our user profile service with the Yoti App.
Once the user has scanned the Yoti QR code, Yoti will perform a GET request to the defined call-back URL, passing a token as a query string parameter, any additional relying party defined query parameters will also be passed here.
x
const CONTENT_TYPE_STRING = 1;const CONTENT_TYPE_JPEG = 2;const CONTENT_TYPE_DATE = 3;const CONTENT_TYPE_PNG = 4;const CONTENT_TYPE_BYTES = 5;const CONTENT_TYPE_INT = 7;const stringValue = AttributeConverter.convertValueBasedOnContentType( profile.getAttribute("Third_Party_Attribute_Name").getValue(), CONTENT_TYPE_STRING //text/string);const imageJPG = AttributeConverter.convertValueBasedOnContentType( profile.getAttribute("Third_Party_Attribute_Name").getValue(), CONTENT_TYPE_JPEG //image/jpg);const dateTime = AttributeConverter.convertValueBasedOnContentType( profile.getAttribute("Third_Party_Attribute_Name").getValue(), CONTENT_TYPE_DATE //DateTime);const imagePNG = AttributeConverter.convertValueBasedOnContentType( profile.getAttribute("Third_Party_Attribute_Name").getValue(), CONTENT_TYPE_PNG //image/png);const jsonValue = AttributeConverter.convertValueBasedOnContentType( profile.getAttribute("Third_Party_Attribute_Name").getValue(), CONTENT_TYPE_BYTES //application/json);const intValue = AttributeConverter.convertValueBasedOnContentType( profile.getAttribute("Third_Party_Attribute_Name").getValue(), CONTENT_TYPE_INT //Integer);Was this page helpful?