i have not login with api using ringcentral credential but using demo developer credential it's working so what can i do

  • 1
  • Question
  • Updated 1 month ago
i have not login with api using ringcentral credential but using demo developer credential it's working so what can i do
Photo of Neeraj Bhatia

Neeraj Bhatia

  • 120 Points 100 badge 2x thumb

Posted 1 month ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 3,584 Points 3k badge 2x thumb
Can you explain more about what you want to achieve?

1. Do you have a RingCentral developer account? If not, sign up to get one.
2. "... using demo developer credentials..." did you mean using the sandbox account credentials?
3. "... using RingCentral credentials ..." did you mean using the production account credentials? Follow the instructions at Apply for production
4. If you have problem with using an API, let us know the API name so we can help.

+ Phong
(Edited)
Photo of Neeraj Bhatia

Neeraj Bhatia

  • 120 Points 100 badge 2x thumb
1. Do you have a RingCentral developer account? If not, sign up to get one.==>Yes
2. "... using demo developer credentials..." did you mean using the sandbox account credentials? ==>Yes
3. "... using RingCentral credentials ..." did you mean using the production account credentials? Follow the instructions at Apply for production ==>Not Apply for production 
4. If you have problem with using an API, let us know the API name so we can help.
==>Use your Webphone  Demo code for implementation ,please check below screenshot

(Edited)
Photo of Phong Vu

Phong Vu, Devangelist

  • 3,584 Points 3k badge 2x thumb
So you are using this demo? Have you double check all necessary application creation steps, choosing the right application type (either Browser-Based or Server/Web). And adding the URL http://localhost:8080/demo/callback.html as the OAuth Redirect URI for your app?

Here is what I have when I tried the demo on heroku.

Photo of Neeraj Bhatia

Neeraj Bhatia

  • 120 Points 100 badge 2x thumb
Yes i have used  this one demo code for implement,but it's can't work
with original  ringcentral account, but with demo developer account it's showing screen and play sound "this service temporary not available please contact to support" 
(Edited)
Photo of Phong Vu

Phong Vu, Devangelist

  • 3,584 Points 3k badge 2x thumb
What did you mean "original RingCentral account"? You meant the production one? If so, the server needs to be https://platform.ringcentral.com and the client ID/Secret must be the one for your app in production environment.

And you said the demo developer account (please call it the sandbox account!) is plays the quoted text? How does it play the sound and when?
Photo of Neeraj Bhatia

Neeraj Bhatia

  • 120 Points 100 badge 2x thumb
What did you mean "original RingCentral account"? You meant the production one? If so, the server needs to be https://platform.ringcentral.com and the client ID/Secret must be the one for your app in production environment.==> That time we have not a production account but we have premium user and we have calling from admin portal but now we need to implement in our site. 

And you said the demo developer account (please call it the sandbox account!) is plays the quoted text? How does it play the sound and when?
==> Using other send box account, when enter the number and click on  call so playing sound like "this service not available please contact to support"

so please guide me what can i do, and how to resolve this problem
Photo of Phong Vu

Phong Vu, Devangelist

  • 3,584 Points 3k badge 2x thumb
I still don't know WHAT and HOW have you tried the demo app.

You said "That time we have not a production account but we have premium user and we have calling from admin portal but now we need to implement in our site. "

Questions:
1. That time??? When
2. So if you don't have a production account, what is the premium user?
3. "admin portal..." What is that portal? Post the link here.
4. "implement in our site.." so you are not trying the demo at this link at all?

You said "Using other send box account, when enter the number and click on  call so playing sound like "this service not available please contact to support"

Questions:
1. Have you created an app under that sandbox account?
2. What is the name of the app?
3. What is your app platform type?
4. Have you properly specified the redirect URL for your app?

When trying the demo app, do you provide the correct client id and client secret? Have you passed the authentication steps?
Photo of Neeraj Bhatia

Neeraj Bhatia

  • 120 Points 100 badge 2x thumb
I still don't know WHAT and HOW have you tried the demo app. 

You said "That time we have not a production account but we have premium user and we have calling from admin portal but now we need to implement in our site. "

Questions:
1. That time??? When 
2. So if you don't have a production account, what is the premium user? ==> Please check account +442038872758 , App Name=>
  • cimpass


using this id we could not login for authentication
3. "admin portal..." What is that portal? Post the link here ==>https://service.ringcentral.co.uk/application/company/overview?postPhoneLogin=true
4. "implement in our site.." so you are not trying the demo at this link at all? no i am trying with this demo then after i will implement in our site

You said "Using other send box account, when enter the number and click on  call so playing sound like "this service not available please contact to support"

Questions:
1. Have you created an app under that sandbox account? Yes account id =>+15178853672
2. What is the name of the app?PozitiveEnergy
3. What is your app platform type?


4. Have you properly specified the redirect URL for your app?

When trying the demo app, do you provide the correct client id and client secret? yes
Have you passed the authentication steps?


after below screen open play sound like "are this temporary not available if you believe you reach message air please contact customer service thank you for calling good bye"

(Edited)
Photo of Phong Vu

Phong Vu, Devangelist

  • 3,584 Points 3k badge 2x thumb
Forget about your production account for a while. Let's have a look at your sandbox account's credentials and the app client id and secret.

Based on what you provided above, your app is "cimpass" and I found the app under your sandbox account. The app has several redirect URIs, some are on your local host and 1 on the heroku. That should be correct.


However, on the authentication screenshot you provided above, I see you specified the app key and the app secret which is not from this cimpass app. Why and where did you get the id and secret from?

You need to login https://developer.ringcentral.com and find the cimpass app, copy the correct client id (for app key) and the correct client secret (for app secret) and use it in the demo app. You also need to add the VoIP Callling permission. Currently this app only has these permissions: Read Presence, Contacts, Read Accounts, Ring Out, Internal Messages, Read Call Log.

You also need to double check the sandbox account to get the correct login credential for a user on that sandbox. See something like this and you can login with the main company number with its correct password.
Photo of Neeraj Bhatia

Neeraj Bhatia

  • 120 Points 100 badge 2x thumb
i have create new App CIMPAASNEW but could not login using same credential while authentication
with same account 
Photo of Phong Vu

Phong Vu, Devangelist

  • 3,584 Points 3k badge 2x thumb
I believe that this phone number and password does not belong to the sandbox account where you created the new app.

This is because the old client key and secret you used earlier could be authenticated by this number and password but that old client id/secret did not belong to any app under the sandbox account you gave me.

I asked you to double check the sandbox account to get the correct login credential for a user on that sandbox but it seemed you did not do that.