I am extremely new to this forum. I have signed up to the sandbox environment and wish to create some raw JSON to firstly "pass" a given telephone number and then to receive a response back with all the call recordings/call log list based on that telephone number. I have worked with raw JSON before but after extensive reading in the documentation I cannot see how to get started with the API. I want to use password flow authentication because I have solely created a CRM application (server-side application in the cloud) which will be doing the processing work, as opposed to a physical user. Ultimately all I want to do is allow my CRM application automatic"permission" to access the API and access the call recordings/log by passing the API a telephone number so I can then see the individual call recording IDs for that telephone number so ultimately a user in my CRM can play a call recording.
I believe the POST URL I need to access the API with password flow is as follows (an example):
Authorization: Basic cmVsLWFsbC1wZXJtaXNzaWXFjMmpRZmlQcnlkSUkweE92QQ== grant_type=password&username=18559100010&extension=101&password=121212
The username is the telephone number I was assigned when I signed up to the sandbox account and the password is my password I use to log into the sandbox account. However I am not sure what "cmVsLWFsbC1wZXJtaXNzaWXFjMmpRZmlQcnlkSUkweE92QQ" is in the example above which is provided by the documentation? Nor do I know what my "extension" is. Is this my extension or the telephone number I want to "pass" to the API in order to get the call logs belonging to that telephone number?
I do not have an account id too which is needed for other forms of authentication. My account manager says I will not get an account id until I send my application off to RingCentral for review and once accepted only then will I get an account ID?? My application is completely secure and server-side. It would be impossible to "send off" to anyone as it is an entire CRM application. That aside I think I can get it working by using the password flow authentication (as long as I don't need the account ID parameter at a later time?)
However I am stuck on how to "pass" the API a telephone number and get the response back with the resultant call log with each call recording ID belonging to that telephone number. Ultimately I need the call recording ID's so my user can play a call recording on the front end. I cannot find a clear example of simple working code in raw json to start working on my project . Please can anyone help?
Thank you very much for any help. I really appreciate it.