mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
added profiles methods
This commit is contained in:
parent
6552b734c8
commit
731c6d74db
@ -1,18 +1,42 @@
|
||||
export default class Livestream {
|
||||
static async getStreamingKey() {
|
||||
static async deleteProfile(profile_id) {
|
||||
const request = await app.cores.api.customRequest({
|
||||
method: "GET",
|
||||
url: `/tv/streaming/key`,
|
||||
method: "DELETE",
|
||||
url: `/tv/streaming/profile`,
|
||||
data: {
|
||||
profile_id
|
||||
}
|
||||
})
|
||||
|
||||
return request.data
|
||||
}
|
||||
|
||||
static async regenerateStreamingKey() {
|
||||
static async postProfile(payload) {
|
||||
const request = await app.cores.api.customRequest({
|
||||
method: "POST",
|
||||
url: `/tv/streaming/key/regenerate`,
|
||||
url: `/tv/streaming/profile`,
|
||||
data: payload,
|
||||
})
|
||||
|
||||
return request.data
|
||||
}
|
||||
|
||||
static async getProfiles() {
|
||||
const request = await app.cores.api.customRequest({
|
||||
method: "GET",
|
||||
url: `/tv/streaming/profiles`,
|
||||
})
|
||||
|
||||
return request.data
|
||||
}
|
||||
|
||||
static async regenerateStreamingKey(profile_id) {
|
||||
const request = await app.cores.api.customRequest({
|
||||
method: "POST",
|
||||
url: `/tv/streaming/regenerate_key`,
|
||||
data: {
|
||||
profile_id
|
||||
}
|
||||
})
|
||||
|
||||
return request.data
|
||||
|
Loading…
x
Reference in New Issue
Block a user