... | ... | @@ -52,29 +52,33 @@ Your app has to be configured exactly as the credentials and attributes provided |
|
|
>In kotlin
|
|
|
```kotlin
|
|
|
var myConfigBuilder = AppConfig.newBuilder()
|
|
|
.withDialerName("SDK_DIALER")
|
|
|
.withDialerType(DialerType.EXPRESS_PLATINUM)
|
|
|
.withAPIKey("1234")
|
|
|
.withDialerVersion("1.0.0")
|
|
|
.withDefaultCountry("bd")
|
|
|
.withVersionCode(1)
|
|
|
.withSDKClientCredentials("operator1", "1234")
|
|
|
.withDialerName("SDK_DIALER")
|
|
|
.withDialerType(DialerType.TEST)
|
|
|
.withAPIKey("1234")
|
|
|
.withDialerVersion("1.0.0")
|
|
|
.withDefaultCountry("bd")
|
|
|
.withVersionCode(1)
|
|
|
.withSDKClientCredentials("operator1", "1234")
|
|
|
.withAPIKey("[Your API Key]")
|
|
|
var appConfig = AppConfig(myConfigBuilder)
|
|
|
```
|
|
|
|
|
|
>In Java
|
|
|
```java
|
|
|
MyConfigBuilder myConfigBuilder = AppConfig.newBuilder()
|
|
|
.withDialerName("SDK_DIALER")
|
|
|
.withDialerType(DialerType.EXPRESS_PLATINUM)
|
|
|
.withAPIKey("1234")
|
|
|
.withDialerVersion("1.0.0")
|
|
|
.withDefaultCountry("bd")
|
|
|
.withVersionCode(1)
|
|
|
.withSDKClientCredentials("operator1", "1234");
|
|
|
MyConfigBuilder myConfigBuilder = AppConfig.newBuilder()
|
|
|
.withDialerName("SDK_DIALER")
|
|
|
.withDialerType(DialerType.TEST)
|
|
|
.withAPIKey("1234")
|
|
|
.withDialerVersion("1.0.0")
|
|
|
.withDefaultCountry("bd")
|
|
|
.withVersionCode(1)
|
|
|
.withSDKClientCredentials("operator1", "1234")
|
|
|
.withAPIKey("[Your API Key]")
|
|
|
AppConfig appConfig = new AppConfig(myConfigBuilder);
|
|
|
```
|
|
|
|
|
|
Follow the [Instructions](Get-Api-Key) to get your own API Key.
|
|
|
|
|
|
<!Check out the Detailed **[Configuration Guide](App-Configuration)**>
|
|
|
|
|
|
**Step 3. Setting User Credentials:** Set the username and Password of the end user in UserInfo class. Taking these two pieces of information from the UI is recommended.
|
... | ... | |