JPastee

Java Wrapper for the https://paste.ee/ API

Лицензия

Лицензия

Группа

Группа

fr.minuskube
Идентификатор

Идентификатор

jpastee
Последняя версия

Последняя версия

1.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

JPastee
Java Wrapper for the https://paste.ee/ API
Ссылка на сайт

Ссылка на сайт

https://github.com/MinusKube/JPastee
Система контроля версий

Система контроля версий

http://github.com/MinusKube/JPastee/tree/master

Скачать jpastee

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/fr.minuskube/jpastee/ -->
<dependency>
    <groupId>fr.minuskube</groupId>
    <artifactId>jpastee</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/fr.minuskube/jpastee/
implementation 'fr.minuskube:jpastee:1.0.2'
// https://jarcasting.com/artifacts/fr.minuskube/jpastee/
implementation ("fr.minuskube:jpastee:1.0.2")
'fr.minuskube:jpastee:jar:1.0.2'
<dependency org="fr.minuskube" name="jpastee" rev="1.0.2">
  <artifact name="jpastee" type="jar" />
</dependency>
@Grapes(
@Grab(group='fr.minuskube', module='jpastee', version='1.0.2')
)
libraryDependencies += "fr.minuskube" % "jpastee" % "1.0.2"
[fr.minuskube/jpastee "1.0.2"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.mashape.unirest : unirest-java jar 1.4.9

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

JPastee

Java Wrapper for the https://paste.ee/ API

Installation

Gradle

repositories {
    mavenCentral()
}

dependencies {
    compile 'fr.minuskube:jpastee:1.0.2'
}

Maven

<dependency>
  <groupId>fr.minuskube</groupId>
  <artifactId>jpastee</artifactId>
  <version>1.0.2</version>
</dependency>

Manually

You can download the latest version on the Releases page on Github.

Example

JPastee pastee = new JPastee("YOUR_API_KEY");

Paste paste = Paste.builder()
        .description("My super paste!")
        .addSection(Section.builder()
                .name("An awesome section.")
                .contents("This is a test made using the JPastee API.")
                .syntax(pastee.getSyntaxFromName("java").get())
                .build())
        .build();
        
SubmitResponse resp = pastee.submit(paste);

if(resp.isSuccess())
    System.out.println("The paste was successfully submitted!");
else
    System.out.println("The paste could not be submitted... " + resp.getErrorString());

Версии библиотеки

Версия
1.0.2
1.0.1