public final class GhostbinServer extends Object
Constructor and Description |
---|
GhostbinServer(ExecutorService executor,
String defaultExpiryTime) |
GhostbinServer(ExecutorService executor,
String defaultExpiryTime,
String baseUrl) |
GhostbinServer(okhttp3.OkHttpClient client,
String defaultExpiryTime,
String baseUrl) |
GhostbinServer(String defaultExpiryTime) |
GhostbinServer(String defaultExpiryTime,
String baseUrl) |
Modifier and Type | Method and Description |
---|---|
RestRequest<String> |
createPaste(String code,
String language)
Creates a new paste
|
RestRequest<String> |
createPaste(String code,
String language,
String expiryTime)
Creates a new paste
|
RestRequest<GhostbinPaste> |
retrievePaste(String id)
Retrieves the paste with the specified id
|
public GhostbinServer(String defaultExpiryTime)
public GhostbinServer(ExecutorService executor, String defaultExpiryTime)
public GhostbinServer(ExecutorService executor, String defaultExpiryTime, String baseUrl)
public RestRequest<String> createPaste(String code, String language)
code
- codelanguage
- language idpublic RestRequest<String> createPaste(String code, String language, String expiryTime)
code
- codelanguage
- language idexpiryTime
- time after this bin will expirepublic RestRequest<GhostbinPaste> retrievePaste(String id)
id
- paste idCopyright © 2019. All rights reserved.