1.0.11 • Published 6 years ago

you-link v1.0.11

Weekly downloads
15
License
ISC
Repository
github
Last release
6 years ago

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

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago