Skip to content

Add support for amp-embedly #12908

@aghassemi

Description

@aghassemi

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions