CreateRequest

data class CreateRequest(val longUrl: String, val domain: String? = null, val groupGuid: String? = null, val title: String? = null, val tags: List<String>? = null, val deeplinks: List<Deeplink>? = null, val toJson: Boolean = false) : BitlinkRequest(source)

Parameters for creating a new Bitlink.

All fields map directly to the Bitly API. Optional values are omitted from the request payload when not provided. When toJson is true, the full JSON response is returned instead of extracting the link field.

Author

Erik C. Thauvin

Since

3.0

Constructors

Link copied to clipboard
constructor(longUrl: String, domain: String? = null, groupGuid: String? = null, title: String? = null, tags: List<String>? = null, deeplinks: List<Deeplink>? = null, toJson: Boolean = false)

Properties

Link copied to clipboard
open override val deeplinks: List<Deeplink>? = null
Link copied to clipboard
val domain: String? = null
Link copied to clipboard
val groupGuid: String? = null
Link copied to clipboard
Link copied to clipboard
open override val tags: List<String>? = null
Link copied to clipboard
open override val title: String? = null
Link copied to clipboard
open override val toJson: Boolean = false