TBS Apps API

<back to all web services

ContentfulGetAllPromotionsNoFilterRequest

The following routes are available for this service:
GET/ContentfulGetAllPromotionsNoFilterGets all promotions, without any filtersGets all promotions from contentful, without any filters
ContentfulGetAllPromotionsNoFilterResponse Parameters:
NameParameterData TypeRequiredDescription
PromotionsformList<ContentfulPromoForAffiliates>No
ResponseDataBase Parameters:
NameParameterData TypeRequiredDescription
ErrorNoformintNo
MessageformstringNo
Identityformlong?No
ContentfulPromoForAffiliates Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
PromotionIdformstringNo
NameformstringNo
DescriptionformstringNo
PromotionStartDateformDateTime?No
PromotionEndDateformDateTime?No
IconUrlformstringNo
ImageUrlformstringNo
ImageHeightformdecimal?No
ImageWidthformdecimal?No
TermsAndConditionStringformstringNo
LinkTitleformstringNo
LinkUrlformstringNo
IsPublicformbool?No
ShowToLoggedInformbool?No
ShowToLoggedOutformbool?No
VisibleOnWebsiteformbool?No
VisibleOnAndroidformbool?No
VisibleOnIOSformbool?No
JurisdictionCodeformstringNo

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.

GET /ContentfulGetAllPromotionsNoFilter HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Promotions":[{"Id":0,"PromotionId":"String","Name":"String","Description":"String","PromotionStartDate":"0001-01-01T00:00:00.0000000Z","PromotionEndDate":"0001-01-01T00:00:00.0000000Z","IconUrl":"String","ImageUrl":"String","ImageHeight":0,"ImageWidth":0,"TermsAndConditionString":"String","LinkTitle":"String","LinkUrl":"String","IsPublic":false,"ShowToLoggedIn":false,"ShowToLoggedOut":false,"VisibleOnWebsite":false,"VisibleOnAndroid":false,"VisibleOnIOS":false,"JurisdictionCode":"String"}],"ErrorNo":0,"Message":"String","Identity":0}