TBS Apps API

<back to all web services

SocialGroupsRequest

Social Service

Requires Authentication
The following routes are available for this service:
GET,POST/SocialGroupsGets Social Connections for the currently authenticated user.Gets Social Users and Groups belonging to the currently authenticated user.
SocialGroupsResponse Parameters:
NameParameterData TypeRequiredDescription
GroupsformList<SocialGroup>No
SocialGroup Parameters:
NameParameterData TypeRequiredDescription
GroupNameformstringNo
GroupIdformintNo
UsersformIEnumerable<SocialUser>No
IsSelectedformboolNo
FullNameformstringNo
CategoryformstringNo
UserTypeformstringNo
EmailformstringNo
EmailHashformstringNo
WinningTipsSentformintNo
WinningTipsReceivedformintNo
IsFollowingformboolNo
SocialUser Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ClientIdformintNo

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

HTTP + XML

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

POST /SocialGroups HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SocialGroupsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.RequestLayer.RequestFunctions" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SocialGroupsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBS.Frontend.Messaging.DataContracts">
  <Groups>
    <SocialGroup>
      <_x003C_Category_x003E_k__BackingField>String</_x003C_Category_x003E_k__BackingField>
      <_x003C_Email_x003E_k__BackingField>String</_x003C_Email_x003E_k__BackingField>
      <_x003C_FullName_x003E_k__BackingField>String</_x003C_FullName_x003E_k__BackingField>
      <_x003C_GroupId_x003E_k__BackingField>0</_x003C_GroupId_x003E_k__BackingField>
      <_x003C_GroupName_x003E_k__BackingField>String</_x003C_GroupName_x003E_k__BackingField>
      <_x003C_IsFollowing_x003E_k__BackingField>false</_x003C_IsFollowing_x003E_k__BackingField>
      <_x003C_IsSelected_x003E_k__BackingField>false</_x003C_IsSelected_x003E_k__BackingField>
      <_x003C_UserType_x003E_k__BackingField>String</_x003C_UserType_x003E_k__BackingField>
      <_x003C_Users_x003E_k__BackingField i:nil="true" />
      <_x003C_WinningTipsReceived_x003E_k__BackingField>0</_x003C_WinningTipsReceived_x003E_k__BackingField>
      <_x003C_WinningTipsSent_x003E_k__BackingField>0</_x003C_WinningTipsSent_x003E_k__BackingField>
    </SocialGroup>
  </Groups>
</SocialGroupsResponse>