Freebase API – cookie test

Here is one line shell script to test your Freebase cookie. (Replace the dummy cookie with your own cookie):

curl --globoff --cookie \\
'metaweb-user="Z|a_aaaaaaaaaa|a_#111...snip...111|1.aaZZZaZaZaaZZaZZ1aZ/ZZ"' \\
'http://www.freebase.com/api/service/mqlread?q={"query":[{"id":"/type/int"}]}'

You should see this result:

{
  "status": "200 OK",
  "query": {},
  "code": "/api/status/ok",
  "messages": [],
  "result": {
    "query": [
      {
        "id": "/type/int"
      }
    ]
  }
Advertisements

One Response to Freebase API – cookie test

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: