5

I tried to get a list of all conferences via Twilio PHP helper library, but get 404 error. My code:

$client = new Client($accountSid, $authToken);
foreach ($client->conferences->read() as $conference) {
    var_dump($conference);
}

Error:

[HTTP 404] Unable to fetch page: The requested resource /2010-04-01/Accounts/twilio.account_sid/Conferences.json was not found

Thanks for the help in advance!

Vlad Gukasov
  • 111
  • 2
  • 6

1 Answers1

6

The problem was in bad credentials I setted. I used test credentials that are only for REST API testing purposes. When I setted correct credentials from https://www.twilio.com/console the problem was solved. Thanks Shachaf.Gortler for the some help.

Vlad Gukasov
  • 111
  • 2
  • 6
  • That bit me as well. Here is an explanation of what you can/can't do with test credentials: https://www.twilio.com/docs/iam/test-credentials – Miguel Oct 19 '18 at 16:48