
com.pubnub.internal.services.PublishService.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubnub-core-impl Show documentation
Show all versions of pubnub-core-impl Show documentation
PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter second!
package com.pubnub.internal.services
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.QueryMap
internal interface PublishService {
@GET("publish/{pubKey}/{subKey}/0/{channel}/0/{message}")
fun publish(
@Path("pubKey") pubKey: String,
@Path("subKey") subKey: String,
@Path("channel") channel: String,
@Path(value = "message", encoded = false) message: String,
@QueryMap(encoded = false) options: Map,
): Call>
@POST("publish/{pubKey}/{subKey}/0/{channel}/0")
@Headers("Content-Type: application/json; charset=UTF-8")
fun publishWithPost(
@Path("pubKey") pubKey: String,
@Path("subKey") subKey: String,
@Path("channel") channel: String,
@Body body: Any,
@QueryMap(encoded = false) options: Map,
): Call>
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy