diff --git a/.circleci/config.yml b/.circleci/config.yml index 7bf833e..7bbecc0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,11 +30,11 @@ defaults_gradle: &defaults_gradle path: build/reports/ jobs: - build_gradle_jdk14: + build_gradle_jdk16: <<: *defaults docker: - - image: openjdk:14-jdk + - image: cimg/openjdk:16.0 <<: *defaults_gradle @@ -42,7 +42,7 @@ jobs: <<: *defaults docker: - - image: circleci/openjdk:8-jdk + - image: cimg/openjdk:8.0 <<: *defaults_gradle @@ -51,5 +51,5 @@ workflows: gradle: jobs: - build_gradle_jdk8 - - build_gradle_jdk14 + - build_gradle_jdk16 diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 23927f2..a3df8ad 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - java-version: [ 1.8, 11, 15 ] + java-version: [ 1.8, 11, 16 ] steps: - uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index a602396..13a066e 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,7 @@ /**/.idea/**/uiDesigner.xml /**/.idea/**/usage.statistics.xml /**/.idea/**/workspace.xml +/**/.idea/sonarlint* /**/.idea_modules/ Thumbs.db __pycache__ diff --git a/.idea/bitly-shorten.iml b/.idea/bitly-shorten.iml deleted file mode 100644 index 3b6f5d8..0000000 --- a/.idea/bitly-shorten.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index edbcc81..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 92b61ba..3f2613b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,17 +5,17 @@ import java.net.URL plugins { id("com.github.ben-manes.versions") version "0.39.0" - id("io.gitlab.arturbosch.detekt") version "1.17.1" + id("io.gitlab.arturbosch.detekt") version "1.18.0-RC2" id("jacoco") id("java") id("java-library") id("maven-publish") id("net.thauvin.erik.gradle.semver") version "1.0.4" - id("org.jetbrains.dokka") version "1.4.32" + id("org.jetbrains.dokka") version "1.5.0" id("org.sonarqube") version "3.3" id("signing") - kotlin("jvm") version "1.5.10" - kotlin("kapt") version "1.5.10" + kotlin("jvm") version "1.5.21" + kotlin("kapt") version "1.5.21" } group = "net.thauvin.erik" @@ -107,8 +107,8 @@ tasks { jacocoTestReport { dependsOn(test) reports { - xml.isEnabled = true - html.isEnabled = true + xml.required.set(true) + html.required.set(true) } } @@ -130,7 +130,7 @@ tasks { jdkVersion.set(8) includes.from("config/dokka/packages.md") sourceLink { - localDirectory.set(file("/src/main/kotlin/")) + localDirectory.set(file("src/main/kotlin/")) remoteUrl.set(URL("https://github.com/ethauvin/${project.name}/tree/master/src/main/kotlin/")) remoteLineSuffix.set("#L") } diff --git a/config/detekt/baseline.xml b/config/detekt/baseline.xml index 8c10719..57f6aef 100644 --- a/config/detekt/baseline.xml +++ b/config/detekt/baseline.xml @@ -3,7 +3,6 @@ ComplexMethod:Bitlinks.kt$Bitlinks$ @Synchronized @JvmOverloads fun update( bitlink: String, references: Map<String, String> = emptyMap(), archived: Boolean = false, tags: Array<String> = emptyArray(), created_at: String = Constants.EMPTY, title: String = Constants.EMPTY, deeplinks: Array<Map<String, String>> = emptyArray(), created_by: String = Constants.EMPTY, long_url: String = Constants.EMPTY, client_id: String = Constants.EMPTY, custom_bitlinks: Array<String> = emptyArray(), link: String = Constants.EMPTY, id: String = Constants.EMPTY, toJson: Boolean = false ): String - ComplexMethod:Utils.kt$Utils.Companion$ @JvmOverloads fun call( accessToken: String, endPoint: String, params: Map<String, Any> = emptyMap(), method: Methods = Methods.POST ): CallResponse FunctionParameterNaming:Bitlinks.kt$Bitlinks$bitlink_id: String FunctionParameterNaming:Bitlinks.kt$Bitlinks$client_id: String = Constants.EMPTY FunctionParameterNaming:Bitlinks.kt$Bitlinks$created_at: String = Constants.EMPTY @@ -13,6 +12,9 @@ FunctionParameterNaming:Bitlinks.kt$Bitlinks$long_url: String FunctionParameterNaming:Bitlinks.kt$Bitlinks$long_url: String = Constants.EMPTY FunctionParameterNaming:Bitlinks.kt$Bitlinks$unit_reference: String = Constants.EMPTY + LongParameterList:Bitlinks.kt$Bitlinks$( bitlink: String, references: Map<String, String> = emptyMap(), archived: Boolean = false, tags: Array<String> = emptyArray(), created_at: String = Constants.EMPTY, title: String = Constants.EMPTY, deeplinks: Array<Map<String, String>> = emptyArray(), created_by: String = Constants.EMPTY, long_url: String = Constants.EMPTY, client_id: String = Constants.EMPTY, custom_bitlinks: Array<String> = emptyArray(), link: String = Constants.EMPTY, id: String = Constants.EMPTY, toJson: Boolean = false ) + LongParameterList:Bitlinks.kt$Bitlinks$( bitlink: String, unit: Units = Units.DAY, units: Int = -1, size: Int = 50, unit_reference: String = Constants.EMPTY, toJson: Boolean = false ) + LongParameterList:Bitlinks.kt$Bitlinks$( domain: String = Constants.EMPTY, title: String = Constants.EMPTY, group_guid: String = Constants.EMPTY, tags: Array<String> = emptyArray(), deeplinks: Array<Map<String, String>> = emptyArray(), long_url: String, toJson: Boolean = false ) MagicNumber:CallResponse.kt$CallResponse$200 MagicNumber:CallResponse.kt$CallResponse$201 MagicNumber:CallResponse.kt$CallResponse$299 @@ -24,7 +26,10 @@ MagicNumber:CallResponse.kt$CallResponse$422 MagicNumber:CallResponse.kt$CallResponse$500 MagicNumber:CallResponse.kt$CallResponse$503 + NestedBlockDepth:Bitlinks.kt$Bitlinks$private fun parseJsonResponse(response: CallResponse, key: String, default: String, toJson: Boolean): String NestedBlockDepth:Utils.kt$Utils.Companion$ @JvmOverloads fun call( accessToken: String, endPoint: String, params: Map<String, Any> = emptyMap(), method: Methods = Methods.POST ): CallResponse NestedBlockDepth:Utils.kt$Utils.Companion$private fun parseBody(endPoint: String, result: Response): String + UtilityClassWithPublicConstructor:Constants.kt$Constants + UtilityClassWithPublicConstructor:Utils.kt$Utils diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml deleted file mode 100644 index f24d8c1..0000000 --- a/config/detekt/detekt.yml +++ /dev/null @@ -1,551 +0,0 @@ -build: - maxIssues: 10 - weights: - # complexity: 2 - # LongParameterList: 1 - # style: 1 - # comments: 1 - -processors: - active: true - exclude: - # - 'DetektProgressListener' - # - 'FunctionCountProcessor' - # - 'PropertyCountProcessor' - # - 'ClassCountProcessor' - # - 'PackageCountProcessor' - # - 'KtFileCountProcessor' - -console-reports: - active: true - exclude: - # - 'ProjectStatisticsReport' - # - 'ComplexityReport' - # - 'NotificationReport' - # - 'FindingsReport' - # - 'BuildFailureReport' - -comments: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - CommentOverPrivateFunction: - active: false - CommentOverPrivateProperty: - active: false - EndOfSentenceFormat: - active: false - endOfSentenceFormat: ([.?!][ \t\n\r\f<])|([.?!:]$) - UndocumentedPublicClass: - active: false - searchInNestedClass: true - searchInInnerClass: true - searchInInnerObject: true - searchInInnerInterface: true - UndocumentedPublicFunction: - active: false - -complexity: - active: true - ComplexCondition: - active: true - threshold: 4 - ComplexInterface: - active: false - threshold: 10 - includeStaticDeclarations: false - ComplexMethod: - active: true - threshold: 10 - ignoreSingleWhenExpression: false - ignoreSimpleWhenEntries: false - LabeledExpression: - active: false - ignoredLabels: "" - LargeClass: - active: true - threshold: 600 - LongMethod: - active: true - threshold: 60 - LongParameterList: - active: false - constructorThreshold: 6 - functionThreshold: 6 - ignoreDefaultParameters: false - MethodOverloading: - active: false - threshold: 6 - NestedBlockDepth: - active: true - threshold: 4 - StringLiteralDuplication: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - threshold: 3 - ignoreAnnotation: true - excludeStringsWithLessThan5Characters: true - ignoreStringsRegex: '$^' - TooManyFunctions: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - thresholdInFiles: 11 - thresholdInClasses: 11 - thresholdInInterfaces: 11 - thresholdInObjects: 11 - thresholdInEnums: 11 - ignoreDeprecated: false - ignorePrivate: false - ignoreOverridden: false - -empty-blocks: - active: true - EmptyCatchBlock: - active: true - allowedExceptionNameRegex: "^(_|(ignore|expected).*)" - EmptyClassBlock: - active: true - EmptyDefaultConstructor: - active: true - EmptyDoWhileBlock: - active: true - EmptyElseBlock: - active: true - EmptyFinallyBlock: - active: true - EmptyForBlock: - active: true - EmptyFunctionBlock: - active: true - ignoreOverridden: false - EmptyIfBlock: - active: true - EmptyInitBlock: - active: true - EmptyKtFile: - active: true - EmptySecondaryConstructor: - active: true - EmptyWhenBlock: - active: true - EmptyWhileBlock: - active: true - -exceptions: - active: true - ExceptionRaisedInUnexpectedLocation: - active: false - methodNames: 'toString,hashCode,equals,finalize' - InstanceOfCheckForException: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - NotImplementedDeclaration: - active: false - PrintStackTrace: - active: false - RethrowCaughtException: - active: false - ReturnFromFinally: - active: false - SwallowedException: - active: false - ignoredExceptionTypes: 'InterruptedException,NumberFormatException,ParseException,MalformedURLException' - allowedExceptionNameRegex: "^(_|(ignore|expected).*)" - ThrowingExceptionFromFinally: - active: false - ThrowingExceptionInMain: - active: false - ThrowingExceptionsWithoutMessageOrCause: - active: false - exceptions: 'IllegalArgumentException,IllegalStateException,IOException' - ThrowingNewInstanceOfSameException: - active: false - TooGenericExceptionCaught: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - exceptionNames: - - ArrayIndexOutOfBoundsException - - Error - - Exception - - IllegalMonitorStateException - - NullPointerException - - IndexOutOfBoundsException - - RuntimeException - - Throwable - allowedExceptionNameRegex: "^(_|(ignore|expected).*)" - TooGenericExceptionThrown: - active: true - exceptionNames: - - Error - - Exception - - Throwable - - RuntimeException - -formatting: - active: true - android: false - autoCorrect: true - AnnotationOnSeparateLine: - active: false - autoCorrect: true - ChainWrapping: - active: true - autoCorrect: true - CommentSpacing: - active: true - autoCorrect: true - Filename: - active: true - FinalNewline: - active: true - autoCorrect: true - ImportOrdering: - active: false - autoCorrect: true - Indentation: - active: false - autoCorrect: true - indentSize: 4 - continuationIndentSize: 4 - MaximumLineLength: - active: true - maxLineLength: 120 - ModifierOrdering: - active: true - autoCorrect: true - MultiLineIfElse: - active: true - autoCorrect: true - NoBlankLineBeforeRbrace: - active: true - autoCorrect: true - NoConsecutiveBlankLines: - active: true - autoCorrect: true - NoEmptyClassBody: - active: true - autoCorrect: true - NoLineBreakAfterElse: - active: true - autoCorrect: true - NoLineBreakBeforeAssignment: - active: true - autoCorrect: true - NoMultipleSpaces: - active: true - autoCorrect: true - NoSemicolons: - active: true - autoCorrect: true - NoTrailingSpaces: - active: true - autoCorrect: true - NoUnitReturn: - active: true - autoCorrect: true - NoUnusedImports: - active: true - autoCorrect: true - NoWildcardImports: - active: true - PackageName: - active: true - autoCorrect: true - ParameterListWrapping: - active: true - autoCorrect: true - indentSize: 4 - SpacingAroundColon: - active: true - autoCorrect: true - SpacingAroundComma: - active: true - autoCorrect: true - SpacingAroundCurly: - active: true - autoCorrect: true - SpacingAroundDot: - active: true - autoCorrect: true - SpacingAroundKeyword: - active: true - autoCorrect: true - SpacingAroundOperators: - active: true - autoCorrect: true - SpacingAroundParens: - active: true - autoCorrect: true - SpacingAroundRangeOperator: - active: true - autoCorrect: true - StringTemplate: - active: true - autoCorrect: true - -naming: - active: true - ClassNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - classPattern: '[A-Z$][a-zA-Z0-9$]*' - ConstructorParameterNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - parameterPattern: '[a-z][A-Za-z0-9]*' - privateParameterPattern: '[a-z][A-Za-z0-9]*' - excludeClassPattern: '$^' - EnumNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*' - ForbiddenClassName: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - forbiddenName: '' - FunctionMaxLength: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - maximumFunctionNameLength: 30 - FunctionMinLength: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - minimumFunctionNameLength: 3 - FunctionNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$' - excludeClassPattern: '$^' - ignoreOverridden: true - FunctionParameterNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - parameterPattern: '[a-z][A-Za-z0-9]*' - excludeClassPattern: '$^' - ignoreOverridden: true - InvalidPackageDeclaration: - active: false - rootPackage: '' - MatchingDeclarationName: - active: true - MemberNameEqualsClassName: - active: false - ignoreOverridden: true - ObjectPropertyNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - constantPattern: '[A-Za-z][_A-Za-z0-9]*' - propertyPattern: '[A-Za-z][_A-Za-z0-9]*' - privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*' - PackageNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - packagePattern: '^[a-z]+(\.[a-z][A-Za-z0-9]*)*$' - TopLevelPropertyNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - constantPattern: '[A-Z][_A-Z0-9]*' - propertyPattern: '[A-Za-z][_A-Za-z0-9]*' - privatePropertyPattern: '_?[A-Za-z][_A-Za-z0-9]*' - VariableMaxLength: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - maximumVariableNameLength: 64 - VariableMinLength: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - minimumVariableNameLength: 1 - VariableNaming: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - variablePattern: '[a-z][A-Za-z0-9]*' - privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*' - excludeClassPattern: '$^' - ignoreOverridden: true - -performance: - active: true - ArrayPrimitive: - active: false - ForEachOnRange: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - SpreadOperator: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - UnnecessaryTemporaryInstantiation: - active: true - -potential-bugs: - active: true - DuplicateCaseInWhenExpression: - active: true - EqualsAlwaysReturnsTrueOrFalse: - active: false - EqualsWithHashCodeExist: - active: true - ExplicitGarbageCollectionCall: - active: true - InvalidRange: - active: false - IteratorHasNextCallsNextMethod: - active: false - IteratorNotThrowingNoSuchElementException: - active: false - LateinitUsage: - active: false - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - excludeAnnotatedProperties: "" - ignoreOnClassesPattern: "" - MissingWhenCase: - active: false - RedundantElseInWhen: - active: false - UnconditionalJumpStatementInLoop: - active: false - UnreachableCode: - active: true - UnsafeCallOnNullableType: - active: false - UnsafeCast: - active: false - UselessPostfixExpression: - active: false - WrongEqualsTypeParameter: - active: false - -style: - active: true - CollapsibleIfStatements: - active: false - DataClassContainsFunctions: - active: false - conversionFunctionPrefix: 'to' - DataClassShouldBeImmutable: - active: false - EqualsNullCall: - active: false - EqualsOnSignatureLine: - active: false - ExplicitItLambdaParameter: - active: false - ExpressionBodySyntax: - active: false - includeLineWrapping: false - ForbiddenComment: - active: true - values: 'TODO:,FIXME:,STOPSHIP:' - ForbiddenImport: - active: false - imports: '' - ForbiddenVoid: - active: false - ignoreOverridden: false - ignoreUsageInGenerics: false - FunctionOnlyReturningConstant: - active: false - ignoreOverridableFunction: true - excludedFunctions: 'describeContents' - LibraryCodeMustSpecifyReturnType: - active: false - LoopWithTooManyJumpStatements: - active: false - maxJumpCount: 1 - MagicNumber: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - ignoreNumbers: '-1,0,1,2' - ignoreHashCodeFunction: true - ignorePropertyDeclaration: false - ignoreConstantDeclaration: true - ignoreCompanionObjectPropertyDeclaration: true - ignoreAnnotation: false - ignoreNamedArgument: true - ignoreEnums: false - ignoreRanges: false - MandatoryBracesIfStatements: - active: false - MaxLineLength: - active: true - maxLineLength: 120 - excludePackageStatements: true - excludeImportStatements: true - excludeCommentStatements: false - MayBeConst: - active: false - ModifierOrder: - active: true - NestedClassesVisibility: - active: false - NewLineAtEndOfFile: - active: true - NoTabs: - active: false - OptionalAbstractKeyword: - active: true - OptionalUnit: - active: false - OptionalWhenBraces: - active: false - PreferToOverPairSyntax: - active: false - ProtectedMemberInFinalClass: - active: false - RedundantVisibilityModifierRule: - active: false - ReturnCount: - active: true - max: 2 - excludedFunctions: "equals" - excludeLabeled: false - excludeReturnFromLambda: true - SafeCast: - active: true - SerialVersionUIDInSerializableClass: - active: false - SpacingBetweenPackageAndImports: - active: false - ThrowsCount: - active: true - max: 2 - TrailingWhitespace: - active: false - UnderscoresInNumericLiterals: - active: false - acceptableDecimalLength: 5 - UnnecessaryAbstractClass: - active: false - excludeAnnotatedClasses: "dagger.Module" - UnnecessaryApply: - active: false - UnnecessaryInheritance: - active: false - UnnecessaryLet: - active: false - UnnecessaryParentheses: - active: false - UntilInsteadOfRangeTo: - active: false - UnusedImports: - active: false - UnusedPrivateClass: - active: false - UnusedPrivateMember: - active: false - allowedNames: "(_|ignored|expected|serialVersionUID)" - UseCheckOrError: - active: false - UseDataClass: - active: false - excludeAnnotatedClasses: "" - UseRequire: - active: false - UselessCallOnNotNull: - active: false - UtilityClassWithPublicConstructor: - active: false - VarCouldBeVal: - active: false - WildcardImport: - active: true - excludes: "**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt" - excludeImports: 'java.util.*,kotlinx.android.synthetic.*' diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/-bitlinks.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/-bitlinks.html index 8f1d101..3c852d3 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/-bitlinks.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/-bitlinks.html @@ -29,6 +29,17 @@
fun Bitlinks(accessToken: String)
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/clicks.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/clicks.html index b2ae3df..3e0ab15 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/clicks.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/clicks.html @@ -29,6 +29,17 @@
fun clicks(bitlink: String, unit: Units = Units.DAY, units: Int = -1, size: Int = 50, unit_reference: String = Constants.EMPTY, toJson: Boolean = false): String

Returns the click counts for a specified Bitlink.

See the Bitly API for more information.

Return

The click counts.

Parameters

bitlink

A Bitlink made of the domain and hash.

units

An integer representing the time units to query data for. Pass -1 to return all units available.

size

The quantity of items to be be returned.

unit_reference

An ISO-8601 timestamp, indicating the most recent time for which to pull metrics. Will default to current time.

toJson

Returns the full JSON response if true.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/create.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/create.html index b16d29c..d36240d 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/create.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/create.html @@ -28,7 +28,18 @@
fun create(domain: String = Constants.EMPTY, title: String = Constants.EMPTY, group_guid: String = Constants.EMPTY, tags: Array<String> = emptyArray(), deeplinks: Array<Map<String, String>> = emptyArray(), long_url: String, toJson: Boolean = false): String
-

Converts a long url to a Bitlink and sets additional parameters.

See the Bit.ly API for more information.

Return

The shorten URL or an empty string on error.

Parameters

long_url

The long URL.

toJson

Returns the full JSON response if true.

+

Converts a long url to a Bitlink and sets additional parameters.

See the Bit.ly API for more information.

Return

The shorten URL or an empty string on error.

Parameters

domain

A branded short domain or bit.ly by default.

group_guid

A GUID for a Bitly group.

long_url

The long URL.

toJson

Returns the full JSON response if true.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/expand.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/expand.html index 7649ef8..f50144b 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/expand.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/expand.html @@ -29,6 +29,17 @@
fun expand(bitlink_id: String, toJson: Boolean = false): String

Expands a Bitlink.

See the Bit.ly API for more information.

Return

The long URL or an empty string on error.

Parameters

bitlink_id

The bitlink ID.

toJson

Returns the full JSON response if true.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html index 793f029..f0d58c2 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html @@ -25,7 +25,7 @@
open class Bitlinks(accessToken: String)

Provides functions to create and manage Bitlinks.

See the Bitly API for more information.

-
+

Constructors

@@ -144,6 +144,17 @@
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/last-call-response.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/last-call-response.html index 30f0c23..b12318a 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/last-call-response.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/last-call-response.html @@ -29,6 +29,17 @@
var lastCallResponse: CallResponse

The last API call response.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/shorten.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/shorten.html index 9373859..57b5b89 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/shorten.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/shorten.html @@ -28,7 +28,18 @@
fun shorten(long_url: String, group_guid: String = Constants.EMPTY, domain: String = Constants.EMPTY, toJson: Boolean = false): String
-

Shortens a long URL.

See the Bit.ly API for more information.

Return

The short URL or the long_url on error.

Parameters

long_url

The long URL.

toJson

Returns the full JSON response if true.

+

Shortens a long URL.

See the Bit.ly API for more information.

Return

The short URL or the long_url on error.

Parameters

long_url

The long URL.

group_guid

A GUID for a Bitly group.

domain

A branded short domain or bit.ly by default.

toJson

Returns the full JSON response if true.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/update.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/update.html index dbe8a9b..45e695b 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/update.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitlinks/update.html @@ -29,6 +29,17 @@
fun update(bitlink: String, references: Map<String, String> = emptyMap(), archived: Boolean = false, tags: Array<String> = emptyArray(), created_at: String = Constants.EMPTY, title: String = Constants.EMPTY, deeplinks: Array<Map<String, String>> = emptyArray(), created_by: String = Constants.EMPTY, long_url: String = Constants.EMPTY, client_id: String = Constants.EMPTY, custom_bitlinks: Array<String> = emptyArray(), link: String = Constants.EMPTY, id: String = Constants.EMPTY, toJson: Boolean = false): String

Updates fields in the specified Bitlink.

See the Bit.ly API for more information.

Return

Constants.TRUE if the update was successful, Constants.FALSE otherwise.

Parameters

bitlink

A Bitlink made of the domain and hash.

toJson

Returns the full JSON response if true.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html index 68eb77a..8506c7e 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html @@ -28,25 +28,25 @@
fun Bitly(accessToken: String)
-

Creates a new instance using an API Access Token.

Parameters

accessToken

The API access token.

+

Creates a new instance using an API Access Token.

Parameters

accessToken

The API access token.

fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)
-

Creates a new instance using a Properties and Property Key.

Parameters

properties

The properties.

key

The property key containing the API Access Token.

+

Creates a new instance using a properties and property key.

Parameters

properties

The properties containing the API Access Token.

key

The property key containing the API Access Token.

fun Bitly(propertiesFilePath: Path, key: String = Constants.ENV_ACCESS_TOKEN)
-

Creates a new instance using a Properties File Path and Property Key.

Parameters

propertiesFilePath

The properties file path.

key

The property key containing the API Access Token.

+

Creates a new instance using a properties file path and property key.

Parameters

propertiesFilePath

The file path of the properties containing the API Access Token.

key

The property key containing the API Access Token.

fun Bitly(propertiesFile: File, key: String = Constants.ENV_ACCESS_TOKEN)
-

Creates a new instance using a Properties File and Property Key.

Parameters

propertiesFile

The properties file.

key

The property key containing the API Access Token.

+

Creates a new instance using a properties file and property key.

Parameters

propertiesFile

The properties file containing the API Access Token.

key

The property key containing the API Access Token.

diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/access-token.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/access-token.html index cce06da..d381cec 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/access-token.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/access-token.html @@ -29,6 +29,17 @@
var accessToken: String

The API access token.

See Generic Access Token or Authentication.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/bitlinks.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/bitlinks.html index e0a26e0..89854ea 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/bitlinks.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/bitlinks.html @@ -29,6 +29,17 @@
fun bitlinks(): Bitlinks

Returns a new Bitlinks instance.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/call.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/call.html index 6659f3d..5b7dae2 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/call.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/call.html @@ -28,7 +28,18 @@
fun call(endPoint: String, params: Map<String, Any> = emptyMap(), method: Methods = Methods.POST): CallResponse
-

Executes an API call.

Return

The response (JSON) from the API.

Parameters

endPoint

The REST endpoint. (eg. https://api-ssl.bitly.com/v4/shorten)

params

The request parameters key/value map.

method

The submission Method.

+

Executes an API call.

Return

A CallResponse object.

Parameters

endPoint

The REST endpoint. (eg. https://api-ssl.bitly.com/v4/shorten)

params

The request parameters key/value map.

method

The submission Method.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html index 0511caf..b0ce7ec 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html @@ -25,7 +25,7 @@
open class Bitly

Provides access to the Bitly API v4.

-
+

Constructors

@@ -36,7 +36,7 @@
-
fun Bitly(accessToken: String)
Creates a new instance using an API Access Token.
+
fun Bitly(accessToken: String)
Creates a new instance using an API Access Token.
@@ -49,7 +49,7 @@
-
fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a Properties and Property Key.
+
fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a properties and property key.
@@ -62,7 +62,7 @@
-
fun Bitly(propertiesFilePath: Path, key: String = Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a Properties File Path and Property Key.
+
fun Bitly(propertiesFilePath: Path, key: String = Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a properties file path and property key.
@@ -75,7 +75,7 @@
-
fun Bitly(propertiesFile: File, key: String = Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a Properties File and Property Key.
+
fun Bitly(propertiesFile: File, key: String = Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a properties file and property key.
@@ -145,6 +145,17 @@ +

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/-call-response.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/-call-response.html index daf20b4..2264fe5 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/-call-response.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/-call-response.html @@ -29,6 +29,17 @@
fun CallResponse(body: String = Constants.EMPTY_JSON, resultCode: Int = -1)
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/body.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/body.html index 8ea06a1..274497d 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/body.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/body.html @@ -26,9 +26,20 @@
-
var body: String
+
val body: String
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html index ac08a5a..9971081 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html @@ -25,7 +25,7 @@
data class CallResponse(body: String, resultCode: Int)

Provides a data class to hold the JSON response.

-
+

Constructors

@@ -51,7 +51,85 @@
-
var body: String
+
val body: String
+
+
+
+
+ +
+
+
isBadRequest +
Link copied to clipboard
+
+
+
+
val isBadRequest: Boolean
+
+
+
+
+ +
+
+
isCreated +
Link copied to clipboard
+
+
+
+
val isCreated: Boolean
+
+
+
+
+ +
+
+
isExpectationFailed +
Link copied to clipboard
+
+
+
+
val isExpectationFailed: Boolean
+
+
+
+
+ +
+
+
isForbidden +
Link copied to clipboard
+
+
+
+
val isForbidden: Boolean
+
+
+
+
+ +
+
+
isInternalError +
Link copied to clipboard
+
+
+
+
val isInternalError: Boolean
+
+
+
+
+ +
+
+
isNotFound +
Link copied to clipboard
+
+
+
+
val isNotFound: Boolean
@@ -69,6 +147,45 @@
+ +
+
+
isTemporarilyUnavailable +
Link copied to clipboard
+
+
+
+
val isTemporarilyUnavailable: Boolean
+
+
+
+
+ +
+
+
isUnprocessableEntity +
Link copied to clipboard
+
+
+
+
val isUnprocessableEntity: Boolean
+
+
+
+
+ +
+
+
isUpgradeRequired +
Link copied to clipboard
+
+
+
+
val isUpgradeRequired: Boolean
+
+
+
+
@@ -77,12 +194,23 @@
-
var resultCode: Int
+
val resultCode: Int
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-bad-request.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-bad-request.html new file mode 100644 index 0000000..4a6e50c --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-bad-request.html @@ -0,0 +1,49 @@ + + + + isBadRequest + + +
+
+ + +
+
+
+
+
+
+ +
+

isBadRequest

+
+
+ +
+
val isBadRequest: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-created.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-created.html new file mode 100644 index 0000000..b55154e --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-created.html @@ -0,0 +1,49 @@ + + + + isCreated + + +
+
+ + +
+
+
+
+
+
+ +
+

isCreated

+
+
+ +
+
val isCreated: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-expectation-failed.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-expectation-failed.html new file mode 100644 index 0000000..3bc9dfc --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-expectation-failed.html @@ -0,0 +1,49 @@ + + + + isExpectationFailed + + +
+
+ + +
+
+
+
+
+
+ +
+

isExpectationFailed

+
+
+ +
+
val isExpectationFailed: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-forbidden.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-forbidden.html new file mode 100644 index 0000000..e3dfa20 --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-forbidden.html @@ -0,0 +1,49 @@ + + + + isForbidden + + +
+
+ + +
+
+
+
+
+
+ +
+

isForbidden

+
+
+ +
+
val isForbidden: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-internal-error.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-internal-error.html new file mode 100644 index 0000000..b27b0fd --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-internal-error.html @@ -0,0 +1,49 @@ + + + + isInternalError + + +
+
+ + +
+
+
+
+
+
+ +
+

isInternalError

+
+
+ +
+
val isInternalError: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-not-found.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-not-found.html new file mode 100644 index 0000000..f6083f6 --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-not-found.html @@ -0,0 +1,49 @@ + + + + isNotFound + + +
+
+ + +
+
+
+
+
+
+ +
+

isNotFound

+
+
+ +
+
val isNotFound: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-successful.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-successful.html index b99fc7b..9577624 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-successful.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-successful.html @@ -29,6 +29,17 @@
val isSuccessful: Boolean
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-temporarily-unavailable.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-temporarily-unavailable.html new file mode 100644 index 0000000..17c83d9 --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-temporarily-unavailable.html @@ -0,0 +1,49 @@ + + + + isTemporarilyUnavailable + + +
+
+ + +
+
+
+
+
+
+ +
+

isTemporarilyUnavailable

+
+
+ +
+
val isTemporarilyUnavailable: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-unprocessable-entity.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-unprocessable-entity.html new file mode 100644 index 0000000..9814125 --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-unprocessable-entity.html @@ -0,0 +1,49 @@ + + + + isUnprocessableEntity + + +
+
+ + +
+
+
+
+
+
+ +
+

isUnprocessableEntity

+
+
+ +
+
val isUnprocessableEntity: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-upgrade-required.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-upgrade-required.html new file mode 100644 index 0000000..52d8959 --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-upgrade-required.html @@ -0,0 +1,49 @@ + + + + isUpgradeRequired + + +
+
+ + +
+
+
+
+
+
+ +
+

isUpgradeRequired

+
+
+ +
+
val isUpgradeRequired: Boolean
+
+
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/result-code.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/result-code.html index 46a165a..bae6d5a 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/result-code.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-call-response/result-code.html @@ -26,9 +26,20 @@
-
var resultCode: Int
+
val resultCode: Int
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-a-p-i_-b-a-s-e_-u-r-l.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-a-p-i_-b-a-s-e_-u-r-l.html index 1efef25..c26cf58 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-a-p-i_-b-a-s-e_-u-r-l.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-a-p-i_-b-a-s-e_-u-r-l.html @@ -29,6 +29,17 @@
const val API_BASE_URL: String

The Bitly API base URL.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y.html index 1065c85..b33eb82 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y.html @@ -29,6 +29,17 @@
const val EMPTY: String

Empty String.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y_-j-s-o-n.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y_-j-s-o-n.html index 61714b3..1cf491d 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y_-j-s-o-n.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y_-j-s-o-n.html @@ -29,6 +29,17 @@
const val EMPTY_JSON: String

Empty JSON Object.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-n-v_-a-c-c-e-s-s_-t-o-k-e-n.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-n-v_-a-c-c-e-s-s_-t-o-k-e-n.html index d78fd7a..867fa72 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-n-v_-a-c-c-e-s-s_-t-o-k-e-n.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-n-v_-a-c-c-e-s-s_-t-o-k-e-n.html @@ -29,6 +29,17 @@
const val ENV_ACCESS_TOKEN: String

The API access token environment variable.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-f-a-l-s-e.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-f-a-l-s-e.html index 9af63c9..3d93cef 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-f-a-l-s-e.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-f-a-l-s-e.html @@ -29,6 +29,17 @@
const val FALSE: String

False

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-t-r-u-e.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-t-r-u-e.html index 5234ad8..6c26169 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-t-r-u-e.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-t-r-u-e.html @@ -29,6 +29,17 @@
const val TRUE: String

True

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/index.html index 00f0c8a..136bc6e 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/index.html @@ -25,7 +25,7 @@
object Constants
-
+

Properties

@@ -107,6 +107,17 @@
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/index.html index 07a3795..c4b7e83 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-constants/index.html @@ -25,7 +25,7 @@
open class Constants

Provides the constants for this package.

-
+

Types

@@ -46,6 +46,17 @@
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/index.html index 90834dc..6acf0a0 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-methods/index.html @@ -25,7 +25,7 @@
enum Methods : Enum<Methods>

Provides HTTP methods definitions.

-
+

Entries

@@ -109,6 +109,17 @@
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/index.html index f5a04f8..440045e 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-units/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-units/index.html @@ -25,7 +25,7 @@
enum Units : Enum<Units>

Provides units of time definitions.

-
+

Entries

@@ -122,6 +122,17 @@
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/call.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/call.html index 511cca8..cf2fefa 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/call.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/call.html @@ -28,7 +28,18 @@
fun call(accessToken: String, endPoint: String, params: Map<String, Any> = emptyMap(), method: Methods = Methods.POST): CallResponse
-

Executes an API call.

Return

The response (JSON) from the API.

Parameters

accessToken

The API access token.

endPoint

The REST endpoint. (eg. https://api-ssl.bitly.com/v4/shorten)

params

The request parameters key/value map.

method

The submission Method.

+

Executes an API call.

Return

A CallResponse object.

Parameters

accessToken

The API access token.

endPoint

The REST endpoint. (eg. https://api-ssl.bitly.com/v4/shorten)

params

The request parameters key/value map.

method

The submission Method.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/index.html index 361f408..c51cd74 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/index.html @@ -25,7 +25,7 @@
object Companion
-
+

Functions

@@ -41,6 +41,23 @@
fun call(accessToken: String, endPoint: String, params: Map<String, Any> = emptyMap(), method: Methods = Methods.POST): CallResponse
Executes an API call.
+
+ + + + +
+
+
isSevereLoggable +
Link copied to clipboard
+
+
+
+ +
+
fun Logger.isSevereLoggable(): Boolean
+
+
Is Level.SEVERE logging enabled.
@@ -112,6 +129,17 @@
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-severe-loggable.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-severe-loggable.html new file mode 100644 index 0000000..d1b84ba --- /dev/null +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-severe-loggable.html @@ -0,0 +1,49 @@ + + + + isSevereLoggable + + +
+
+ + +
+
+
+
+
+
+ +
+

isSevereLoggable

+
+
+ +
+
fun Logger.isSevereLoggable(): Boolean
+
+

Is Level.SEVERE logging enabled.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
+
+ +
+
+ + + diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-valid-url.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-valid-url.html index 14e1700..582b212 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-valid-url.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-valid-url.html @@ -29,6 +29,17 @@
fun String.isValidUrl(): Boolean

Validates a URL.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/logger.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/logger.html index 86ec026..796666b 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/logger.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/logger.html @@ -29,6 +29,17 @@
val logger: Logger

The logger instance.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/remove-http.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/remove-http.html index 19ed044..8b812c6 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/remove-http.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/remove-http.html @@ -29,6 +29,17 @@
fun String.removeHttp(): String

Removes http(s) scheme from string.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/to-end-point.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/to-end-point.html index b016f1e..b951407 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/to-end-point.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/to-end-point.html @@ -29,6 +29,17 @@
fun String.toEndPoint(): String

Builds the full API endpoint URL using the Constants.API_BASE_URL.

+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/index.html b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/index.html index 4952206..cb052af 100644 --- a/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/index.html +++ b/docs/bitly-shorten/net.thauvin.erik.bitly/-utils/index.html @@ -25,7 +25,7 @@
open class Utils

Provides useful generic functions.

-
+

Types

@@ -46,6 +46,17 @@
+

Sources

+
+
+
+
jvm source +
Link copied to clipboard
+
+
+
+
+
diff --git a/docs/bitly-shorten/package-list b/docs/bitly-shorten/package-list index 3dbd496..c0616c0 100644 --- a/docs/bitly-shorten/package-list +++ b/docs/bitly-shorten/package-list @@ -21,7 +21,16 @@ $dokka.location:net.thauvin.erik.bitly/Bitly/call/#kotlin.String#kotlin.collecti $dokka.location:net.thauvin.erik.bitly/CallResponse///PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html $dokka.location:net.thauvin.erik.bitly/CallResponse/CallResponse/#kotlin.String#kotlin.Int/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/-call-response.html $dokka.location:net.thauvin.erik.bitly/CallResponse/body/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/body.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isBadRequest/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-bad-request.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isCreated/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-created.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isExpectationFailed/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-expectation-failed.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isForbidden/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-forbidden.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isInternalError/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-internal-error.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isNotFound/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-not-found.html $dokka.location:net.thauvin.erik.bitly/CallResponse/isSuccessful/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-successful.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isTemporarilyUnavailable/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-temporarily-unavailable.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isUnprocessableEntity/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-unprocessable-entity.html +$dokka.location:net.thauvin.erik.bitly/CallResponse/isUpgradeRequired/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/is-upgrade-required.html $dokka.location:net.thauvin.erik.bitly/CallResponse/resultCode/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-call-response/result-code.html $dokka.location:net.thauvin.erik.bitly/Constants.Constants///PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/index.html $dokka.location:net.thauvin.erik.bitly/Constants.Constants/API_BASE_URL/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-a-p-i_-b-a-s-e_-u-r-l.html @@ -62,6 +71,7 @@ $dokka.location:net.thauvin.erik.bitly/Units.WEEK/ordinal/#/PointingToDeclaratio $dokka.location:net.thauvin.erik.bitly/Units///PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-units/index.html $dokka.location:net.thauvin.erik.bitly/Utils.Companion///PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/index.html $dokka.location:net.thauvin.erik.bitly/Utils.Companion/call/#kotlin.String#kotlin.String#kotlin.collections.Map[kotlin.String,kotlin.Any]#net.thauvin.erik.bitly.Methods/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/call.html +$dokka.location:net.thauvin.erik.bitly/Utils.Companion/isSevereLoggable/java.util.logging.Logger#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-severe-loggable.html $dokka.location:net.thauvin.erik.bitly/Utils.Companion/isValidUrl/kotlin.String#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-valid-url.html $dokka.location:net.thauvin.erik.bitly/Utils.Companion/logger/#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/logger.html $dokka.location:net.thauvin.erik.bitly/Utils.Companion/removeHttp/kotlin.String#/PointingToDeclaration/bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/remove-http.html diff --git a/docs/scripts/pages.json b/docs/scripts/pages.json index 4bcae4c..c15e72e 100644 --- a/docs/scripts/pages.json +++ b/docs/scripts/pages.json @@ -1 +1 @@ -[{"name":"DAY()","description":"net.thauvin.erik.bitly.Units.DAY","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/index.html","searchKeys":["DAY","DAY()","net.thauvin.erik.bitly.Units.DAY"]},{"name":"DELETE()","description":"net.thauvin.erik.bitly.Methods.DELETE","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/index.html","searchKeys":["DELETE","DELETE()","net.thauvin.erik.bitly.Methods.DELETE"]},{"name":"GET()","description":"net.thauvin.erik.bitly.Methods.GET","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/index.html","searchKeys":["GET","GET()","net.thauvin.erik.bitly.Methods.GET"]},{"name":"HOUR()","description":"net.thauvin.erik.bitly.Units.HOUR","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/index.html","searchKeys":["HOUR","HOUR()","net.thauvin.erik.bitly.Units.HOUR"]},{"name":"MINUTE()","description":"net.thauvin.erik.bitly.Units.MINUTE","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/index.html","searchKeys":["MINUTE","MINUTE()","net.thauvin.erik.bitly.Units.MINUTE"]},{"name":"MONTH()","description":"net.thauvin.erik.bitly.Units.MONTH","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/index.html","searchKeys":["MONTH","MONTH()","net.thauvin.erik.bitly.Units.MONTH"]},{"name":"PATCH()","description":"net.thauvin.erik.bitly.Methods.PATCH","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/index.html","searchKeys":["PATCH","PATCH()","net.thauvin.erik.bitly.Methods.PATCH"]},{"name":"POST()","description":"net.thauvin.erik.bitly.Methods.POST","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/index.html","searchKeys":["POST","POST()","net.thauvin.erik.bitly.Methods.POST"]},{"name":"WEEK()","description":"net.thauvin.erik.bitly.Units.WEEK","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/index.html","searchKeys":["WEEK","WEEK()","net.thauvin.erik.bitly.Units.WEEK"]},{"name":"const val API_BASE_URL: String","description":"net.thauvin.erik.bitly.Constants.Constants.API_BASE_URL","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-a-p-i_-b-a-s-e_-u-r-l.html","searchKeys":["API_BASE_URL","const val API_BASE_URL: String","net.thauvin.erik.bitly.Constants.Constants.API_BASE_URL"]},{"name":"const val EMPTY: String","description":"net.thauvin.erik.bitly.Constants.Constants.EMPTY","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y.html","searchKeys":["EMPTY","const val EMPTY: String","net.thauvin.erik.bitly.Constants.Constants.EMPTY"]},{"name":"const val EMPTY_JSON: String","description":"net.thauvin.erik.bitly.Constants.Constants.EMPTY_JSON","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y_-j-s-o-n.html","searchKeys":["EMPTY_JSON","const val EMPTY_JSON: String","net.thauvin.erik.bitly.Constants.Constants.EMPTY_JSON"]},{"name":"const val ENV_ACCESS_TOKEN: String","description":"net.thauvin.erik.bitly.Constants.Constants.ENV_ACCESS_TOKEN","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-n-v_-a-c-c-e-s-s_-t-o-k-e-n.html","searchKeys":["ENV_ACCESS_TOKEN","const val ENV_ACCESS_TOKEN: String","net.thauvin.erik.bitly.Constants.Constants.ENV_ACCESS_TOKEN"]},{"name":"const val FALSE: String","description":"net.thauvin.erik.bitly.Constants.Constants.FALSE","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-f-a-l-s-e.html","searchKeys":["FALSE","const val FALSE: String","net.thauvin.erik.bitly.Constants.Constants.FALSE"]},{"name":"const val TRUE: String","description":"net.thauvin.erik.bitly.Constants.Constants.TRUE","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-t-r-u-e.html","searchKeys":["TRUE","const val TRUE: String","net.thauvin.erik.bitly.Constants.Constants.TRUE"]},{"name":"data class CallResponse(body: String, resultCode: Int)","description":"net.thauvin.erik.bitly.CallResponse","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html","searchKeys":["CallResponse","data class CallResponse(body: String, resultCode: Int)","net.thauvin.erik.bitly.CallResponse"]},{"name":"enum Methods : Enum ","description":"net.thauvin.erik.bitly.Methods","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/index.html","searchKeys":["Methods","enum Methods : Enum ","net.thauvin.erik.bitly.Methods"]},{"name":"enum Units : Enum ","description":"net.thauvin.erik.bitly.Units","location":"bitly-shorten/net.thauvin.erik.bitly/-units/index.html","searchKeys":["Units","enum Units : Enum ","net.thauvin.erik.bitly.Units"]},{"name":"fun Bitlinks(accessToken: String)","description":"net.thauvin.erik.bitly.Bitlinks.Bitlinks","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/-bitlinks.html","searchKeys":["Bitlinks","fun Bitlinks(accessToken: String)","net.thauvin.erik.bitly.Bitlinks.Bitlinks"]},{"name":"fun Bitly()","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly()","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun Bitly(accessToken: String)","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly(accessToken: String)","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun Bitly(propertiesFile: File, key: String = Constants.ENV_ACCESS_TOKEN)","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly(propertiesFile: File, key: String = Constants.ENV_ACCESS_TOKEN)","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun Bitly(propertiesFilePath: Path, key: String = Constants.ENV_ACCESS_TOKEN)","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly(propertiesFilePath: Path, key: String = Constants.ENV_ACCESS_TOKEN)","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun CallResponse(body: String = Constants.EMPTY_JSON, resultCode: Int = -1)","description":"net.thauvin.erik.bitly.CallResponse.CallResponse","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/-call-response.html","searchKeys":["CallResponse","fun CallResponse(body: String = Constants.EMPTY_JSON, resultCode: Int = -1)","net.thauvin.erik.bitly.CallResponse.CallResponse"]},{"name":"fun String.isValidUrl(): Boolean","description":"net.thauvin.erik.bitly.Utils.Companion.isValidUrl","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-valid-url.html","searchKeys":["isValidUrl","fun String.isValidUrl(): Boolean","net.thauvin.erik.bitly.Utils.Companion.isValidUrl"]},{"name":"fun String.removeHttp(): String","description":"net.thauvin.erik.bitly.Utils.Companion.removeHttp","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/remove-http.html","searchKeys":["removeHttp","fun String.removeHttp(): String","net.thauvin.erik.bitly.Utils.Companion.removeHttp"]},{"name":"fun String.toEndPoint(): String","description":"net.thauvin.erik.bitly.Utils.Companion.toEndPoint","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/to-end-point.html","searchKeys":["toEndPoint","fun String.toEndPoint(): String","net.thauvin.erik.bitly.Utils.Companion.toEndPoint"]},{"name":"fun bitlinks(): Bitlinks","description":"net.thauvin.erik.bitly.Bitly.bitlinks","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/bitlinks.html","searchKeys":["bitlinks","fun bitlinks(): Bitlinks","net.thauvin.erik.bitly.Bitly.bitlinks"]},{"name":"fun call(accessToken: String, endPoint: String, params: Map = emptyMap(), method: Methods = Methods.POST): CallResponse","description":"net.thauvin.erik.bitly.Utils.Companion.call","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/call.html","searchKeys":["call","fun call(accessToken: String, endPoint: String, params: Map = emptyMap(), method: Methods = Methods.POST): CallResponse","net.thauvin.erik.bitly.Utils.Companion.call"]},{"name":"fun call(endPoint: String, params: Map = emptyMap(), method: Methods = Methods.POST): CallResponse","description":"net.thauvin.erik.bitly.Bitly.call","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/call.html","searchKeys":["call","fun call(endPoint: String, params: Map = emptyMap(), method: Methods = Methods.POST): CallResponse","net.thauvin.erik.bitly.Bitly.call"]},{"name":"fun clicks(bitlink: String, unit: Units = Units.DAY, units: Int = -1, size: Int = 50, unit_reference: String = Constants.EMPTY, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.clicks","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/clicks.html","searchKeys":["clicks","fun clicks(bitlink: String, unit: Units = Units.DAY, units: Int = -1, size: Int = 50, unit_reference: String = Constants.EMPTY, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.clicks"]},{"name":"fun create(domain: String = Constants.EMPTY, title: String = Constants.EMPTY, group_guid: String = Constants.EMPTY, tags: Array = emptyArray(), deeplinks: Array> = emptyArray(), long_url: String, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.create","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/create.html","searchKeys":["create","fun create(domain: String = Constants.EMPTY, title: String = Constants.EMPTY, group_guid: String = Constants.EMPTY, tags: Array = emptyArray(), deeplinks: Array> = emptyArray(), long_url: String, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.create"]},{"name":"fun expand(bitlink_id: String, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.expand","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/expand.html","searchKeys":["expand","fun expand(bitlink_id: String, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.expand"]},{"name":"fun shorten(long_url: String, group_guid: String = Constants.EMPTY, domain: String = Constants.EMPTY, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.shorten","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/shorten.html","searchKeys":["shorten","fun shorten(long_url: String, group_guid: String = Constants.EMPTY, domain: String = Constants.EMPTY, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.shorten"]},{"name":"fun update(bitlink: String, references: Map = emptyMap(), archived: Boolean = false, tags: Array = emptyArray(), created_at: String = Constants.EMPTY, title: String = Constants.EMPTY, deeplinks: Array> = emptyArray(), created_by: String = Constants.EMPTY, long_url: String = Constants.EMPTY, client_id: String = Constants.EMPTY, custom_bitlinks: Array = emptyArray(), link: String = Constants.EMPTY, id: String = Constants.EMPTY, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.update","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/update.html","searchKeys":["update","fun update(bitlink: String, references: Map = emptyMap(), archived: Boolean = false, tags: Array = emptyArray(), created_at: String = Constants.EMPTY, title: String = Constants.EMPTY, deeplinks: Array> = emptyArray(), created_by: String = Constants.EMPTY, long_url: String = Constants.EMPTY, client_id: String = Constants.EMPTY, custom_bitlinks: Array = emptyArray(), link: String = Constants.EMPTY, id: String = Constants.EMPTY, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.update"]},{"name":"object Companion","description":"net.thauvin.erik.bitly.Utils.Companion","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/index.html","searchKeys":["Companion","object Companion","net.thauvin.erik.bitly.Utils.Companion"]},{"name":"object Constants","description":"net.thauvin.erik.bitly.Constants.Constants","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/index.html","searchKeys":["Constants","object Constants","net.thauvin.erik.bitly.Constants.Constants"]},{"name":"open class Bitlinks(accessToken: String)","description":"net.thauvin.erik.bitly.Bitlinks","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html","searchKeys":["Bitlinks","open class Bitlinks(accessToken: String)","net.thauvin.erik.bitly.Bitlinks"]},{"name":"open class Bitly","description":"net.thauvin.erik.bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html","searchKeys":["Bitly","open class Bitly","net.thauvin.erik.bitly.Bitly"]},{"name":"open class Constants","description":"net.thauvin.erik.bitly.Constants","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/index.html","searchKeys":["Constants","open class Constants","net.thauvin.erik.bitly.Constants"]},{"name":"open class Utils","description":"net.thauvin.erik.bitly.Utils","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/index.html","searchKeys":["Utils","open class Utils","net.thauvin.erik.bitly.Utils"]},{"name":"val isSuccessful: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isSuccessful","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-successful.html","searchKeys":["isSuccessful","val isSuccessful: Boolean","net.thauvin.erik.bitly.CallResponse.isSuccessful"]},{"name":"val logger: Logger","description":"net.thauvin.erik.bitly.Utils.Companion.logger","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/logger.html","searchKeys":["logger","val logger: Logger","net.thauvin.erik.bitly.Utils.Companion.logger"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Methods.DELETE.name","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Methods.DELETE.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Methods.GET.name","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Methods.GET.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Methods.PATCH.name","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Methods.PATCH.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Methods.POST.name","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Methods.POST.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.DAY.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.DAY.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.HOUR.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.HOUR.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.MINUTE.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.MINUTE.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.MONTH.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.MONTH.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.WEEK.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.WEEK.name"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Methods.DELETE.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Methods.DELETE.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Methods.GET.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Methods.GET.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Methods.PATCH.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Methods.PATCH.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Methods.POST.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Methods.POST.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.DAY.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.DAY.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.HOUR.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.HOUR.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.MINUTE.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.MINUTE.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.MONTH.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.MONTH.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.WEEK.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.WEEK.ordinal"]},{"name":"var accessToken: String","description":"net.thauvin.erik.bitly.Bitly.accessToken","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/access-token.html","searchKeys":["accessToken","var accessToken: String","net.thauvin.erik.bitly.Bitly.accessToken"]},{"name":"var body: String","description":"net.thauvin.erik.bitly.CallResponse.body","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/body.html","searchKeys":["body","var body: String","net.thauvin.erik.bitly.CallResponse.body"]},{"name":"var lastCallResponse: CallResponse","description":"net.thauvin.erik.bitly.Bitlinks.lastCallResponse","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/last-call-response.html","searchKeys":["lastCallResponse","var lastCallResponse: CallResponse","net.thauvin.erik.bitly.Bitlinks.lastCallResponse"]},{"name":"var resultCode: Int","description":"net.thauvin.erik.bitly.CallResponse.resultCode","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/result-code.html","searchKeys":["resultCode","var resultCode: Int","net.thauvin.erik.bitly.CallResponse.resultCode"]}] +[{"name":"DAY()","description":"net.thauvin.erik.bitly.Units.DAY","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/index.html","searchKeys":["DAY","DAY()","net.thauvin.erik.bitly.Units.DAY"]},{"name":"DELETE()","description":"net.thauvin.erik.bitly.Methods.DELETE","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/index.html","searchKeys":["DELETE","DELETE()","net.thauvin.erik.bitly.Methods.DELETE"]},{"name":"GET()","description":"net.thauvin.erik.bitly.Methods.GET","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/index.html","searchKeys":["GET","GET()","net.thauvin.erik.bitly.Methods.GET"]},{"name":"HOUR()","description":"net.thauvin.erik.bitly.Units.HOUR","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/index.html","searchKeys":["HOUR","HOUR()","net.thauvin.erik.bitly.Units.HOUR"]},{"name":"MINUTE()","description":"net.thauvin.erik.bitly.Units.MINUTE","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/index.html","searchKeys":["MINUTE","MINUTE()","net.thauvin.erik.bitly.Units.MINUTE"]},{"name":"MONTH()","description":"net.thauvin.erik.bitly.Units.MONTH","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/index.html","searchKeys":["MONTH","MONTH()","net.thauvin.erik.bitly.Units.MONTH"]},{"name":"PATCH()","description":"net.thauvin.erik.bitly.Methods.PATCH","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/index.html","searchKeys":["PATCH","PATCH()","net.thauvin.erik.bitly.Methods.PATCH"]},{"name":"POST()","description":"net.thauvin.erik.bitly.Methods.POST","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/index.html","searchKeys":["POST","POST()","net.thauvin.erik.bitly.Methods.POST"]},{"name":"WEEK()","description":"net.thauvin.erik.bitly.Units.WEEK","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/index.html","searchKeys":["WEEK","WEEK()","net.thauvin.erik.bitly.Units.WEEK"]},{"name":"const val API_BASE_URL: String","description":"net.thauvin.erik.bitly.Constants.Constants.API_BASE_URL","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-a-p-i_-b-a-s-e_-u-r-l.html","searchKeys":["API_BASE_URL","const val API_BASE_URL: String","net.thauvin.erik.bitly.Constants.Constants.API_BASE_URL"]},{"name":"const val EMPTY: String","description":"net.thauvin.erik.bitly.Constants.Constants.EMPTY","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y.html","searchKeys":["EMPTY","const val EMPTY: String","net.thauvin.erik.bitly.Constants.Constants.EMPTY"]},{"name":"const val EMPTY_JSON: String","description":"net.thauvin.erik.bitly.Constants.Constants.EMPTY_JSON","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-m-p-t-y_-j-s-o-n.html","searchKeys":["EMPTY_JSON","const val EMPTY_JSON: String","net.thauvin.erik.bitly.Constants.Constants.EMPTY_JSON"]},{"name":"const val ENV_ACCESS_TOKEN: String","description":"net.thauvin.erik.bitly.Constants.Constants.ENV_ACCESS_TOKEN","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-e-n-v_-a-c-c-e-s-s_-t-o-k-e-n.html","searchKeys":["ENV_ACCESS_TOKEN","const val ENV_ACCESS_TOKEN: String","net.thauvin.erik.bitly.Constants.Constants.ENV_ACCESS_TOKEN"]},{"name":"const val FALSE: String","description":"net.thauvin.erik.bitly.Constants.Constants.FALSE","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-f-a-l-s-e.html","searchKeys":["FALSE","const val FALSE: String","net.thauvin.erik.bitly.Constants.Constants.FALSE"]},{"name":"const val TRUE: String","description":"net.thauvin.erik.bitly.Constants.Constants.TRUE","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/-t-r-u-e.html","searchKeys":["TRUE","const val TRUE: String","net.thauvin.erik.bitly.Constants.Constants.TRUE"]},{"name":"data class CallResponse(body: String, resultCode: Int)","description":"net.thauvin.erik.bitly.CallResponse","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/index.html","searchKeys":["CallResponse","data class CallResponse(body: String, resultCode: Int)","net.thauvin.erik.bitly.CallResponse"]},{"name":"enum Methods : Enum ","description":"net.thauvin.erik.bitly.Methods","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/index.html","searchKeys":["Methods","enum Methods : Enum ","net.thauvin.erik.bitly.Methods"]},{"name":"enum Units : Enum ","description":"net.thauvin.erik.bitly.Units","location":"bitly-shorten/net.thauvin.erik.bitly/-units/index.html","searchKeys":["Units","enum Units : Enum ","net.thauvin.erik.bitly.Units"]},{"name":"fun Bitlinks(accessToken: String)","description":"net.thauvin.erik.bitly.Bitlinks.Bitlinks","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/-bitlinks.html","searchKeys":["Bitlinks","fun Bitlinks(accessToken: String)","net.thauvin.erik.bitly.Bitlinks.Bitlinks"]},{"name":"fun Bitly()","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly()","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun Bitly(accessToken: String)","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly(accessToken: String)","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun Bitly(propertiesFile: File, key: String = Constants.ENV_ACCESS_TOKEN)","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly(propertiesFile: File, key: String = Constants.ENV_ACCESS_TOKEN)","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun Bitly(propertiesFilePath: Path, key: String = Constants.ENV_ACCESS_TOKEN)","description":"net.thauvin.erik.bitly.Bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/-bitly.html","searchKeys":["Bitly","fun Bitly(propertiesFilePath: Path, key: String = Constants.ENV_ACCESS_TOKEN)","net.thauvin.erik.bitly.Bitly.Bitly"]},{"name":"fun CallResponse(body: String = Constants.EMPTY_JSON, resultCode: Int = -1)","description":"net.thauvin.erik.bitly.CallResponse.CallResponse","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/-call-response.html","searchKeys":["CallResponse","fun CallResponse(body: String = Constants.EMPTY_JSON, resultCode: Int = -1)","net.thauvin.erik.bitly.CallResponse.CallResponse"]},{"name":"fun Logger.isSevereLoggable(): Boolean","description":"net.thauvin.erik.bitly.Utils.Companion.isSevereLoggable","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-severe-loggable.html","searchKeys":["isSevereLoggable","fun Logger.isSevereLoggable(): Boolean","net.thauvin.erik.bitly.Utils.Companion.isSevereLoggable"]},{"name":"fun String.isValidUrl(): Boolean","description":"net.thauvin.erik.bitly.Utils.Companion.isValidUrl","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/is-valid-url.html","searchKeys":["isValidUrl","fun String.isValidUrl(): Boolean","net.thauvin.erik.bitly.Utils.Companion.isValidUrl"]},{"name":"fun String.removeHttp(): String","description":"net.thauvin.erik.bitly.Utils.Companion.removeHttp","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/remove-http.html","searchKeys":["removeHttp","fun String.removeHttp(): String","net.thauvin.erik.bitly.Utils.Companion.removeHttp"]},{"name":"fun String.toEndPoint(): String","description":"net.thauvin.erik.bitly.Utils.Companion.toEndPoint","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/to-end-point.html","searchKeys":["toEndPoint","fun String.toEndPoint(): String","net.thauvin.erik.bitly.Utils.Companion.toEndPoint"]},{"name":"fun bitlinks(): Bitlinks","description":"net.thauvin.erik.bitly.Bitly.bitlinks","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/bitlinks.html","searchKeys":["bitlinks","fun bitlinks(): Bitlinks","net.thauvin.erik.bitly.Bitly.bitlinks"]},{"name":"fun call(accessToken: String, endPoint: String, params: Map = emptyMap(), method: Methods = Methods.POST): CallResponse","description":"net.thauvin.erik.bitly.Utils.Companion.call","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/call.html","searchKeys":["call","fun call(accessToken: String, endPoint: String, params: Map = emptyMap(), method: Methods = Methods.POST): CallResponse","net.thauvin.erik.bitly.Utils.Companion.call"]},{"name":"fun call(endPoint: String, params: Map = emptyMap(), method: Methods = Methods.POST): CallResponse","description":"net.thauvin.erik.bitly.Bitly.call","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/call.html","searchKeys":["call","fun call(endPoint: String, params: Map = emptyMap(), method: Methods = Methods.POST): CallResponse","net.thauvin.erik.bitly.Bitly.call"]},{"name":"fun clicks(bitlink: String, unit: Units = Units.DAY, units: Int = -1, size: Int = 50, unit_reference: String = Constants.EMPTY, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.clicks","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/clicks.html","searchKeys":["clicks","fun clicks(bitlink: String, unit: Units = Units.DAY, units: Int = -1, size: Int = 50, unit_reference: String = Constants.EMPTY, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.clicks"]},{"name":"fun create(domain: String = Constants.EMPTY, title: String = Constants.EMPTY, group_guid: String = Constants.EMPTY, tags: Array = emptyArray(), deeplinks: Array> = emptyArray(), long_url: String, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.create","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/create.html","searchKeys":["create","fun create(domain: String = Constants.EMPTY, title: String = Constants.EMPTY, group_guid: String = Constants.EMPTY, tags: Array = emptyArray(), deeplinks: Array> = emptyArray(), long_url: String, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.create"]},{"name":"fun expand(bitlink_id: String, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.expand","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/expand.html","searchKeys":["expand","fun expand(bitlink_id: String, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.expand"]},{"name":"fun shorten(long_url: String, group_guid: String = Constants.EMPTY, domain: String = Constants.EMPTY, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.shorten","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/shorten.html","searchKeys":["shorten","fun shorten(long_url: String, group_guid: String = Constants.EMPTY, domain: String = Constants.EMPTY, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.shorten"]},{"name":"fun update(bitlink: String, references: Map = emptyMap(), archived: Boolean = false, tags: Array = emptyArray(), created_at: String = Constants.EMPTY, title: String = Constants.EMPTY, deeplinks: Array> = emptyArray(), created_by: String = Constants.EMPTY, long_url: String = Constants.EMPTY, client_id: String = Constants.EMPTY, custom_bitlinks: Array = emptyArray(), link: String = Constants.EMPTY, id: String = Constants.EMPTY, toJson: Boolean = false): String","description":"net.thauvin.erik.bitly.Bitlinks.update","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/update.html","searchKeys":["update","fun update(bitlink: String, references: Map = emptyMap(), archived: Boolean = false, tags: Array = emptyArray(), created_at: String = Constants.EMPTY, title: String = Constants.EMPTY, deeplinks: Array> = emptyArray(), created_by: String = Constants.EMPTY, long_url: String = Constants.EMPTY, client_id: String = Constants.EMPTY, custom_bitlinks: Array = emptyArray(), link: String = Constants.EMPTY, id: String = Constants.EMPTY, toJson: Boolean = false): String","net.thauvin.erik.bitly.Bitlinks.update"]},{"name":"object Companion","description":"net.thauvin.erik.bitly.Utils.Companion","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/index.html","searchKeys":["Companion","object Companion","net.thauvin.erik.bitly.Utils.Companion"]},{"name":"object Constants","description":"net.thauvin.erik.bitly.Constants.Constants","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/-constants/index.html","searchKeys":["Constants","object Constants","net.thauvin.erik.bitly.Constants.Constants"]},{"name":"open class Bitlinks(accessToken: String)","description":"net.thauvin.erik.bitly.Bitlinks","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/index.html","searchKeys":["Bitlinks","open class Bitlinks(accessToken: String)","net.thauvin.erik.bitly.Bitlinks"]},{"name":"open class Bitly","description":"net.thauvin.erik.bitly.Bitly","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/index.html","searchKeys":["Bitly","open class Bitly","net.thauvin.erik.bitly.Bitly"]},{"name":"open class Constants","description":"net.thauvin.erik.bitly.Constants","location":"bitly-shorten/net.thauvin.erik.bitly/-constants/index.html","searchKeys":["Constants","open class Constants","net.thauvin.erik.bitly.Constants"]},{"name":"open class Utils","description":"net.thauvin.erik.bitly.Utils","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/index.html","searchKeys":["Utils","open class Utils","net.thauvin.erik.bitly.Utils"]},{"name":"val body: String","description":"net.thauvin.erik.bitly.CallResponse.body","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/body.html","searchKeys":["body","val body: String","net.thauvin.erik.bitly.CallResponse.body"]},{"name":"val isBadRequest: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isBadRequest","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-bad-request.html","searchKeys":["isBadRequest","val isBadRequest: Boolean","net.thauvin.erik.bitly.CallResponse.isBadRequest"]},{"name":"val isCreated: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isCreated","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-created.html","searchKeys":["isCreated","val isCreated: Boolean","net.thauvin.erik.bitly.CallResponse.isCreated"]},{"name":"val isExpectationFailed: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isExpectationFailed","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-expectation-failed.html","searchKeys":["isExpectationFailed","val isExpectationFailed: Boolean","net.thauvin.erik.bitly.CallResponse.isExpectationFailed"]},{"name":"val isForbidden: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isForbidden","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-forbidden.html","searchKeys":["isForbidden","val isForbidden: Boolean","net.thauvin.erik.bitly.CallResponse.isForbidden"]},{"name":"val isInternalError: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isInternalError","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-internal-error.html","searchKeys":["isInternalError","val isInternalError: Boolean","net.thauvin.erik.bitly.CallResponse.isInternalError"]},{"name":"val isNotFound: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isNotFound","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-not-found.html","searchKeys":["isNotFound","val isNotFound: Boolean","net.thauvin.erik.bitly.CallResponse.isNotFound"]},{"name":"val isSuccessful: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isSuccessful","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-successful.html","searchKeys":["isSuccessful","val isSuccessful: Boolean","net.thauvin.erik.bitly.CallResponse.isSuccessful"]},{"name":"val isTemporarilyUnavailable: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isTemporarilyUnavailable","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-temporarily-unavailable.html","searchKeys":["isTemporarilyUnavailable","val isTemporarilyUnavailable: Boolean","net.thauvin.erik.bitly.CallResponse.isTemporarilyUnavailable"]},{"name":"val isUnprocessableEntity: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isUnprocessableEntity","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-unprocessable-entity.html","searchKeys":["isUnprocessableEntity","val isUnprocessableEntity: Boolean","net.thauvin.erik.bitly.CallResponse.isUnprocessableEntity"]},{"name":"val isUpgradeRequired: Boolean","description":"net.thauvin.erik.bitly.CallResponse.isUpgradeRequired","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/is-upgrade-required.html","searchKeys":["isUpgradeRequired","val isUpgradeRequired: Boolean","net.thauvin.erik.bitly.CallResponse.isUpgradeRequired"]},{"name":"val logger: Logger","description":"net.thauvin.erik.bitly.Utils.Companion.logger","location":"bitly-shorten/net.thauvin.erik.bitly/-utils/-companion/logger.html","searchKeys":["logger","val logger: Logger","net.thauvin.erik.bitly.Utils.Companion.logger"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Methods.DELETE.name","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Methods.DELETE.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Methods.GET.name","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Methods.GET.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Methods.PATCH.name","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Methods.PATCH.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Methods.POST.name","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Methods.POST.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.DAY.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.DAY.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.HOUR.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.HOUR.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.MINUTE.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.MINUTE.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.MONTH.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.MONTH.name"]},{"name":"val name: String","description":"net.thauvin.erik.bitly.Units.WEEK.name","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/name.html","searchKeys":["name","val name: String","net.thauvin.erik.bitly.Units.WEEK.name"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Methods.DELETE.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-d-e-l-e-t-e/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Methods.DELETE.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Methods.GET.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-g-e-t/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Methods.GET.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Methods.PATCH.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-a-t-c-h/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Methods.PATCH.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Methods.POST.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-methods/-p-o-s-t/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Methods.POST.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.DAY.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-d-a-y/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.DAY.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.HOUR.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-h-o-u-r/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.HOUR.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.MINUTE.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-i-n-u-t-e/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.MINUTE.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.MONTH.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-m-o-n-t-h/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.MONTH.ordinal"]},{"name":"val ordinal: Int","description":"net.thauvin.erik.bitly.Units.WEEK.ordinal","location":"bitly-shorten/net.thauvin.erik.bitly/-units/-w-e-e-k/ordinal.html","searchKeys":["ordinal","val ordinal: Int","net.thauvin.erik.bitly.Units.WEEK.ordinal"]},{"name":"val resultCode: Int","description":"net.thauvin.erik.bitly.CallResponse.resultCode","location":"bitly-shorten/net.thauvin.erik.bitly/-call-response/result-code.html","searchKeys":["resultCode","val resultCode: Int","net.thauvin.erik.bitly.CallResponse.resultCode"]},{"name":"var accessToken: String","description":"net.thauvin.erik.bitly.Bitly.accessToken","location":"bitly-shorten/net.thauvin.erik.bitly/-bitly/access-token.html","searchKeys":["accessToken","var accessToken: String","net.thauvin.erik.bitly.Bitly.accessToken"]},{"name":"var lastCallResponse: CallResponse","description":"net.thauvin.erik.bitly.Bitlinks.lastCallResponse","location":"bitly-shorten/net.thauvin.erik.bitly/-bitlinks/last-call-response.html","searchKeys":["lastCallResponse","var lastCallResponse: CallResponse","net.thauvin.erik.bitly.Bitlinks.lastCallResponse"]}] diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index 554f747..6ee7c52 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -1,7 +1,7 @@ plugins { id("application") id("com.github.ben-manes.versions") version "0.39.0" - kotlin("jvm") version "1.5.10" + kotlin("jvm") version "1.5.21" } // ./gradlew run --args='https://erik.thauvin.net/ https://bit.ly/2PsNMAA' @@ -25,13 +25,13 @@ application { tasks { register("runJava", JavaExec::class) { group = "application" - main = "com.example.BitlySample" + mainClass.set("com.example.BitlySample") classpath = sourceSets.main.get().runtimeClasspath } register("runRetrieve", JavaExec::class) { group = "application" - main = "com.example.BitlyRetrieveKt" + mainClass.set("com.example.BitlyRetrieveKt") classpath = sourceSets.main.get().runtimeClasspath } } diff --git a/examples/gradle/wrapper/gradle-wrapper.jar b/examples/gradle/wrapper/gradle-wrapper.jar index e708b1c..7454180 100644 Binary files a/examples/gradle/wrapper/gradle-wrapper.jar and b/examples/gradle/wrapper/gradle-wrapper.jar differ diff --git a/examples/gradle/wrapper/gradle-wrapper.properties b/examples/gradle/wrapper/gradle-wrapper.properties index 0f80bbf..05679dc 100644 --- a/examples/gradle/wrapper/gradle-wrapper.properties +++ b/examples/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/examples/gradlew b/examples/gradlew index 4f906e0..744e882 100755 --- a/examples/gradlew +++ b/examples/gradlew @@ -72,7 +72,7 @@ case "`uname`" in Darwin* ) darwin=true ;; - MINGW* ) + MSYS* | MINGW* ) msys=true ;; NONSTOP* ) diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e708b1c..7454180 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0f80bbf..05679dc 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 4f906e0..744e882 100755 --- a/gradlew +++ b/gradlew @@ -72,7 +72,7 @@ case "`uname`" in Darwin* ) darwin=true ;; - MINGW* ) + MSYS* | MINGW* ) msys=true ;; NONSTOP* ) diff --git a/pom.xml b/pom.xml index 96bf1b9..af283d6 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ org.jetbrains.kotlin kotlin-bom - 1.5.10 + 1.5.21 pom import @@ -50,7 +50,7 @@ org.jetbrains.kotlin kotlin-stdlib-jdk8 - 1.5.10 + 1.5.21 compile diff --git a/settings.gradle.kts b/settings.gradle.kts index d04add0..4dd24aa 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,11 +1,18 @@ plugins { - id("com.gradle.enterprise").version("3.1.1") + id("com.gradle.enterprise").version("3.6.3") } -rootProject.name = "bitly-shorten" - gradleEnterprise { buildScan { - // plugin configuration + link("GitHub", "https://github.com/ethauvin/bitly-shorten/tree/master") + if (!System.getenv("CI").isNullOrEmpty()) { + isUploadInBackground = false + publishOnFailure() + tag("CI") + } + termsOfServiceUrl = "https://gradle.com/terms-of-service" + termsOfServiceAgree = "yes" } } + +rootProject.name = "bitly-shorten"