Skip to content

hvh-software/Neverlose-Java-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Neverlose Marketplace SDK for Java

This SDK is a Java library for interacting with the Neverlose Marketplace API. It allows you to interact with the API in a more convenient way.

Setup

Add JVM arguments

-Dneverlose.userId=[Your User ID] -Dneverlose.secret=[Your Secret]

Setup method

import cn.fluxhvh.neverlose.NeverloseSDK;

public class Main {
    public static void main(String[] args) {
        NeverloseSDK.setup("Your User ID", "Your Secret");
    }
}

Usage

import cn.fluxhvh.neverlose.requests.impl.CheckUserExistedRequest;
import cn.fluxhvh.neverlose.response.impl.CheckUserExistedResponse;
import cn.fluxhvh.neverlose.response.BaseResponse;

import java.io.IOException;

public class CheckUserExisted {
    public static void main(String[] args) throws IOException {
        BaseResponse response = new CheckUserExistedRequest("Margele").send();

        if (response instanceof CheckUserExistedResponse) {
            if (((CheckUserExistedResponse) response).isUserExists()) {
                System.out.println("User exists");
            } else {
                System.out.println("User does not exist");
            }
        }
    }
}

Debug

-Dneverlose.debug=true

Credits

This SDK is based on the Neverlose Marketplace API and was created by Neverlose.

Made by Flux-Team with ❤️

About

Neverlose Marketplace SDK for Java.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages