StarterTemplate ASP.NET Host

<back to all web services

Users

The following routes are available for this service:
All Verbs/api/users/{UserIds}
Users Parameters:
NameParameterData TypeRequiredDescription
UserIdspathint[]No
UsersResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<UserInfo>No
ResponseStatusformResponseStatusNo
UserInfo Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserNameformstringNo
DisplayNameformstringNo
TwitterUserIdformstringNo
TwitterScreenNameformstringNo
FacebookUserIdformstringNo
ProfileImageUrl64formstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/Users HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: text/csv
Content-Length: length

{"userIds":[0]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"results":[{"id":0,"userName":"String","displayName":"String","twitterUserId":"String","twitterScreenName":"String","facebookUserId":"String","profileImageUrl64":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}