ApiUserControllerApi
All URIs are relative to https://api.mailslurp.com
Method | HTTP request | Description |
---|---|---|
getSmtpPassword | GET /user/smtp/password | |
getSmtpUsername | GET /user/smtp/username | |
getUserInfo | GET /user/info |
kotlin.String getSmtpPassword()
Example
// Import classes:
//import com.mailslurp.infrastructure.*
//import com.mailslurp.models.*
val apiInstance = ApiUserControllerApi()
try {
val result : kotlin.String = apiInstance.getSmtpPassword()
println(result)
} catch (e: ClientException) {
println("4xx response calling ApiUserControllerApi#getSmtpPassword")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApiUserControllerApi#getSmtpPassword")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.String
Authorization
Configure API_KEY: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = ""
HTTP request headers
- Content-Type: Not defined
- Accept: /
kotlin.String getSmtpUsername()
Example
// Import classes:
//import com.mailslurp.infrastructure.*
//import com.mailslurp.models.*
val apiInstance = ApiUserControllerApi()
try {
val result : kotlin.String = apiInstance.getSmtpUsername()
println(result)
} catch (e: ClientException) {
println("4xx response calling ApiUserControllerApi#getSmtpUsername")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApiUserControllerApi#getSmtpUsername")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.String
Authorization
Configure API_KEY: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = ""
HTTP request headers
- Content-Type: Not defined
- Accept: /
UserInfoDto getUserInfo()
Example
// Import classes:
//import com.mailslurp.infrastructure.*
//import com.mailslurp.models.*
val apiInstance = ApiUserControllerApi()
try {
val result : UserInfoDto = apiInstance.getUserInfo()
println(result)
} catch (e: ClientException) {
println("4xx response calling ApiUserControllerApi#getUserInfo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApiUserControllerApi#getUserInfo")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure API_KEY: ApiClient.apiKey["x-api-key"] = "" ApiClient.apiKeyPrefix["x-api-key"] = ""
HTTP request headers
- Content-Type: Not defined
- Accept: /