| GET,POST | /UserContentfulPromotionsByIds | Gets promotion MetaData by ids | Gets promotions MetaData from Contentful |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PromotionIds | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| promotionsMetaData | form | List<ContentfulPromotionMetaData> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorNo | form | int | No | |
| Message | form | string | No | |
| Identity | form | long? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| PromotionId | form | int | No | |
| PromotionEndDate | form | DateTime | No | |
| Title | form | string | No | |
| MasterEventId | form | List<string> | No | |
| EventId | form | List<string> | No | |
| EventTypeId | form | List<string> | No | |
| EventClassId | form | List<string> | No | |
| CategoryId | form | List<string> | No | |
| MasterCategoryId | form | List<string> | No | |
| MasterEventClassId | form | List<string> | No | |
| MasterEventTypeId | form | List<string> | No | |
| MasterCategoryClassId | form | List<string> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /UserContentfulPromotionsByIds HTTP/1.1
Host: tstextweb20.np.bluebet.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"PromotionIds":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"promotionsMetaData":[{"Id":0,"PromotionId":0,"PromotionEndDate":"0001-01-01T00:00:00.0000000Z","Title":"String","MasterEventId":["String"],"EventId":["String"],"EventTypeId":["String"],"EventClassId":["String"],"CategoryId":["String"],"MasterCategoryId":["String"],"MasterEventClassId":["String"],"MasterEventTypeId":["String"],"MasterCategoryClassId":["String"]}],"ErrorNo":0,"Message":"String","Identity":0}