update docs
This commit is contained in:
@@ -29,6 +29,7 @@ export default function Docs() {
|
||||
ids. If no IDs are provided, all music will be returned.
|
||||
- \`/api/get_limit\`: Get quota Info
|
||||
- \`/api/extend_audio\`: Extend audio length
|
||||
- \`/api/clip\`: Get clip information based on ID passed as query parameter \`id\`
|
||||
\`\`\`
|
||||
|
||||
Feel free to explore the detailed API parameters and conduct tests on this page.
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user