JPastee

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

License

License

GroupId

GroupId

fr.minuskube
ArtifactId

ArtifactId

jpastee
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

JPastee
Java Wrapper for the https://paste.ee/ API
Project URL

Project URL

https://github.com/MinusKube/JPastee
Source Code Management

Source Code Management

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

Download jpastee

How to add to project

<!-- 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"]

Dependencies

compile (1)

Group / Artifact Type Version
com.mashape.unirest : unirest-java jar 1.4.9

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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());

Versions

Version
1.0.2
1.0.1