Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 612 Bytes

File metadata and controls

25 lines (19 loc) · 612 Bytes
package hello.world;

import com.formance.formance_sdk.SDK;
import com.formance.formance_sdk.models.operations.GetVersionsResponse;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws Exception {

        SDK sdk = SDK.builder()
            .build();

        GetVersionsResponse res = sdk.getVersions()
                .call();

        if (res.getVersionsResponse().isPresent()) {
            System.out.println(res.getVersionsResponse().get());
        }
    }
}