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?

getting started
1 |3000

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 avatar image
Anirban 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 |3000

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 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys