![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
algolia-soundcloud-connector
Advanced tools
node connector to send soundcloud data on algolia's servers
Table of Contents
The recommended way is through NPM
$ npm install algolia-soundcloud-connector
Otherwise, you can check it in your repository and then expose it:
$ git clone git://github.com/guillaumemorin/algolia-soundcloud-connector.git node_modules/algolia-soundcloud-connector/
And install dependency modules written on package.json
.
Then you can require
it:
require('algolia-soundcloud-connector')
You first need to set your Algolia and Soundcloud credentials in conf.js You can find them on your Algolia account and on your Soundcloud developer account.
soundcloud: {
client_id: 'CLIENT_ID',
secret: 'SECRET',
callback_url: 'CALLBACK_URL'
},
algolia: {
client_id: 'CLIENT_ID',
secret: 'SECRET',
init_index: 'soundcloud',
attributes_to_index: ['username', 'city'],
custom_ranking: ['desc(followers)']
}
attributes_to_index and custom_ranking options are described on Algolia's doc Ranking & Relevance section
After configuration completed, you need to get an access token from soundcloud connect flow. You can get one with algolia-soundcloud-connector auth method if you already have the "code" from connect flow callback. Please have a look to soundcloud developer guide and README.md of soundclouder test setup script.
Once you get your Access Token, you can set it with the setAccessToken method below and pass as a callback the sendData method (with the soundcloud api method you want to get data from) to send soundcloud data to Algolia' server.
var connector = require('algolia-soundcloud-connector');
connector.setAccessToken('ACCESS_TOKEN', connector.sendData, '/me/followers');
All soundcloud api methods are listed on soundcloud api console
FAQs
soundcloud connector to algolia's servers
The npm package algolia-soundcloud-connector receives a total of 4 weekly downloads. As such, algolia-soundcloud-connector popularity was classified as not popular.
We found that algolia-soundcloud-connector 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.