handlebars.htmlDocs2.sample_android.mustache Maven / Gradle / Ivy
import {{{invokerPackage}}}.api.{{{classname}}};
public class {{{classname}}}Example {
public static void main(String[] args) {
{{{classname}}} apiInstance = new {{{classname}}}();
{{#parameters}}
{{{dataType}}} {{{paramName}}} = {{{example}}}; // {{{dataType}}} | {{{unescapedDescription}}}
{{/parameters}}
try {
{{#returnType}}{{{returnType}}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#parameters}}{{{paramName}}}{{#has this 'more'}}, {{/has}}{{/parameters}});{{#returnType}}
System.out.println(result);{{/returnType}}
} catch (ApiException e) {
System.err.println("Exception when calling {{{classname}}}#{{{operationId}}}");
e.printStackTrace();
}
}
}