Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

radio4000-sdk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radio4000-sdk

> Helpers to fetch data via REST API from the Radio4000 Firebase database

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Radio4000 JavaScript SDK

Helpers to fetch data via REST API from the Radio4000 Firebase database

This package takes care of a few annoyances with Firebase: not having an id inside each object, "lists" being returned as an object instead an array.

API

Here are the methods you can use. All return a promise.

findChannels(amount) // amount is optional
findChannel(id)
findChannelBySlug(channelSlug)
findChannelImage(channelObject)
findTrack(id)
findTracksByChannel(channelId)
createBackup(channelSlug)

Usage if you can use import or require

Install the module.

yarn add radio4000-sdk

Then, import the methods you need:

// ES Modules
import { findChannel, findChannelBySlug } from 'radio4000-sdk'

// Node.js/CommonJS
const { findChannel, findTracks } = require('radio4000-sdk')

Usage with <script>

For browsers you can do this. It will add a radio4000Sdk global

<script src="radio4000-sdk.js"></script>
<script>
radio4000Sdk.findChannelBySlug('detecteve')
  .then(channel => {
	  console.log(channel.title)
	})
</script>

Development

Clone the repo, npm install and npm test. There is no start because this is a library.

FAQs

Package last updated on 18 Feb 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc