StarterTemplate ASP.NET Host

<back to all web services

UserProfile

Requires Authentication
The following routes are available for this service:
All Verbs/api/profile
UserProfile Parameters:
NameParameterData TypeRequiredDescription
IdqueryintNo
EmailquerystringNo
UserNamequerystringNo
DisplayNamequerystringNo
TwitterUserIdquerystringNo
TwitterScreenNamequerystringNo
TwitterNamequerystringNo
FacebookNamequerystringNo
FacebookFirstNamequerystringNo
FacebookLastNamequerystringNo
FacebookUserIdquerystringNo
FacebookUserNamequerystringNo
FacebookEmailquerystringNo
YahooUserIdquerystringNo
YahooFullNamequerystringNo
YahooEmailquerystringNo
GravatarImageUrl64querystringNo
UserProfileResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformUserProfileNo
ResponseStatusformResponseStatusNo

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/UserProfile HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: text/csv
Content-Length: length

{"id":0,"email":"String","userName":"String","displayName":"String","twitterUserId":"String","twitterScreenName":"String","twitterName":"String","facebookName":"String","facebookFirstName":"String","facebookLastName":"String","facebookUserId":"String","facebookUserName":"String","facebookEmail":"String","yahooUserId":"String","yahooFullName":"String","yahooEmail":"String","gravatarImageUrl64":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"result":{"id":0,"email":"String","userName":"String","displayName":"String","twitterUserId":"String","twitterScreenName":"String","twitterName":"String","facebookName":"String","facebookFirstName":"String","facebookLastName":"String","facebookUserId":"String","facebookUserName":"String","facebookEmail":"String","yahooUserId":"String","yahooFullName":"String","yahooEmail":"String","gravatarImageUrl64":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}