Get started with playlyfe-js-sdk CDN
MIT licensed
Playlyfe-JS-SDK is a library for integrating Playlyfe social features into websites.
Tags:- playlyfe
- auth
- authentication
- identity
- oauth
- api
- sdk
Stable version
Copied!
How to start using playlyfe-js-sdk CDN
// Include the Playlyfe JS SDK in your HTML file using the CDN link
<script src="https://cdn.cdnhub.io/playlyfe-js-sdk/1.0.1/playlyfe-js-sdk.min.js"></script>
// Initialize the Playlyfe SDK with your application ID
window.playlyfe.init({
appId: "your_app_id", // Replace with your Playlyfe application ID
playerId: "your_player_id", // Replace with your desired player ID
callback: function() {
console.log("Playlyfe SDK initialized successfully.");
}
});
// Use Playlyfe functions to interact with the platform
window.playlyfe.login(function(err, user) {
if (err) {
console.error("Login failed:", err);
} else {
console.log("User logged in:", user);
// Use the user data to interact with your application
}
});
Copied!
Copied!