Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
ember-youtube-data-model
Advanced tools
Ember Data adapters, serializers, and model for youtube api v3 (which, btw, is godawful)
Very, very, very light and minimal feature wrapper over youtube api/v3 (which I would not pay to use).
Ships with the following 3 models and associated adapters, serializers, and transform:
# youtube/channel
YoutubeChannel = DS.Model.extend
title: DS.attr "string"
description: DS.attr "string"
thumbnails: DS.attr "thumbnails"
publishedAt: DS.attr "date"
uploadId: DS.attr "string"
uploads: Ember.computed "uploadId", -> # your upload playlist
return if Ember.isBlank @get "uploadId"
@store.find "youtube/playlist", @get("uploadId")
TODO: add more generalized playlists to channel
# youtube/playlist
YoutubePlaylist = DS.Model.extend
videos: DS.hasMany "youtube/video", embedded: true
# youtube/video
YoutubeVideo = DS.Model.extend
title: DS.attr "string"
description: DS.attr "string"
thumbnails: DS.attr "thumbnails"
position: DS.attr "number"
publishedAt: DS.attr "date"
You'll need to setup your own API key onto the YoutubeAdapter, I will probably provide a blueprint installer to do this sometime in future, but I'm already sick and tired of working on youtube's horseshit api, so will put that off for another day. For now, probably write your own initializer and reopen the YoutubeAdapter to include something like:
YoutubeAdapter.reopen
key: 'ajfslasjdfoajsdlfjalsdkfjlkasdf'
After that, things should work, and you should be able to do things like:
chan = store.find "youtube/channel", "teamcoco" # finds you Conan O'Brien's channel
chan.get("uploads.videos") # gets you the videos
TODO: add pagination to hasMany to get more than 5 videos (lol)
git clone
this repositorynpm install
bower install
ember server
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
FAQs
Ember Data adapters, serializers, and model for youtube api v3 (which, btw, is godawful)
The npm package ember-youtube-data-model receives a total of 2 weekly downloads. As such, ember-youtube-data-model popularity was classified as not popular.
We found that ember-youtube-data-model 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.