diff --git a/.idea/bitly-shorten.iml b/.idea/bitly-shorten.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/bitly-shorten.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..edbcc81
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/kotlin/net/thauvin/erik/bitly/Bitlinks.kt b/src/main/kotlin/net/thauvin/erik/bitly/Bitlinks.kt
index 58bd057..e74877a 100644
--- a/src/main/kotlin/net/thauvin/erik/bitly/Bitlinks.kt
+++ b/src/main/kotlin/net/thauvin/erik/bitly/Bitlinks.kt
@@ -69,25 +69,25 @@ open class Bitlinks(private val accessToken: String) {
@Synchronized
@JvmOverloads
fun clicks(
- bitlink: String,
- unit: Units = Units.DAY,
- units: Int = -1,
- size: Int = 50,
- unit_reference: String = Constants.EMPTY,
- toJson: Boolean = false
+ bitlink: String,
+ unit: Units = Units.DAY,
+ units: Int = -1,
+ size: Int = 50,
+ unit_reference: String = Constants.EMPTY,
+ toJson: Boolean = false
): String {
var clicks = if (toJson) Constants.EMPTY_JSON else Constants.EMPTY
if (bitlink.isNotBlank()) {
lastCallResponse = Utils.call(
- accessToken,
- ("/bitlinks/${bitlink.removeHttp()}/clicks/summary").toEndPoint(),
- mapOf(
- "unit" to unit.toString().lowercase(),
- "units" to units.toString(),
- "size" to size.toString(),
- "unit_reference" to unit_reference
- ),
- Methods.GET
+ accessToken,
+ ("/bitlinks/${bitlink.removeHttp()}/clicks/summary").toEndPoint(),
+ mapOf(
+ "unit" to unit.toString().lowercase(),
+ "units" to units.toString(),
+ "size" to size.toString(),
+ "unit_reference" to unit_reference
+ ),
+ Methods.GET
)
clicks = parseJsonResponse(lastCallResponse, "total_clicks", clicks, toJson)
}
@@ -108,26 +108,26 @@ open class Bitlinks(private val accessToken: String) {
@Synchronized
@JvmOverloads
fun create(
- domain: String = Constants.EMPTY,
- title: String = Constants.EMPTY,
- group_guid: String = Constants.EMPTY,
- tags: Array = emptyArray(),
- deeplinks: Array