Skip to content

w8tcha/OEmbed.Core

 
 

Repository files navigation

OEmbed.Core

oembed

C# oEmbed consumer library for .NET Framwork 4.8.1 and .NET (Core) 7/8

NuGet

build dotnet

Supported Providers

  • CodePen.io
  • DailyMotion.com
  • Deezer.com
  • Deviantart.com
  • Facebook.com
  • Flickr.com
  • Giphy.com
  • Gist.GitHub.com
  • Instagram.com
  • Pinterest.com
  • Reddit.com
  • Soundcloud.com
  • Spotify.com
  • Tiktok.com
  • Twitter.com
  • Vimeo.com
  • Youtube.com

Install

via NuGet:

PM> Install-Package OEmbed.Core

DI configuration

services.AddOEmbed();

Usage .NET Core

  • Inject IOEmbed throught constructor injection.
  • Call EmbedAsync().

For example:

// Returns Provider Result of null if provider not found.
var result = await oEmbed.EmbedAsync("url");

Usage .NET Framework

// Returns Provider Result of null if provider not found.
var embed = new OEmbed();

var result = embed.Embed("url");

License

Apache

About

C# implementation of oEmbed consumer for .NET Framwork and .NET (Core)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%