Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@trudan-studios/helika-sdk
Advanced tools
The Helika SDK is for developers to be able to make API calls to the Helika DEV and PROD endpoints.
Readme
SDK for use with the Events endpoints (https://api.helika.io/v1 or https://api-stage.helika.io/v1)
The Helika SDK is for developers to be able to make API calls to the Helika DEV and PROD endpoints. The following pages will describe how to make calls to the Helika API. Developers will need to install the helika-sdk to their project.
npm i helika-sdk
An API Key is required to use the SDK.
For an Events SDK Instance, an API Key from Helika is required. Please reach out to your Helika contact or inquiring through https://www.helika.io/contact/ .
The SDK can send to DEV or PROD endpoints depending on the Base URLs to the sdk on instance creation (see step 1 in Instance Creation section).
Use the EventsBaseURL enum for Helika.Events
For Development, use EVENT_DEV. This sends the events and queries to the develop environments.
For Production, use EVENT_PROD. This sends the events and queries to the production environments.
import Helika from "helika-sdk"
import { DisableDataSettings, EventsBaseURL } from "helika-sdk"
const gameId = 'my_game_name'
const helikaSDK = new Helika.EVENTS(api_key, gameId, EventsBaseURL.EVENTS_DEV);
// Optional - if you want to disable some data from getting stored due to compliance
helikaSDK.setDataSettings(DisableDataSettings.None);
// Start a session/create a new session which initiates the SDK instance with a
// sessionId which is required to fire events. This should only be called when
// the user lands on the page. We store and re-use the session_id from the local
// storage, if present.
await helikaSDK.startSession();
events = [{
event_type: 'win_event',
event: {
user: 'user_1',
win_number: 1,
wallet: '0x4kd....'
}
}]
// Asynchronously
// await helikaSDK.createEvent(events);
helikaSDK.createEvent(events)
.then((resp) => {
//do something...
// console.log(resp);
}).catch(e => {
console.error(e);
});
For the full documentation, please head to official docs.
FAQs
The Helika SDK is for developers to be able to make API calls to the Helika DEV and PROD endpoints.
The npm package @trudan-studios/helika-sdk receives a total of 4 weekly downloads. As such, @trudan-studios/helika-sdk popularity was classified as not popular.
We found that @trudan-studios/helika-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.