update docs

This commit is contained in:
Alistair Hughes
2024-05-14 18:01:12 +01:00
parent 164fd70b63
commit cde08a133f
3 changed files with 19 additions and 0 deletions
+5
View File
@@ -338,6 +338,11 @@ class SunoApi {
}));
}
/**
* Retrieves information for a specific audio clip.
* @param clipId The ID of the audio clip to retrieve information for.
* @returns A promise that resolves to an object containing the audio clip information.
*/
public async getClip(clipId: string): Promise<object> {
await this.keepAlive(false);
const response = await this.client.get(`${SunoApi.BASE_URL}/api/clip/${clipId}`);