Skip to main content

DemoService

A list of all methods in the DemoService service. Click on the method name to view detailed information about that method.

MethodsDescription
createDemoCreates a new Demo access
deleteDemoDeletes the Demo access

createDemo

Creates a new Demo access

  • HTTP Method: POST
  • Endpoint: /demo

Parameters

NameTypeRequiredDescription
demoParamsDemoParamsRequest Body

Return Type

Demo

Example Usage Code Snippet

import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.Demo;
import com.swagger.petstore.models.DemoParams;
import com.swagger.petstore.models.Permission;

fun main() {
val config: TestSdkConfig = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();

val testSdk: TestSdk = TestSdk(config);

val demoParams: DemoParams = DemoParams.builder()
.permission(Permission.READ_WRITE)
.email("email")
.build();

val response: Demo = testSdk.demo.createDemo(demoParams);

println(response);
}

deleteDemo

Deletes the Demo access

  • HTTP Method: DELETE
  • Endpoint: /demo

Parameters

NameTypeRequiredDescription
demoParamsDemoParamsRequest Body

Return Type

Demo

Example Usage Code Snippet

import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.Demo;
import com.swagger.petstore.models.DemoParams;
import com.swagger.petstore.models.Permission;

fun main() {
val config: TestSdkConfig = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();

val testSdk: TestSdk = TestSdk(config);

val demoParams: DemoParams = DemoParams.builder()
.permission(Permission.READ_WRITE)
.email("email")
.build();

val response: Demo = testSdk.demo.deleteDemo(demoParams);

println(response);
}