Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

/user

Convenience function, returns a bunch of information for a user including

  • Infinit.e User
  • Settings
  • Channels
  • Bookmarks
  • Alerts
Possible Methods

GET

Arguments

n/a

Example
curl -b cookies.txt -X GET "http://localhost:8185/user" > response.txt

 

Example Response
curl -b cookies.txt -X GET "http://localhost:8185/user" > response.txt

 

 {
    "response": {
        "action": "User",
        "success": true,
        "message": "Returned entire user object",
        "time": 0
    },
    "data": {
        "person": {
            "_id": "5231d1dce4b07ac83djjjjjjj",
            "created": "Sep 12, 2013 02:38:20 PM UTC",
            "modified": "Mar 14, 2014 01:22:51 PM UTC",
            "accountStatus": "active",
            "email": "test@ikanow.com",
            "firstName": "Test",
            "lastName": "User",
            "displayName": "Test User",
            "phone": "",
            "communities": [{
                "_id": "5231d1dce4b07ac83db1077a",
                "name": "Test User\u0027s Personal Community"
            },
            {
                "_id": "4c927585d591d31d7b37097a",
                "name": "Infinit.e System"
            }],
            "WPUserID": "test@ikanow.com"
        },
        "channels": [{
            "channel_id": "532851a1b8e0cd4ae4050b06",
            "name": "abc123",
            "locations": [],
            "events": []
        },
        {
            "channel_id": "531f3e50b8e0a93944925594",
            "locations": [],
            "events": [{
                "event_id": "52e2e833e4b013563c3ea1ee",
                "liked": true,
                "timestamp": "Mar 13, 2014 08:24:32 PM UTC"
            }]
        }],
        "bookmarks": [{
            "bookmark_id": "532744f6b8e02c41a87f81c3",
            "event_id": "52e2e833e4b013563c3ea1ee"
        }],
        "alerts": [],
        "settings": {
            "user_id": "5231d1dce4b07ac83db1077a",
            "alert_types": {
                "Regular": {
                    "alert_methods": [{
                        "method": "email",
                        "destination": "test@ikanow.com"
                    }],
                    "frequency_secs": 86400
                },
                "Priority": {
                    "alert_methods": [{
                        "method": "email",
                        "destination": "test@ikanow.com"
                    }],
                    "frequency_secs": 3602
                }
            }
        }
    }
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.