-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Create a component that uses's Embedly's API to embed any provider supported by Embedly.
Note: Embedly is a paid service and publisher needs to provide their own key.
API
<amp-embedly key=<yourAPIKey> url=<embedUrl> width height layout>
Implementation details:
1- We make a call to embedly's oembed API
2- It returns data including some html to render.
3- We add the html and watch for resize events and resize our components accordingly.
NOTE: we can NOT trust the html return by embedly and just inject it. Therefor this component as a whole needs to live in a 3P iframe similar to amp-gist or amp-twitter
/to @juanlizarazo
/cc @jpettitt @ericlindley-g