-
Notifications
You must be signed in to change notification settings - Fork 111
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
Voice API callTo
Parameter Only Initiates Call to Last Number in Array
#111
Comments
callTo
Parameter Only Initiates Call to Last Number in Array"callTo
Parameter Only Initiates Call to Last Number in Array
As indicated in the README, the callTo parameter should be a string and not an Array. africastalking-node.js/README.md Lines 201 to 205 in 611774a
I have tested and confirmed with the following sample code import {username, apikey, callFrom} from './config.js'
import AT from 'africastalking'
const credentials = {
apiKey: apikey,
username: username
};
const callTo = '+2547XXXXXXXX,+2547YYYYYYYY';
const voice = AT(credentials).VOICE
voice
.call({callFrom, callTo})
.then((res) => res) EDIT: My bad. I have confirmed and a comma separated array should also work as per the code africastalking-node.js/lib/voice.js Lines 21 to 27 in 611774a
|
@SamuelMwangiW I could push a fix but I also created an issue here on community |
@DaggieBlanqx kindly advise |
@DaggieBlanqx is anything going to get done here? |
Hello @oxenprogrammer, we are fixing this. Thank you for your patience. |
Hello @oxenprogrammer , |
Issue Description
The
Voice API
currently specifies theCallTo
parameter as an array of phone numbers in comma-separated string format, which can be passed to the options object as shown below:However, when initiating a call, it appears that the API is only dialing the last number in the array, rather than calling all the numbers as expected.
Expected Behavior
The expected behavior is for the
callTo
parameter to facilitate calling all the numbers listed in the array, ensuring that each number in the list receives a call.The text was updated successfully, but these errors were encountered: