1.0.11 • Published 7 years ago
you-link v1.0.11
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
Twitteras Application-only authentication available only server
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
- Extends from BaseContentProvider
- Implement this methods
get providerId()
get supportSearch()
get supportLinkParsing()
adaptContent()
sendSearchRequest()
sendGetContentByIdRequest()
parseContentId()
- Register this provider on init method in YouLink
case YourProvider:
this.providers.push(new YourProvider(options));
break;
- Write unit test!!!