Parties Plugins Functions
Find Parties
Retrieves a list of parties based on the specified parameters.
- Unity3D
- API
- TypeScript
var parties = await ServiceHub.Services.Party.GetParties(new GetPartiesParams
{
Query = "",
Skip = 0,
Limit = 0
});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties?skip=[SKIP]&limit=[LIMIT]&query=[QUERY]' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
DynamicPixels.Services.Party.GetParties(input: T): Promise<Party[]>
Create New Party
Creates a new party based on the specified parameters.
- Unity3D
- API
- TypeScript
var party = await ServiceHub.Services.Party.CreateParty(new CreatePartyParams
{
Data = new PartyInput
{
Name = "",
Desc = "",
MaxMemberCount = 0,
IsPrivate = false,
Teams = new string[] { },
Channels = new string[] { },
Variables = new Dictionary<string, string>()
}
});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
--data '{
"data": {
"name": "",
"desc": "",
"image": "",
"teams": [],
"channels": [],
"variables": {
"[FIELD]": "[VALUE]"
},
"max_member_count": 10,
"is_private": true
}
}'
DynamicPixels.Services.Party.CreateParty(): Promise<Party>
Get Subscribed parties
Retrieves a list of parties the user has subscribed to.
- Unity3D
- API
- TypeScript
var parties = await ServiceHub.Services.Party.GetSubscribedParties(new GetSubscribedPartiesParams
{
Query = "",
Skip = 0,
Limit = 0
});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/me' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
DynamicPixels.Services.Party.GetLeaderboards(): Promise<Leaderboard[]>
Join To Party
Joins the user to a specified party.
- Unity3D
- API
- TypeScript
var partyMemberInfo = await ServiceHub.Services.Party.JoinToParty(new JoinToPartyParams
{
PartyId = 0,
Team = "",
Channels = new string[] { }
});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/[PARTY ID]' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
--data '{
"team": "",
"channels": []
}
'
DynamicPixels.Services.Party.
Leave Party
Removes a user from a specified party.
- Unity3D
- API
- TypeScript
await ServiceHub.Services.Party.LeaveParty(new LeavePartyParams
{
PartyId = 0
});
curl --location --request DELETE 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/[PARTY ID]' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
'
DynamicPixels.Services.Party.
Get Party By ID
Retrieves a party by its unique identifier.
- Unity3D
- API
- TypeScript
var party = await ServiceHub.Services.Party.GetPartyById(new GetPartyByIdParams
{
PartyId = 0
});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/[PARTY ID]' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
'
DynamicPixels.Services.Party.
Edit Party
Edits the details of a specified party.
- Unity3D
- API
- TypeScript
var party = await ServiceHub.Services.Party.EditParty(new EditPartyParams
{
PartyId = 0,
Party = new PartyInput
{
Name = "",
Desc = "",
MaxMemberCount = 0,
IsPrivate = false,
Teams = new string[] { },
Channels = new string[] { },
Variables = new Dictionary<string, string>()
}
});
curl --location --request PUT 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/[PARTY ID]' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
--data '{
"data": {
"name": "",
"desc": ""
"image": ""
"max_member_count": 10,
"is_private": false,
"teams": "",
"channels": "",
"data": "",
"variables": {
"[FIELD]": "[VALUE]"
}
}
}'
'
DynamicPixels.Services.Party.
Get Party Members
Retrieves a list of members in a specified party.
- Unity3D
- API
- TypeScript
var members = await ServiceHub.Services.Party.GetPartyMembers(new GetPartyMembersParams
{
PartyId = 0,
Skip = 0,
Limit = 0
});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/[PARTY ID]/members?skip=[SKIP]&limit=[LIMIT]' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
'
DynamicPixels.Services.Party.
Get Party Membership Requests
Retrieves a list of members waiting for approval to join a specified party.
- Unity3D
- API
- TypeScript
var waitingMembers = await ServiceHub.Services.Party.GetPartyWaitingMembers(
new GetPartyWaitingMembersParams
{
PartyId = 0,
Skip = 0,
Limit = 0
});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/[PARTY ID]/waiting?skip=[SKIP]&limit=[LIMIT]' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
'
DynamicPixels.Services.Party.GetLeaderboards(): Promise<Leaderboard[]>
Accept Join Request
Accepts a member's request to join a specified party.
- Unity3D
- API
- TypeScript
var member = await ServiceHub.Services.Party.AcceptJoining(new AcceptJoiningParams
{
PartyId = 0,
MembershipId = 0
});
curl --location --request PUT 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/[PARTY ID]/waiting/[Request ID]' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
'
DynamicPixels.Services.Party
Reject Join Request
Rejects a member's request to join a specified party.
- Unity3D
- API
- TypeScript
var member = await ServiceHub.Services.Party.RejectJoining(new RejectJoiningParams
{
PartyId = 0,
MembershipId = 0
});
curl --location --request DELETE 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/parties/[PARTY ID]/waiting/[Request ID]' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
'
DynamicPixels.Services.Party.GetLeaderboards(): Promise<Leaderboard[]>