Android

You can use notificator Api in android java/kotlin simply, just folow below steps:

Step 1: Add to gradle(App Modules)

def lifecycle_version = "2.5.1"
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'

Step 2: Create Retrofit service

object RetrofitService {
    private const val url = "https://notificator.ir/api/v1/"

    private val retrofit = Retrofit.Builder()
        .baseUrl(url)
        .addConverterFactory(GsonConverterFactory.create())
        .build()

    val apiService: ApiService = retrofit.create(ApiService::class.java)

}

step 3: create Api Service

interface ApiService {

	@GET("send")
	fun sendError(
		@Query("to") token: String,
		@Query("text") message: String
	): Call<CallBackError>

}

Step 4: used Api

fun getResult(token: String, text: String) {

	RetrofitService.apiService.sendError(token, text).enqueue(

		object : Callback<CallBackError> {

			override fun onResponse(
				call: Call<CallBackError>,
				response: Response<CallBackError>
			) {
				if (response.isSuccessful)
					//your code
				else
					//show error
			}

			override fun onFailure(call: Call<CallBackError>, t: Throwable) {
				//Server Error
			}

		}

	)

}