all-about-apikey/cooper-hewitt
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

Cooper Hewitt

Description

Smithsonian Design Museum

Example Request

  • Curl
curl -X GET "https://api.collection.cooperhewitt.org/rest/?method=api.spec.formats&access_token=ACCESS_TOKEN"
  • Raw
GET /rest/?method=api.spec.formats&access_token=ACCESS_TOKEN HTTP/1.1
Host: api.collection.cooperhewitt.org

Response

  • Success
{
    "formats":["json","jsonp","dson"],
    "default_format":"json",
    "stat":"ok",
    "event_publishing_state":"ok"
}
  • Error
{
    "error":{
        "code":400,
        "error":"Invalid access token",
        "message":"Invalid access token"
    },
    "stat":"error",
    "event_publishing_state":"ok"
}

Regex

[a-z0-9]{32}

Example API key

tue3sv9hzsey1me4l7fwq3t46u5k8wag