TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Backlift's Tunnel API: connect to 3rd party APIs without JSONP

23 pointsby colevscodealmost 12 years ago

4 comments

niutechalmost 12 years ago
It&#x27;s just a proxy, you could do the same with a single line of PHP, e.g.: &lt;?php readfile(&#x27;<a href="http:&#x2F;&#x2F;api.example.org&#x2F;?key=APIKEY&amp;action=&#x27;" rel="nofollow">http:&#x2F;&#x2F;api.example.org&#x2F;?key=APIKEY&amp;action=&#x27;</a> . $_GET[&#x27;action&#x27;]); ?&gt;
评论 #5895153 未加载
评论 #5895308 未加载
spullaraalmost 12 years ago
You can use YQL for this and many, many other operations that you would normally not be able to easily do on the client. It is free, deployed in 5+ datacenters worldwide, will cache both directions, and widely used by Yahoo so very unlikely to be turned off. It even offers persistent storage.<p><a href="http:&#x2F;&#x2F;developer.yahoo.com&#x2F;yql&#x2F;console&#x2F;" rel="nofollow">http:&#x2F;&#x2F;developer.yahoo.com&#x2F;yql&#x2F;console&#x2F;</a>
MichaelGGalmost 12 years ago
This article would be easier to read if it started off with a quick overview of Tunnel (creates a path in your app that proxies to another site), rather than the how-to. A couple of sentences in the first paragraph would do it.
riskablealmost 12 years ago
It&#x27;s sort of like <a href="http:&#x2F;&#x2F;getr.ws&#x2F;" rel="nofollow">http:&#x2F;&#x2F;getr.ws&#x2F;</a> but bound to a specific application platform.