
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
scandit-flow-sdk
Advanced tools
The Scandit Flow JavaScript SDK is a library that helps building applications integrated with the Scandit Flow platform.
Take a look at our related projects:
In order to start using the SDK you must have a Scandit Flow account.
At the moment the only way to sign up is using the mobile app (Scandit Flow - Android, Scandit Flow - iOS).
Once you have your account, log in to the web dashboard and configure access under API Access.
Using npm (for NodeJS):
$ npm install scandit-flow-sdk
Using bower:
$ bower install scandit-flow-sdk
Manually (downloaded from Releases):
<script src="scandit.min.js"></script>
var client = new Scandit.Client({
method: Scandit.Auth.Method.STATIC_KEY,
key: '-- YOUR STATIC API KEY --'
});
client.init()
.then(function(authenticationStatus) {
if (authenticationStatus) {
console.log('Static key is valid');
// you can use the client
} else {
console.log('Invalid static token');
}
})
.catch(function(err) {
console.log('Unexpected error during initialization: ' + err);
});
var client = new Scandit.Client({
method: Scandit.Auth.Method.USER_IMPLICIT,
clientId: '-- YOUR CLIENT ID --',
redirectUri: '-- YOUR REDIRECT URI --',
popup: true
});
client.init()
.then(function(authenticationStatus) {
if (authenticationStatus) {
console.log('You are authenticated');
// you can use the client
} else {
console.log('User must login');
// Use code below to authenticate user, e.g. after user clicks the login button
// client.authenticate()
// .then((function () {
// console.log('Authenticated successfully');
// }))
// .catch(function (err) {
// console.log('Authentication failed: ' + err);
// });
}
})
.catch(function(err) {
console.log('Unexpected error during initialization: ' + err);
});
var client = new Scandit.Client({
method: Scandit.Auth.Method.CLIENT,
clientId: '-- YOUR CLIENT ID --',
clientSecret: '-- YOUR CLIENT SECRET --'
});
client.init()
.then(function(authenticationStatus) {
if (authenticationStatus) {
console.log('Client is authenticated');
// you can use the client
} else {
console.log('Login needed');
// Use code below to authenticate client, e.g. can be triggered automatically or with a button click etc.
// client.authenticate()
// .then((function () {
// console.log('Authenticated successfully');
// }))
// .catch(function (err) {
// console.log('Authentication failed: ' + err);
// });
}
})
.catch(function(err) {
console.log('Unexpected error during initialization: ' + err);
});
At the moment the only client functionality is accessing the Scandit Flow Cloud DB.
In order to start using it you have to configure your database. Go to the Database section on the web dashboard and define some classes.
Retrieving a list of configured models:
client.Db.getAvailableModels()
Fetching all objects from the model (where ModelName
is the class name you specified on the web dashboard):
client.Db.ModelName.all()
.then(function(objects) {
console.log(objects);
})
.catch(function(error) {
console.log('Cannot fetch objects: ' + error);
});
For more detailed examples please take a look at the examples
folder.
API documentation will be available soon. For general documentation please refer to Scandit Flow - Documentation.
The source code published here is released under the Apache 2.0 license: http://www.apache.org/licenses/LICENSE-2.0.
Questions? Contact support@scandit.com
.
FAQs
Scandit Flow - JavaScript SDK
We found that scandit-flow-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.