-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Voice API #50
Add Voice API #50
Conversation
Is there a way you can add contact through the PHP API?. Because when I was testing that I got the error "You are not authorized to perform this operation" |
@EddieSeli: Is that related to this PR? Otherwise better suited for #45, which deals with contacts and groups. |
Okay, thanks. Will check that out |
|
||
try { | ||
$data = $messageBird->voiceRecordings->download('c226420d-f107-4db1-b2f9-4646656a90bc', '4f5ab5f4-c4b6-4586-9255-980bb3fd7336', 'a94f7d51-19b5-4eb8-9e8e-90fce490a577'); // Set call, leg and recording id here | ||
echo sprintf("Received %d bytes.", mb_strlen($data)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be very handy to add to the example how to save the wave file locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
try { | ||
$data = $messageBird->voiceTranscriptions->download('c226420d-f107-4db1-b2f9-4646656a90bc', '4f5ab5f4-c4b6-4586-9255-980bb3fd7336', 'a94f7d51-19b5-4eb8-9e8e-90fce490a577', '44e73d1f-201d-4a7d-963a-9d76bbca6c4f'); // Set call, leg, recording and transcription id here | ||
echo sprintf("Received %d bytes.", mb_strlen($data)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here, how about outputting the actual content of the transcription?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
However the voice API returns
Therefore the |
@Dirk94 Pushed a fix for this. Because Voice API currently has different pagination params (e.g. no |
…nto add-voice-api
@Dirk94 tests are still failing. It seems like the PR uses the new array notation |
@dstotijn can you do review of the changes since this week? |
OK, looks good! |
This PR adds Voice API endpoints to the PHP client.