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

rt-sdk

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rt-sdk - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

index.js
const apiService = require('./src/APIService');
const seasons = seriesSlug => apiService
const seasons = (seriesSlug, options) => apiService
.get('/shows/' + seriesSlug + '/seasons?per_page=10', options)

@@ -6,0 +6,0 @@ .then(res => res.json())

{
"name": "rt-sdk",
"description": "",
"version": "0.0.8",
"version": "0.0.9",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -8,8 +8,8 @@ # rt-sdk

You can request things like:
- series
- episodes
- livestreams
- search results
- products
- and many more stuffz!
- series
- episodes
- livestreams
- search results
- products
- and many more stuffz!

@@ -25,3 +25,3 @@ # Get started!

### Get all seasons of a specific show
rt.seasons() takes a show slug
rt.seasons() takes a show slug.
```js

@@ -50,3 +50,3 @@ rt.seasons('rt-podcast')

### Get a specific episode
rt.episode() takes an episode slug
rt.episode() takes an episode slug.
```js

@@ -94,2 +94,16 @@ rt.episode('lets-play-2012-16')

rt.series()
.then(series => {
for (let serie of series) {
console.log(serie.attributes.title);
console.log(serie.type);
console.log(serie.attributes.slug);
console.log(serie.attributes.summary);
}
});
```
### Search Episodes
rt.queryByEpisode() takes a episode query (and `options`).
```js
rt.queryByEpisode('Mark Nutt')
.then(episodes => {

@@ -99,4 +113,3 @@ for (let episode of episodes) {

console.log(episode.type);
console.log(episode.attributes.description);
console.log(episode.included.images);
console.log(episode.attributes.slug);
}

@@ -106,2 +119,23 @@ });

# In progress.. More coming soon!
# In progress.. More coming soon!
- Tests to make sure I dont break yer shit
- TypeScript Typings
- Options Obj (order, per_page, page)
- Featured Products
- Scope options
- Schedule
- All Channels
- All Series in a Channel
- All Episodes in a Channel
- Featured Items in a Channel
- Featured Products in a Channel
- Show Episodes by Bulk
- Related Series
- Season Images
- Episode Images
- Episode Videos
- Query by Series
- List of all Genres
- Bonus Features?
- Marketing Banners..? ¯\_(ツ)_/¯
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