question

Sameer Roy avatar image
Sameer Roy asked Sameer Roy commented

Calling rc api password flow type in PHP sdk

I am exploring rc api that has password flow type which means username & password required while calling.

Trying to call in php sdk here https://github.com/ringcentral/ringcentral-php

Any sample in PHP SDK to implement password flow with username & password to start with?

phpphp sdk
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

·
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered Sameer Roy commented

There is a PHP sample example for you here to implement username & password:

https://github.com/ringcentral/ringcentral-php/blob/master/demo/sms.php#L18

$platform->login($credentials['username'], $credentials['extension'], $credentials['password']); 

Hope this help

1 comment
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Sameer Roy avatar image Sameer Roy commented ·

wow.. thanks for the quick response :) This is exactly the sample I was looking for

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.