Vlad Gukasov
Vlad Gukasov

Reputation: 111

twilio The requested resource was not found

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!

Upvotes: 5

Views: 11779

Answers (1)

Vlad Gukasov
Vlad Gukasov

Reputation: 111

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.

Upvotes: 6

Related Questions