question

thomas-costello avatar image
thomas-costello asked ·

PHP SDK implementation Demo doesn't work

I'm trying to run the php demo and getting this error:

Test 1: authData.php Exception: Undefined variable: argv #0 /home/RingCentral/demo/ authData.php(7): {closure}(8, 'Undefined varia...', '/home/R...', 7, Array) #1 /home/RingCentral/ index.php(7): require('/home/R...') #2 {main}

I'm not sure what I'm doing..... Any help is appreciated.....

I think i'm missing the appKey, appSecret, and server....
Where do I get those?
topic-default
1 |1000 characters needed characters left characters exceeded

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

benjamin-dean avatar image
benjamin-dean answered ·
Hello Thomas,

The server, appKey, and appSecret values can be obtained from the Developer Portal ( https://developer.ringcentral.com) and then by viewing the specific application you've defined in the "My Apps" navigation element, you can collect these values from either the app's Dashboard section or from the "Credentials" section.

Please keep in mind that the server value and API keys (appKey and appSecret) will change once your application has applied for and been approved for production access).

I've provided a screenshot with the highlighted areas within the view for an application you'll use to obtain these values...


Share
1 |1000 characters needed characters left characters exceeded

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

Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered ·

After you create an Application in your Sandbox environment in your developer portal, you can get all it's information like ppKey, appSecret, and server details, url, phone no etc under dashboard section and credential section of the App already mentioned above.

Share
1 |1000 characters needed characters left characters exceeded

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

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.