# 9. BayunRC

BayunRC is a sample application that uses BayunCoreSDK to provide end-to-end encryption for SMS messages. It uses [RingCentral](https://www.ringcentral.com/) APIs to send and receive secure "Pager" messages within the same organization. Users can login with their RingCentral phone-number and extension, and communicate securely with other extensions associated with the same main number, without RingCentral or anyone else having access to the message contents (including Bayun itself). RingCentral's own app sees these messages as garbled text.

**Register your App with RingCentral**

&#x20;In order to have access to the RingCentral's APIs, developer needs to register the app with RingCentral, and use the ApplicationKey and ApplicationSecret provided by RingCentral in the BayunRC sample app.

To get the ApplicationKey and ApplicationSecret, see [App Development using RingCentral Developer Portal](https://developer.ringcentral.com/library/tutorials/getting-started.html##CreateYourApp).

**Build and Run BayuRC Test App**&#x20;

In the strings.xml file, replace the values of "application\_key\_sandbox" and "application\_secret\_key\_sandbox" with the Sandbox Application Key and Application Secret Key. Also replace the values of "application\_key\_prod" and "application\_key\_secret\_prod" with the Production Application Key and Application Secret Key respectively.

Build and Run the project. You will need an active RingCentral account to login.

Enter your main RingCentral phone-number in the Phone Number field, extension in the Extension field and password in the Password field. Checking the "Point to Sandbox Server" checkbox number let the app point to sandbox server else production server is pointed.

**Where to Go From Here?**

You can find the BayunRC app on [Github](https://github.com/bayunsystems/BayunSDK/tree/master/Android/TestApps/BayunRC)

For detailed step-by-step instructions on how to build and run the Android application, see the [README](https://github.com/bayunsystems/BayunSDK/blob/master/Android/TestApps/BayunRC/README.md) file.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bayun.gitbook.io/bayuncoresdk-android/8.-bayunrc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
