User

/user

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

  • Infinit.e User
  • Settings
  • Channels
  • Bookmarks
  • Alerts
  • Manager status
  • Contacts
  • Event Communities
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": {
		"isManager":true,		
		"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
                }
            },
	        "max_number_of_channels": 100
        },
		"contacts": [
            {
                "_id": "5357cc8be4b0a329baa475bf",
                "email": "cburch@test.com",
                "displayName": "test burch",
                "userType": "moderator",
                "userStatus": "active",
                "userAttributes": [
                    {
                        "type": "publishCommentsPublicly",
                        "value": "false"
                    },
                    {
                        "type": "publishSharingToActivityFeed",
                        "value": "true"
                    },
                    {
                        "type": "publishLoginToActivityFeed",
                        "value": "true"
                    },
                    {
                        "type": "publishQueriesToActivityFeed",
                        "value": "true"
                    },
                    {
                        "type": "publishCommentsToActivityFeed",
                        "value": "true"
                    }
                ]
            }
        ],
		"event_communities":[
			{
                "_id": "5231d1dce4b07ac83db10777",
                "name": "Sample Event Comm"
            },
            {
                "_id": "4c927585d591d31d7b370978",
                "name": "Some Other Comm"
            }
		] 
	}
}