Add List transcripts support
Closed this issue · 2 comments
ploeber commented
- Add classmethod
Transcript.list()
, andTranscript.list_async()
(similar toget_by_id
) - support all params from here https://www.assemblyai.com/docs/api-reference/transcript#list-transcripts
- Add support for pagination by adding a
next_page_url
parameter (Note: The Node SDK takes either params or a url, no combination)
leotulipan commented
for now I am doing the inelegant
url = "https://api.assemblyai.com/v2/transcript"
headers = {
"Authorization": os.getenv("ASSEMBLY_AI_KEY")
}
response = requests.get(url, headers=headers)
data = response.json()
for i, transcript in enumerate(data["transcripts"]):
# processing here
ploeber commented
Yup, that's the perfect way to do it with requests, thanks for sharing! We're aiming to ship SDK support for this next week :)