Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg: oembed api middleware #27437

Closed
wants to merge 1 commit into from
Closed

Gutenberg: oembed api middleware #27437

wants to merge 1 commit into from

Conversation

gwwar
Copy link
Contributor

@gwwar gwwar commented Sep 26, 2018

Fixes #27296

@kwight here's something to get you started with. I added a messy middleware example that translates oembed requests to the v1.1 format (only tested with youtube vids atm). There's still remaining work to transform the response into what the block expects, since the placeholder is blank. Feel free to completely take over this PR or open a fresh branch/PR.

screen shot 2018-09-25 at 7 25 42 pm

screen shot 2018-09-25 at 7 15 55 pm

Something I noticed while sketching this out is that we'll run into trouble by calling wpcomProxyRequest directly. Clients that use oauth, like desktop won't work here. We can follow up on this in another PR

@gwwar gwwar added [Status] In Progress [Goal] Gutenberg Working towards full integration with Gutenberg labels Sep 26, 2018
@matticbot
Copy link
Contributor

@gwwar
Copy link
Contributor Author

gwwar commented Sep 26, 2018

Also added #27438

@gwwar
Copy link
Contributor Author

gwwar commented Sep 27, 2018

closing in favor of #27486

@gwwar gwwar closed this Sep 27, 2018
@gwwar gwwar deleted the update/oembed branch September 27, 2018 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Goal] Gutenberg Working towards full integration with Gutenberg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants