TBS Apps API

<back to all web services

ShareFormRequest

Requires Authentication
The following routes are available for this service:
POST/ShareFormShares form with one or more social connections. Shares form with social contacts.
ShareFormRequest Parameters:
NameParameterData TypeRequiredDescription
ConnectionIdbodystringNoConnectionId
EventIdbodyintNoEventId
CommentbodystringNoComment
SharedAmongGroupsbodySocialGroup[]Noa list of social groups
SharedAmongConnectionsbodySocialUser[]Noa list of social users
SocialGroup Parameters:
NameParameterData TypeRequiredDescription
GroupNameformstringNo
GroupIdformintNo
UsersformIEnumerable<SocialUser>No
IsSelectedformboolNo
FullNameformstringNo
CategoryformstringNo
UserTypeformstringNo
EmailformstringNo
EmailHashformstringNo
WinningTipsSentformintNo
WinningTipsReceivedformintNo
IsFollowingformboolNo
SocialUser Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ClientIdformintNo
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 /ShareForm HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ConnectionId":"String","EventId":0,"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}],"SharedAmongConnections":[{"Name":"String","ClientId":0}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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