TBS Apps API

<back to all web services

ShareWinRequest

Requires Authentication
The following routes are available for this service:
POST/ShareWinShares a Win with one or more social connections.Shares Win.
ShareWinRequest Parameters:
NameParameterData TypeRequiredDescription
CommentbodystringNoComment
SharedAmongGroupsbodySocialGroup[]Noa list of social groups
SharedWinbodySharedWinInfoNoShared Win Info
UsernamebodystringNoUsername
UrlbodystringNoUrl
SenderBetIdbodylongNoSenderBetId
SocialGroup Parameters:
NameParameterData TypeRequiredDescription
GroupNameformstringNo
GroupIdformintNo
UsersformIEnumerable<SocialUser>No
IsSelectedformboolNo
FullNameformstringNo
CategoryformstringNo
UserTypeformstringNo
EmailformstringNo
EmailHashformstringNo
WinningTipsSentformintNo
WinningTipsReceivedformintNo
IsFollowingformboolNo
SocialUser Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ClientIdformintNo
SharedWinInfo Parameters:
NameParameterData TypeRequiredDescription
SenderMessageformstringNo
ShareItemResponse Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
ErrorMessagesformList<string>No
SuccessMessageformstringNo

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 /ShareWin HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Comment":"String","SharedAmongGroups":[{"GroupName":"String","GroupId":0,"IsSelected":false,"FullName":"String","Category":"String","UserType":"String","Email":"String","EmailHash":"27118326006d3829667a400ad23d5d98","WinningTipsSent":0,"WinningTipsReceived":0,"IsFollowing":false}],"SharedWin":{"SenderMessage":"String"},"Username":"String","Url":"String","SenderBetId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Success":false,"ErrorMessages":["String"],"SuccessMessage":"String"}