Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Twitter Timeline oEmbed

This sample transforms a Twitter timeline from JSON to HTML and returns it as HTML content or as an oEmbed object that contains the HTML. If a request to the endpoint is made with an "Accept: application/json" header, the oEmbed object is returned, or just the HTML otherwise.

A demo application that consumes the API and displays a timeline is included.



curl -v -H "Accept: application/json" ""

 "author_name":"Twitter Timeline oEmbed",
 "html":"<blockquote class=\"twitter-tweet\"><p>Applying Universal Design Principles to API Initiatives (video &amp; slides from Webcast 9/18 ) <a href=\"\"></a> thx @<a href=\"\">13protons</a> @<a href=\"\">kevinswiber</a></p>&mdash; Apigee(@Apigee) <a href=\"\" data-datetime=\"2012-10-01T18:03:30Z\">October 1, 2012 6:03:30 PM UTC</a></blockquote>...


curl -v ""

<blockquote class="twitter-tweet"><p>Applying Universal Design Principles to API Initiatives (video &amp; slides from Webcast 9/18 ) <a href=""></a> thx @<a href="">13protons</a> @<a href="">kevinswiber</a></p>&mdash; Apigee(@Apigee) <a href="" data-datetime="2012-10-01T18:03:30Z">October 1, 2012 6:03:30 PM UTC</a></blockquote>...

Set up

  • The username and password that you use to login to
  • The name of the organization in which you have an account. Login to and check account settings.


Update /setup/ with your environment details

Import and deploy sample project

Run /setup/

Get help

For assistance, please use Apigee Support.

Copyright © 2014, 2015 Apigee Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.