POST api/admin/fbPage

Request Information

URI Parameters

None.

Body Parameters

YSHFbPageDataModel
NameDescriptionTypeAdditional information
uid

UID

integer

None.

id

facebook page ID. Generated by Facebook.

string

None.

url

URL to the page

string

None.

bonus

Credit bonus can get after like

integer

None.

display_name

Display name of the page

string

None.

expiry_date

Expiry date of the compaign

date

None.

status

Status

integer

None.

created_date

Created datetime when start the campaign

date

None.

type

Contact person name

GCSLocaleWordingDataModel

None.

image_url

string

None.

Request Formats

application/json, text/json

Sample:
{
  "uid": 1,
  "id": "sample string 2",
  "url": "sample string 3",
  "bonus": 4,
  "display_name": "sample string 5",
  "expiry_date": "2018-01-22T08:46:59.1688632+08:00",
  "status": 6,
  "created_date": "2018-01-22T08:46:59.1688632+08:00",
  "type": {
    "zh": "sample string 2",
    "en": "sample string 3"
  },
  "image_url": "https://graph.facebook.com/v2.11/sample string 2/picture?width=160&height=160"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'YSHFbPageDataModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.