Skip to content

device42/d42-java-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add repository

<repositories>
    <repository>
        <id>d42-java-client-mvn-repo</id>
        <url>https://github.com/device42/d42-java-client/mvn-repo/</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
        </snapshots>
    </repository>
</repositories>

Add dependency to pom.xml

<dependency>
    <groupId>com.device42</groupId>
     <artifactId>d42-java-client</artifactId>
     <version>1.0.13</version>
</dependency>

Example for ApplicationComponent

ApplicationComponentsRestClient appCompsRestClient=Device42ClientFactory.createApplicationComponentsRestClient("https://example.device42.com","username","password");
                                                   
ApplicationComponentParameters.ApplicationComponentParametersBuilder appCompsParametersBuilder=new ApplicationComponentParameters.ApplicationComponentParametersBuilder();

ApplicationComponentParameters appCompsParameters=appCompsParametersBuilder.deviceId(2018l).build();
List<ApplicationComponent> list=appCompsRestClient.getApplicationComponents(appCompsParameters);

ApplicationComponent appComponent=new ApplicationComponent("app-name", "device-name");
appComponent.setJsonConfig("{\"config\":\"parameters\"}");

appCompsRestClient.createOrUpdateApplicationComponent(appComponent);

About

This is Java client for working with Device42 API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages