Get alerts info

API base url: https://funplace.fun/api/v1/user/get/

Get last donations

GET alerts/donations

scopes: Funplace::view_alerts or Funplace::view_alerts::alerts/donations

Change the address of the link through which the user accepts donations.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <access_token>

Body

Parameter
Required?
Type
Description

newlink

yes

string

The value that will now be located after https://funplace.fun/d/ at the donation link. ATTENTION: The minimum value length is 3 characters

Response

{
  "success": "ok",
  "data": {
    "link_base": "https://funplace.fun/d/",
    "older_link": "Funplac",
    "new_link": "Funplace",
  },
}

Response body (If successful)

Parameter
Required?
Type
Description

success

yes

string

Always have the value ok.

data

yes

array

An array with information about the change.

data[link_base]

yes

URI

The base link usually takes the value https://funplace.fun/d/.

data[older_link]

yes

string

Old link suffix value.

data[new_link]

yes

string

New link suffix value.

Edit donate page color

GET donate_page/color

scopes: Funplace::edit or Funplace::edit::donate_page/color

Change the color of the donation page.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <access_token>

Body

Parameter
Required?
Type
Description

newcolor

yes

color code

New design color value. Example: #1B1B1B

Response

{
  "success": "ok",
  "data": {
    "older_color": "#2DFFCD",
    "new_color": "#7d9339",
  },
}

Response body (If successful)

Parameter
Required?
Type
Description

success

yes

string

Always have the value ok.

data

yes

array

An array with information about the change.

data[older_color]

yes

color code

Old color of the donation page value.

data[new_color]

yes

color code

New color of the donation page value.

Edit donate page background

GET donate_page/background

scopes: Funplace::edit or Funplace::edit::donate_page/background

Change the background of the donation page.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <access_token>

Body

Parameter
Required?
Type
Description

newbackground

yes

New background of the donation page.

Response

{
  "success": "ok",
  "data": {
    "older_background": {
      "type": "Color",
      "Color": "#000000",
    },
    "new_background": {
      "type": "Picture",
      "Picture": "https://funplace.fun/back.svg",
    },
  },
}

Response body (If successful)

Parameter
Required?
Type
Description

success

yes

string

Always have the value ok.

data

yes

array

An array with information about the change.

data[older_background]

yes

Old background of the donation page value.

data[new_background]

yes

New background of the donation page value.

Edit description

GET donate_page/description

scopes: Funplace::edit or Funplace::edit::donate_page/description

Change the description on the donation page.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <access_token>

Body

Parameter
Required?
Type
Description

turnon

yes

bool

Enable or disable the description on the donation page.

newdesciption

no

New description value. Supports editor.js. ATTENTION: Leave blank if you are not changing the description. The minimum value length is 10 character.

editor.js

no

bool

If you sent json from editor.js data in the description, then specify true.

Response

{
  "success": "ok",
  "data": {
    "trunon": true,
    "older_descripton": "Привет, я лучший стример твича...",
    "new_descripton": "Funplace هي أفضل خدمة التبرع.",
  },
}

Response body (If successful)

Parameter
Required?
Type
Description

success

yes

string

Always have the value ok.

data

yes

array

An array with information about the change.

data[trunon]

yes

bool

The description on the donation page is turned on or off.

data[older_descripton]

yes (If you have submitted a new description)

string

Old description on the donation page value.

data[new_descripton]

yes (If you have submitted a new description)

string

New description on the donation page value.

data[description]

yes (If you haven't submitted a new description)

string

Description on the donation page value.

Last updated

Was this helpful?