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.

Show HN: Go for Glory – take the apibunny challenge

10 pointsby njyxabout 11 years ago

2 comments

yeldarbabout 11 years ago
Wrote a Node.js script to do a simple breadth-first search and got to the point where I submit my twitter handle to the exit node but it&#x27;s throwing an error.<p>request.post({ url: &#x27;<a href="http://apibunny.com/users&#x27;" rel="nofollow">http:&#x2F;&#x2F;apibunny.com&#x2F;users&#x27;</a>, headers: { &#x27;Content-Type&#x27;: &#x27;application&#x2F;json&#x27; }, body: JSON.stringify({ twitter_handle: &#x27;@braddwyer&#x27; }) }, function(error, response, body) { console.log(body); });<p>Results in:<p>{ &quot;error&quot;: &quot;Request was malformed.&quot;, &quot;detail&quot;: &quot;TypeError: Cannot call method &#x27;forEach&#x27; of undefined&quot; }<p>Not sure how to go any further with no API docs.
评论 #7610216 未加载
rhomlabout 11 years ago
Too addictive.