Skip to content

kalenkevich/you-link-lib

Repository files navigation

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!!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published