# Abuse
## abuse/market
Test
Report Market App
```
/!api/abuse/market
{
"app_id":659,
"reason_text":"This is not legal"
}
```
# Channel
## channel/addTest
Create a new channel in group
```
/!api/channel/add
{
"group_id": 1,
"nick": "new-channel",
"title": "New Channel",
"description": "This channel is for example",
"type": 1,
"data": "",
"read_role_ids" : "-1,0",
"write_role_ids": "0",
"control_role_ids": "",
"read_plus_user_ids": "",
"read_minus_user_ids": "",
"write_plus_user_ids": "",
"write_minus_user_ids": "",
"control_plus_user_ids": "",
"control_minus_user_ids": ""
}
```
## channel/delTest
Delete channel from channel_id
```
/!api/channel/del
{
"channel_id": 1
}
```
## channel/detailTest
Return (plus|minus)_(read|write|control)_users
```
/!api/channel/detail
{
"channel_id": 936
}
```
## channel/getTest
Returns channel info from channel_id
```
/!api/channel/get
{
"channel_id": 6236
}
```
## channel/listTest
Returns can readable channels in group
```
/!api/channel/list
{ "group_id": 1 }
```
## channel/options/setTest
Change channel options
```
/!api/channel/options/set
{
"channel_id": 1,
"add_read_plus_user_id" ?: 76,
"del_read_plus_user_id" ?: 76,
"add_read_minus_user_id" ?: 76,
"del_read_minus_user_id" ?: 76,
"add_write_plus_user_id" ?: 76,
"del_write_plus_user_id" ?: 76,
"add_write_minus_user_id" ?: 76,
"del_write_minus_user_id" ?: 76,
"add_control_plus_user_id" ?: 76,
"del_control_plus_user_id" ?: 76,
"add_control_minus_user_id" ?: 76,
"del_control_minus_user_id" ?: 76,
}
```
## channel/setTest
Create a new channel in group
```
/!api/channel/set
{
"channel_id": 1,
"nick": "edited-channel",
"title": "Edited Channel",
"description": "This channel is edited",
"type": 1,
"data": "",
"read_role_ids" : "-1,0",
"write_role_ids": "0",
"control_role_ids": "",
"read_plus_user_ids": "",
"read_minus_user_ids": "",
"write_plus_user_ids": "",
"write_minus_user_ids": "",
"control_plus_user_ids": "",
"control_minus_user_ids": ""
}
```
## channel/showTest
Show channel by channel_id
```
/!api/channel/show
{
"group_nick": "TFF",
"channel_nick": "topluyo-super-ligi"
}
```
## channel/sortTest
Change channel orders by id
```
/!api/channel/sort
{
"group_id": 1,
"channel_ids": "1627,938,1576,629,586,927,778,713,226,466,349,209,47,1542"
}
```
# Crew
## crew/addTest
Create new crew in group
```
/!api/crew/add
{
"group_id": 1,
"name": "Programmer",
"color": "#00CC00",
"image": ""
}
```
## crew/delTest
Delete crew from crew_id
```
/!api/crew/del
{
"crew_id": 220
}
```
## crew/getTest
Return crew from crew_id
```
/!api/crew/get
{
"crew_id": 1
}
```
## crew/joinTest
Join into Crew by crew_id
```
/!api/crew/join
{
"crew_id": 1
}
```
## crew/leaveTest
Leave into Crew by crew_id
```
/!api/crew/leave
{
"crew_id": 1
}
```
## crew/listTest
Return crews by group_id
```
/!api/crew/list
{
"group_id": 1
}
```
## crew/setTest
Change crew with crew_id
```
/!api/crew/set
{
"crew_id": 220,
"name": "Programmer",
"color": "#00CC00",
"image": ""
}
```
## crew/sortTest
Change crew orders by number
```
/!api/crew/sort
{
"group_id": 1,
"crew_ids": "2,3,22,23,21,19,20"
}
```
# Favorite
## favorite/listTest
Return favorite channels logined user
```
/!api/favorite/list
{}
```
## favorite/toggleTest
Toggle channel in my favorite list by channel_id
```
/!api/favorite/toggle
{
"channel_id": 1
}
```
# Friend
## friend/addTest
Add friend or accept friend request by user_id
```
/!api/friend/add
{
"user_id": 1
}
```
## friend/delTest
Remove friend by user_id
```
/!api/friend/del
{
"user_id": 1
}
```
## friend/statusTest
Add friend or accept friend request by user_id
```
/!api/friend/status
{
"user_id": 1
}
```
# Group
## group/addTest
Create a new group
```
/!api/group/add
{
"name": "Sunucu Adı",
"description": "we ❤️ topluyo"
}
```
## group/delTest
Delete all data from group
```
/!api/group/del
{
"group_id": 2189
}
```
## group/founderTest
Returns group grounder user
```
/!api/group/founder
{
"group_id": 1
}
```
## group/getTest
Returns groups public info from id
```
/!api/group/get
{ "id": 1 }
```
## group/getTest
Returns groups public info from nick
```
/!api/group/get
{ "nick": "Destek" }
```
## group/joinTest
Sending a request for join group by group_id
```
/!api/group/join
{
"group_id": 1
}
```
## group/joinlistTest
Returns group joinlist by group_id
```
/!api/group/joinlist
{
"group_id": 3
}
```
## group/leaveTest
Leave group by group_id
```
/!api/group/leave
{
"group_id": 1
}
```
## group/listTest
Returns current user groups
```
/!api/group/list
{}
```
## group/onlineTest
Returns online user_ids by group_id
```
/!api/group/online
{
"group_id": 1
}
```
## group/popularTest
Returns popular groups
```
/!api/group/popular
{}
```
## group/setTest
```
/!api/group/set
{}
```
## group/set/homeTest
Change home page by group_id
```
/!api/group/set/home
{
"group_id": 99,
"home": "Hello this is home page content"
}
```
## group/set/permissionsTest
Set group permissions and options by group_id
```
/!api/group/set/permissions
{
"group_id": 99,
"discover_me": 1,
"everyone_member": 1,
"abuse_filter": 1,
"enable_ads": 1
}
```
## group/set/profileTest
Set group profile by group_id
```
/!api/group/set/profile
{
"group_id": 1,
"name": "Group Name",
"image": "https://cdn.topluyo.com/group/XXXXXXXXXXX",
"description:" "We ❤️ topluyo"
}
```
## group/set/socialsTest
Set social accounts group by group_id
```
/!api/group/set/socials
{
"social_instagram" : "nick",
"social_x" : "nick",
"social_youtube" : "nick",
"social_tiktok" : "nick",
"social_kick" : "nick",
"social_twitch" : "nick",
"social_github" : "nick",
"social_steam" : "url",
"social_linkedin" : "url",
"social_website" : "url"
}
```
## group/sortTest
Change group orders by id
```
/!api/group/sort
{
"group_ids": "1627,938,1576,629,586,927,778,713,226,466,349,209,47,1542"
}
```
# Market
## market/api/getTest
Returns current app key
```
/!api/market/api/get
{
"app_id":99
}
```
## market/api/resetTest
```
/!api/market/api/reset
{}
```
## market/addTest
Create a new app
```
/!api/market/add
{
"name" : "",
"app_type_id" : "1",
"description" : ""
}
```
## market/app/installTest
Install app to group
```
/!api/market/app/install
{
"app_id": 20,
"group_id": 999
}
```
## market/comment/addTest
Create a comment by app_id
```
/!api/market/comment/add
{
"app_id": 20,
"rate": 5,
"text": "Çok güzel bir uygulama"
}
```
## market/comment/listTest
List Market comments by app_id
```
/!api/market/comment/list
{
"app_id": 20
}
```
## market/getTest
Returns app by id
```
/!api/market/get
{
"app_id": 20
}
```
## market/hideTest
Hide-Delete app in my Market Place
```
/!api/market/hide
{
"app_id": 8
}
```
## market/library/addTest
Add app into library
```
/!api/market/library/add
{
"app_id": 20
}
```
## market/library/delTest
[TEST] Remove application from library.
```
/!api/market/library/del
{
"app_id": 20
}
```
## market/library/listTest
Return my application library
```
/!api/market/library/list
{}
```
## market/listTest
Returns market items
```
/!api/market/list
{
"app_type_ids" : "1,4",
"publisher_id" : 6809,
"search" : "Siber",
"verified": 1,
"limit" : 1
}
```
## market/myappsTest
Returns current user apps
```
/!api/market/myapps
{}
```
## market/publisher/getTest
Return publisher from id
```
/!api/market/publisher/get
{
"publisher_id": 1
}
```
## market/revision/getTest
Get last revision by app_id
```
/!api/market/revision/get
{
"app_id": 9999
}
```
## market/revision/publishTest
Send publish last revision
```
/!api/market/revision/publish
{
"app_id": 999
}
```
## market/revision/set/contentTest
Set revision to app
```
/!api/market/revision/set/content
{
"app_id": 9999,
"name" : ""
"description" : ""
"image" : "https://cdn.topluyo.com/app/icon/...."
"icon" : "https://cdn.topluyo.com/app/icon/...."
}
```
## market/revision/set/detailTest
Set revision to app
```
/!api/market/revision/set/detail
{
"app_id": 9999,
"link" : "https://xxxxx"
"css" : "body{filter:grayscale(1)}"
"webhook" : "https://xxxxxxxxxx"
"app_type_id" : 1
}
```
# Member
## member/getTest
Return member by user_id
```
/!api/member/get
{
"group_id": 1,
"user_id": 1
}
```
## member/getTest
Return member by nick name
```
/!api/member/get
{
"group_id": 1,
"user_nick": "hasandelibas"
}
```
## member/infoTest
Returns current user membership info
```
/!api/member/info
{
"group_id":1
}
```
## member/kickTest
Kick member from group
```
/!api/member/kick
{
"group_id": 1,
"user_id" :
}
```
## member/listTest
Returns group members
```
/!api/member/list
{
"group_id": 1
}
```
## member/role/setTest
Set roles by group_id and user_id
```
/!api/member/role/set
{
"group_id": 1,
"user_id": 1,
"role_ids": "1,2,4"
}
```
## member/waiter/acceptTest
Accept user to group
```
/!api/member/waiter/accept
{
"group_id": 9,
"user_id" : 18
}
```
## member/waiter/rejectTest
Reject member from join list by user_id
```
/!api/member/waiter/reject
{
"group_id": 9,
"user_id" : 18
}
```
# Message
## message/getTest
Returns messages
```
/!api/message/get
{
"user_id": 1
}
```
## message/get/userTest
Get messages from user
```
/!api/message/get/user
{
"user_id": 1
}
```
## message/list/userTest
Returns list of user messages
```
/!api/message/list/user
{}
```
## message/readTest
Returns messages
```
/!api/message/read
{
"user_id": 1
}
```
## message/sendTest
Send message
```
/!api/message/send
{
"user_id" : 5,
"message" : "Hello !"
}
```
# Notification
## notification/get/push/keyTest
Get public vapid key for Push Notification
```
/!api/notification/get/push/key
{}
```
## notification/listTest
Get last notifications
```
/!api/notification/list
{}
```
## notification/readTest
Read notificiation by id
```
/!api/notification/read
{
"id" : 40000
}
```
## notification/read/allTest
Read All Notification
```
/!api/notification/read/all
{
"type":0
}
```
## notification/set/push/endpointTest
Set endpoint for Push Notification.
```
/!api/notification/set/push/endpoint
Format must be, [endpoint];;[keys.p256dh];;[keys.auth]
```
## notification/set/push/endpointTest
{
```
/!api/notification/set/push/endpoint
"endpoint": ""
```
## notification/set/push/endpointTest
}
```
/!api/notification/set/push/endpoint
{}
```
# Permission
## permission/channelTest
Returns current user power on channel
```
/!api/permission/channel
{ "channel_id": 1, "user_id": 1 }
```
## permission/powerTest
Returns users power on group
```
/!api/permission/power
{ "group_id":1, "user_id":1 }
```
# Post
## post/addTest
Add a post by channel_id
```
/!api/post/add
{
"channel_id": 7654,
"code":"",
"text": "Selam millet =)"
}
```
## post/addTest
Add a post in channel
```
/!api/post/add
{
"group_nick": "Destek",
"channel_nick": "chat",
"code: "",
"text": "Selam Millet!"
}
```
## post/bumoteTest
Add a bumote by post_id
```
/!api/post/bumote
{
"post_id": 7654,
"code":"",
}
```
## post/delTest
Remove post by post_id
```
/!api/post/del
{
"post_id": 2124
}
```
## post/getTest
Return post by post_id
```
/!api/post/get
{
"post_id": 19777
}
```
## post/listTest
Returns post in channel
```
/!api/post/list
{
"channel_id": 17,
"after": 0,
"before": 999999999
}
```
## post/listTest
Returns post in channel
```
/!api/post/list
{
"group_nick": "Kurumsal",
"channel_nick": "guncellemeler",
"after": 0,
"before": 999999999
}
```
## post/setTest
Change post by post_id
```
/!api/post/set
{
"post_id": 40076,
"text": "Naber millet"
}
```
## post/setTest
```
/!api/post/set
Change post by channel_id, code
```
## post/setTest
{
```
/!api/post/set
"channel_id": 9999,
```
## post/setTest
"code": "XXXXXXXXX",
```
/!api/post/set
"text": "Naber millet"
```
## post/setTest
}
```
/!api/post/set
{}
```
# Public
## public/searchTest
Search user or group by nick or name
```
/!api/public/search
{
"text": "delibas"
}
```
## public/usernickavailableTest
Returns 1 or 0 if nick name is available
```
/!api/public/usernickavailable
{
"nick": "delibas"
}
```
# Role
## role/addTest
Create a new role in group
```
/!api/role/add
{
"group_id" : 1,
"name" : "Role Name",
"color" : "#DE11BA",
"power_group" : 0,
"power_role" : 0,
"power_channel": 0,
"power_post" : 0,
"power_member" : 0,
"power_room" : 0,
"power_team" : 0,
"power_mention": 0
}
```
## role/delTest
Delete role, from id
```
/!api/role/del
{
"role_id": 2087
}
```
## role/getTest
Returns role info
```
/!api/role/get
{ "role_id": 2 }
```
## role/listTest
Returns group roles
```
/!api/role/list
{ "group_id": 1 }
```
## role/setTest
Set role properties from role_id
```
/!api/role/set
{
"role_id" : 1,
"name" : "Role Name",
"color" : "#DE11BA",
"power_group" : 0,
"power_role" : 0,
"power_channel": 0,
"power_post" : 0,
"power_member" : 0,
"power_room" : 0,
"power_team" : 0,
"power_mention": 0
}
```
## role/sortTest
Change role orders by number
```
/!api/role/sort
{
"group_id": 1,
"role_ids": "1627,938,1576,629,586,927,778,713,226,466,349,209,47,1542"
}
```
# Team
## team/listTest
Returns group teams by group_id
```
/!api/team/list
{
"group_id": 1
}
```
# Test
## test/ipTest
Returns current user remote ip address
```
/!api/test/ip
{}
```
## test/timeTest
Returns current server time
```
/!api/test/time
{}
```
# Turbo
## turbo/history/listTest
Get last turbo transfer history
```
/!api/turbo/history/list
{
"limit" : 10,
"offset": 0
}
```
## turbo/transferTest
Transfer turbo to user_id
```
/!api/turbo/transfer
{
"user_id": 2,
"quantity": 0.01,
"message": "happy birthday"
}
```
# User
## user/2fa/getTest
Returns 2fa code before verified
```
/!api/user/2fa/get
{}
```
## user/2fa/verifyTest
Verify 2fa code
```
/!api/user/2fa/verify
{
"code": "123456"
}
```
## user/authTest
Login or register user
```
/!api/user/auth
{
"email" : "[email protected]",
"pass" : "12345678"
}
```
## user/blockTest
Block user from by user_id
```
/!api/user/block
{
"user_id": 1712
}
```
## user/blocked/usersTest
Return current user blocked users
```
/!api/user/blocked/users
{}
```
## user/devicesTest
Returns current user devices
```
/!api/user/devices
{}
```
## user/friendsTest
Returns user friends by logined user
```
/!api/user/friends
{}
```
## user/groupsTest
Returns groups current user owned
```
/!api/user/groups
{}
```
## user/groupsTest
Returns groups by owner id
```
/!api/user/groups
{
"owner_id": 1
}
```
## user/idTest
Returns current user id
```
/!api/user/id
{}
```
## user/infoTest
Returns current user private info
```
/!api/user/info
{}
```
## user/infoTest
Return public user info from id
```
/!api/user/info
{ "id": 1 }
```
## user/infoTest
Return public user info from nick
```
/!api/user/info
{ "nick": "delibas" }
```
## user/lang/setTest
Set user language, lang must be
```
/!api/user/lang/set
{
"lang": "az"
}
```
## user/loginTest
Login user and send client key
```
/!api/user/login
{
"email" : "[email protected]",
"pass" : "12345678"
}
```
## user/logoutTest
Logout current user
```
/!api/user/logout
{}
```
## user/logoutTest
Logout from token
```
/!api/user/logout
{
"token": "XXXXXXXXXXXXXXXXXXXXXXX"
}
```
## user/logoutTest
Logout by other devices
```
/!api/user/logout
{
"other": "XXXXXXXXXXXXXXXXXXXXXXX"
}
```
## user/notification/infoTest
Get Notification Status
```
/!api/user/notification/info
{}
```
## user/notification/setTest
Set user notification types.
```
/!api/user/notification/set
{
"mention": 1,
"friendship": 1,
"news": 1,
"turbo": 1,
"message": 1
}
```
## user/passTest
Pass user with code. That code sending with email.
```
/!api/user/pass
{
"code":"xxxxxxxxxxxx"
}
```
## user/qr/getTest
Get qr for login
```
/!api/user/qr/get
{
"private_key":"XXXXXXXXXXXXXXXXXXXX"
}
```
## user/qr/setTest
Login with QR code
```
/!api/user/qr/set
{
"public_key":"XXXXXXXXXXXXXXXXXXXX"
}
```
## user/registerTest
Register a new user
```
/!api/user/register
{
"email" : "[email protected]",
"pass" : "12345678.",
}
```
## user/register/verifyTest
Verify registered user
```
/!api/user/register/verify
{
"code": "verifyXXXXXXXXXXXXX"
}
```
## user/set/privacyTest
Set current user privacy settings
```
/!api/user/set/privacy
{
"everyone_call": 0,
"everyone_message": 0
}
```
## user/set/profileTest
Set profile by logined user
```
/!api/user/set/profile
{
"image": "",
"name": "Hasan Delibaş",
"nick": "delibas",
"about_me": "I am developer in topluyo"
}
```
## user/set/socialsTest
Set social account by logined user
```
/!api/user/set/socials
{
"social_instagram" : "nick",
"social_x" : "nick",
"social_youtube" : "nick",
"social_tiktok" : "nick",
"social_kick" : "nick",
"social_twitch" : "nick",
"social_github" : "nick",
"social_steam" : "url",
"social_linkedin" : "url,
"social_website" : "url"
}
```
## user/unblockTest
Unblock user by user_id
```
/!api/user/unblock
{
"user_id": 1
}
```
## user/waiting/listTest
{}
```
/!api/user/waiting/list
{}
```
# /!apis Test
```
/!apis
[{
"api": "/!api/test/ip"
},{
"api": "/!api/user/id"
},{
"api": "/!api/user/info"
},{
"api": "/!api/group/list"
},{
"api": "/!api/group/popular"
},{
"api": "/!api/channel/list",
"data": {"group_id":1}
},{
"api": "/!api/member/list",
"data": {"group_id":1}
}]
```
Topluyo Ekibi =)