Back to top

Users

Get a list of users

Get a user's profile

Update a user's profile


Get a list of users

GET /users

Response

{
    "content": {
        "page": 1
      , "per_page": 20
      , "users": [
            {
                "username": "dummy"
              , "name": "Dummy User"
              , "bio": "I wish I was real :("
              , "location": "Somewhere"
              , "website": "http://storify.com"
              , "avatar": "http://static1.robohash.com/dummy"
            }
          , {
                "username": "cpetzold"
              , "name": "Conner Petzold"
              , "bio": "I use myself as an example when I'm not feeling creative.."
              , "location": "Earth"
              , "website": "http://the0th.com"
              , "avatar": "http://static1.robohash.com/cpetzold"
            }
          , { ... }
          , { ... }
          ...
        ]
    },
  , "code": 200
}

Try it out: http://api.storify.com/v1/users


Get a user's profile

GET /users/:username

Response

{
    "content": {
        "username": "dummy"
      , "name": "Dummy User"
      , "bio": "I wish I was real :("
      , "location": "Somewhere"
      , "website": "http://storify.com"
      , "avatar": "http://static1.robohash.com/dummy"
    }
  , "code": 200
}

Try it out: http://api.storify.com/v1/users/dummy


Update a user's profile

POST /users/:username/update

Parameters

  • user
    • name
    • location
    • bio
    • website
    • avatar

{
    "username": "dummy"
  , "email": "[email protected]"
  , "password": "p4ssw0rd"
  , "name": "Dummy User"
  , "bio": "I wish I was real :("
  , "location": "Here"
  , "website": "http://storify.com"
  , "avatar": "http://static1.robohash.com/dummy"
}

Response

{
    "content": {
        "username": "dummy"
      , "name": "Dummy User"
      , "bio": "I wish I was real :("
      , "location": "Here"
      , "website": "http://storify.com"
      , "avatar": "http://static1.robohash.com/dummy"
    }
  , "code": 200
}