Hacker News new | ask | show | jobs
by AdleyEskridge 5190 days ago
Randall,

This looks remarkably easy to use. Just a small tip: On opencname's home page, you suggest users try the following API call:

  $ curl https://api.opencnam.com/v1/phone/2024561111
  US GOVERNMENT
I tried it and received a different result:

  $ curl https://api.opencnam.com/v1/phone/2024561111
  DIST OF COLUMBI
Perhaps you should update your home page to reflect this?
1 comments

Hey Adley, thanks for the comment! I'll update the page shortly.
When I tried it I got this:

"Sorry, not implemented yet. Please append "?format=json" to your URL."

When I did that it worked.

You must have tried it in a web browser. Using curl sends different request headers. When you are using a web browser, it asks for text/html. Try ?format=text
It must be Tastypie thingy. Nice to see Django-powered site.