Help Page Home

Profile

GET v1/my/profile

Gets the current user's profile information.

Request Information

URI Parameters

None.

Body Parameters

None.

Request Formats

Sample:
GET /v1/my/profile
Accept: application/json
Authorization: Bearer VSo3gOu-X7nimE0xcav8ftN_Cb0aAOKeNIdR88K ...
Host: testapi.codeproject.com
Pragma: no-cache
Sample:
GET /v1/my/profile
Accept: application/xml
Authorization: Bearer VSo3gOu-X7nimE0xcav8ftN_Cb0aAOKeNIdR88K ...
Host: testapi.codeproject.com
Pragma: no-cache

Response Information

Resource Description

The User's Profile information.

MyProfileViewModel
NameDescriptionTypeAdditional information
Id

Gets or sets the User ID (UserProfile ID).

integer

None.

UserName

Gets or sets the user name. Usually a 'clean', html stripped, version of DisplayName.

string

None.

DisplayName

Gets or sets the unique (and public) display name. Can contain limited HTML.

string

None.

Avatar

Gets or sets the url to the user's avatar image.

string

None.

Email

Gets or sets the User's Email Address.

string

None.

HtmlEmails

Gets or sets a value indicating whether the user accepts HTML emails.

boolean

None.

Country

Gets or sets the Country Code to be displayed for this user.

string

None.

HomePage

Gets or sets the url to the user's home page.

string

None.

CodeProjectMemberId

Gets or sets the user's CodeProject Member Id.

integer

None.

MemberProfilePageUrl

Gets or sets the URL for the User's CodeProject Member Profile Page.

string

None.

TwitterName

Gets or sets the user's Twitter Name.

string

None.

GooglePlusProfile

Gets or sets the users Google Plus Profile ID.

string

None.

LinkedInProfileUrl

Gets or sets the users LinkedIn Profile ID.

string

None.

Biography

Gets or sets the user's biographical information.

string

None.

Company

Gets or sets the company.

string

None.

JobTitle

Gets or sets the job title.

string

None.

Response Formats

Sample:
{
  "id": 1,
  "userName": "sample string 2",
  "displayName": "sample string 3",
  "avatar": "sample string 4",
  "email": "sample string 5",
  "htmlEmails": true,
  "country": "sample string 7",
  "homePage": "sample string 8",
  "codeProjectMemberId": 9,
  "memberProfilePageUrl": "sample string 10",
  "twitterName": "sample string 11",
  "googlePlusProfile": "sample string 12",
  "linkedInProfileUrl": "sample string 13",
  "biography": "sample string 14",
  "company": "sample string 15",
  "jobTitle": "sample string 16"
}
Sample:
<MyProfileViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodeProject.WebApi.Models">
  <Avatar>sample string 4</Avatar>
  <Biography>sample string 14</Biography>
  <CodeProjectMemberId>9</CodeProjectMemberId>
  <Company>sample string 15</Company>
  <Country>sample string 7</Country>
  <DisplayName>sample string 3</DisplayName>
  <Email>sample string 5</Email>
  <GooglePlusProfile>sample string 12</GooglePlusProfile>
  <HomePage>sample string 8</HomePage>
  <HtmlEmails>true</HtmlEmails>
  <Id>1</Id>
  <JobTitle>sample string 16</JobTitle>
  <LinkedInProfileUrl>sample string 13</LinkedInProfileUrl>
  <MemberProfilePageUrl>sample string 10</MemberProfilePageUrl>
  <TwitterName>sample string 11</TwitterName>
  <UserName>sample string 2</UserName>
</MyProfileViewModel>