githubEdit

table-listScplist Api

The Scplist Api integration provides easy interaction and data handling with the: https://scplist.kr/apiarrow-up-right

Usage

All functions for the Scplist Api are located in the io.github.vxrpenter.scplist.ScpList class, and can easily imported with one line:

import io.github.vxrpenter.scplist.ScpList

The ScpListarrow-up-right class does not need to be supplied with anything This is a short representation of correct ScpListarrow-up-right invocation:

import io.github.vxrpenter.secretlab.SecretLab
    
val scpList =  ScpList() 

Exceptions

All functions that are contained in the ScpListarrow-up-right class throw a CallFailureExceptionarrow-up-right inherited from a ScpListExceptionarrow-up-right when a call to the api fails for any reason. You can could catch it like this:

try {
  val scpList = ScpList().server(ID)
} catch (e: Exception) {
  println("An error has occured during an scplist api call")
  return
}

Examples

Fetching server information through the ScpList Api. This returns a Serverarrow-up-right object:

Last updated