Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
candu-client
Advanced tools
Best in-app learning experience.
Install it using node or yarn
npm install --save candu-client
or with yarn if you prefer
yarn add candu-client
The SDK is made of three functions:
Init
is used to create a singleton object of the client. We discourage re-initializing the client every time, as it risks creating less efficient memory management and race conditions. After initializing the client, you’ll be able to use the identify
and track
functions.
To get started, just run create a new client
const client = new Candu.Client({ clientToken: '<MY_CLIENT_TOKEN>', userId: '<USER_ID>' })
.
In order to obtain a test token, please contact us at support@candu.ai.
Identify is used to record the identity of a client. The Identify call is fundamental to receive the videos that a customer should get, as well as updating his information. You should do an identify call everytime you load a page since this call will download and refresh the result list.
client.identify(userId[, traits ])
userId
is the user identifier that you want to track. This identifier will be stored in order to be used again for the track calls. traits
is an object containing all the user properties you want to record about the user.
Tracking events is easy.
candu.track(eventName [, properties])
The function track
takes the following parameters:
Parameter name | Description |
---|---|
eventName | The name of the event you want to track. |
properties | Any additional properties you want to track. |
FAQs
Candu javascript library
We found that candu-client demonstrated a not healthy version release cadence and project activity because the last version was released 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.