-
Notifications
You must be signed in to change notification settings - Fork 0
getuser
Liam Glanfield edited this page Apr 20, 2018
·
3 revisions
This will get all users.
curl -X POST -H 'Content-Type: application/json' -d '{"token":"some-random-token-string"}' http://api-service.local/getuser
[
{
"created": "2018-04-20 22:39:46.459366",
"daysvalid": 1,
"folder_size": "8.0K",
"requestedby": "127.0.0.1",
"username": "newuser",
"whitelisted_ips": [
"1.1.1.1",
"2.2.2.2"
]
},
{
"created": "2018-04-20 22:53:56.653585",
"daysvalid": 1,
"folder_size": "8.0K",
"requestedby": "192.168.18.1",
"username": "newuser2",
"whitelisted_ips": [
"3.3.3.3"
]
}
]
This will get a single user based on username.
curl -X POST -H 'Content-Type: application/json' -d '{"token":"some-random-token-string","username": "newuser"}' http://api-service.local/getuser
[
{
"created": "2018-04-20 22:39:46.459366",
"daysvalid": 1,
"folder_size": "8.0K",
"requestedby": "127.0.0.1",
"username": "newuser",
"whitelisted_ips": [
"1.1.1.1",
"2.2.2.2"
]
}
]