added get clip route

This commit is contained in:
Alistair Hughes 2024-05-12 17:12:24 +01:00
parent 74e7ebb5e3
commit b77bfc71f1
2 changed files with 7 additions and 1 deletions

View File

@ -338,6 +338,12 @@ class SunoApi {
}));
}
public async getClip(clipId: string): Promise<object> {
await this.keepAlive(false);
const response = await this.client.get(`${SunoApi.BASE_URL}/api/clip/${clipId}`);
return response.data;
}
public async get_credits(): Promise<object> {
await this.keepAlive(false);
const response = await this.client.get(`${SunoApi.BASE_URL}/api/billing/info/`);