Skip to content

Commit 38477df

Browse files
authored
Merge pull request #1 from lucasstarsz/master
Change README to Markdown
2 parents 65fca4d + da9ac32 commit 38477df

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

README.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
<h1 align="center">Pastemyst.java</h1>
1+
<div align="center">
2+
3+
# Pastemyst.java
4+
</div>
25

3-
<p><strong>pastemyst.java</strong> is a API Wrapper, written in Java. The library is in early development, and all contributions are welcome.</p>
4-
<p>Check out Pastemyst here https://paste.myst.rs/</p>
6+
## What is pastemyst.java?
7+
**pastemyst.java** is a [pastemyst][pastemyst-link] API Wrapper, written in Java. The library is in early development, and all contributions are welcome.
58

6-
<h2>Get the language by name and extension</h2>
9+
Check out pastemyst here: [paste.myst.rs][pastemyst-link]
710

11+
12+
## Examples
13+
14+
### Get the language by name and extension
815
```java
916
import io.github.yeffycodegit.pastemystjava.lib.Pastemyst;
1017
import io.github.yeffycodegit.pastemystjava.types.Language;
1118

1219
import java.io.IOException;
1320

1421
public class Main {
15-
public static void main(String[] args) throws IOException, InterruptedException {
22+
public static void main(String[] args) throws IOException, InterruptedException {
1623
Pastemyst pastemyst = new Pastemyst();
1724

1825
Language langByName = pastemyst.data.getLangByName("Python");
@@ -21,22 +28,20 @@ public class Main {
2128
}
2229
```
2330

24-
<h2>Get when the paste should expire</h2>
25-
31+
### Get when the paste should expire
2632
```java
2733
import io.github.yeffycodegit.pastemystjava.lib.Pastemyst;
2834

2935
public class Main {
30-
public static void main(String[] args) {
36+
public static void main(String[] args) {
3137
Pastemyst pastemyst = new Pastemyst();
3238

3339
System.out.println(pastemyst.time.whenPasteShouldExpire("1588441258", "1w"));
3440
}
3541
}
3642
```
3743

38-
<h2>Get a user on pastemyst/if a user exists on pastemyst</h2>
39-
44+
### Get a user on pastemyst/if a user exists on pastemyst
4045
```java
4146
import io.github.yeffycodegit.pastemystjava.lib.Pastemyst;
4247
import io.github.yeffycodegit.pastemystjava.types.User;
@@ -51,4 +56,7 @@ public class Main {
5156
boolean exists = pastemyst.user.getIfUserExists("CodeMyst");
5257
}
5358
}
54-
```
59+
```
60+
61+
62+
[pastemyst-link]: https://github.com/codemyst/pastemyst "pastemyst on Github"

0 commit comments

Comments
 (0)