Comparing version 0.0.8 to 0.0.9
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..? ¯\_(ツ)_/¯ | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41813
136