you-link
Simple library which helps work with different search API such [YouType Data Api](https://developers.google.com/youtube/v3/docs/)
Last updated 2 years ago by alexey.kalenkevich .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install you-link 
SYNC missed versions from official npm registry.

YouLink Lib

Simple library which helps work with different search API such YouType Data Api

Demo

Simple application on Angular 5

Supported API

Can't Support

Usage

    import YouLink, {YoutubeProviderId, BingProviderId} from 'you-link';

    YouLink.init([{
      contentProvider: YoutubeProviderId,
      apiKey: 'some-api-key'
    }, {
      contentProvider: BingProviderId,
      apiKey: 'some-api-key'
    }]);

Create new provider

  1. Extends from BaseContentProvider
  2. Implement this methods
    get providerId()

    get supportSearch()

    get supportLinkParsing()

    adaptContent()

    sendSearchRequest()

    sendGetContentByIdRequest()

    parseContentId()
  1. Register this provider on init method in YouLink
    case YourProvider:
        this.providers.push(new YourProvider(options));
    break;
   
  1. Write unit test!!!

Current Tags

  • 1.0.11                                ...           latest (2 years ago)

11 Versions

  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |