Skip to content

Instantly share code, notes, and snippets.

@urbanautomaton
Created September 24, 2011 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urbanautomaton/1239258 to your computer and use it in GitHub Desktop.
Save urbanautomaton/1239258 to your computer and use it in GitHub Desktop.
Tribesports API example request
$ curl -v -H 'Accept: application/vnd.tribesports.api.v1+json' "http://tribesports.dev/activities/32006"
* About to connect() to tribesports.dev port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to tribesports.dev (127.0.0.1) port 80 (#0)
> GET /activities/32006 HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3
> Host: tribesports.dev
> Accept: application/vnd.tribesports.api.v1+json
>
< HTTP/1.1 200 OK
< Content-Type: application/vnd.tribesports.api.v1+json; charset=utf-8
< ETag: "80e95f16aad98b77861419a15f122a3a"
< Cache-Control: max-age=0, private, must-revalidate
< X-UA-Compatible: IE=Edge
< Set-Cookie: _session_id=e3adbe39431bede9bbda5582b2e920a9; path=/; HttpOnly
< X-Runtime: 3.055897
< Connection: keep-alive
< Transfer-Encoding: chunked
<
{"id":32006,"content":"Hello, World!","creator_name":"Simon C"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment