private String getURL ( String endpoint , int version , String method ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( endpoint ) ; if ( ! endpoint . endsWith ( FORWARD_SLASH ) ) { sb . append ( FORWARD_SLASH ) ; } sb . append ( VERSION_PREFIX + version + FORWARD_SLASH + method ) ; return sb . toString ( ) ; }
Create the FigShare API URL using the endpoint version and API method .