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
Content-Type
application/json
Authorization
Bearer <access_token>
Body
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",
},
}{
"error": "bad request",
"error_data": "this link is already in use by another user"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
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
Content-Type
application/json
Authorization
Bearer <access_token>
Body
newcolor
yes
color code
New design color value.
Example: #1B1B1B
Response
{
"success": "ok",
"data": {
"older_color": "#2DFFCD",
"new_color": "#7d9339",
},
}{
"error": "bad request",
"error_data": "invalid 'newcolor' value"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
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
Content-Type
application/json
Authorization
Bearer <access_token>
Body
Response
{
"success": "ok",
"data": {
"older_background": {
"type": "Color",
"Color": "#000000",
},
"new_background": {
"type": "Picture",
"Picture": "https://funplace.fun/back.svg",
},
},
}{
"error": "bad request",
"error_data": "invalid 'newbackground' value"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
success
yes
string
Always have the value ok.
data
yes
array
An array with information about the change.
Edit description
GET donate_page/description
scopes: Funplace::edit or Funplace::edit::donate_page/description
Change the description on the donation page.
Headers
Content-Type
application/json
Authorization
Bearer <access_token>
Body
turnon
yes
bool
Enable or disable the description on the donation page.
newdesciption
no
Sting or Editor.js data
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 هي أفضل خدمة التبرع.",
},
}{
"error": "bad request",
"error_data": "invalid 'turnon' value"
}{
"error": "unauthorized",
"error_data": {},
}Response body (If successful)
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?