Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian-Sknz committed Oct 23, 2020
2 parents 9ed3e65 + 448621a commit f0d9336
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/Paladins-Wrapper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Build Paladins-API

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

- uses: actions/upload-artifact@v2
name: "Upload PaladinsWrapper (WithDependencies)"
with:
name: Paladins-API (WithDependencies)
path: build/libs/Paladins-API.jar

- uses: actions/upload-artifact@v2
name: "Upload PaladinsWrapper"
with:
name: Paladins-API
path: build/libs/Paladins-Wrapper.jar
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ I recommend that you read the official Documentation to know the limits of the A

[Json API Responses](https://github.com/luissilva1044894/hirez-api-docs/tree/master/api)

### Create a Instance
### :asterisk: Create a Instance
<p align="center">
:page_facing_up:
</p>

```java
/*
Expand All @@ -65,7 +68,10 @@ Paladins paladins = Paladins.getInstance()
```

### :asterisk: Create a Session
<p align="center">
:page_facing_up:
</p>

```java
Session session = paladins.createSession().get();

Expand All @@ -80,7 +86,10 @@ session.setOnValidating(() -> {
```

#### :link: Resume Session
<p align="center">
:page_facing_up:
</p>

```java
/*
This method will make a request to see if the session is valid
Expand All @@ -91,7 +100,10 @@ Session session = paladins.resumeSession("SESSIONID").get();
```

#### :link: Test Session
<p align="center">
:page_facing_up:
</p>

```java
/**
* This method will make a request to see if the session is valid
Expand All @@ -102,7 +114,10 @@ boolean isValid = paladins.testSession("SESSIONID").get();
```

### :asterisk: Using a Session
<p align="center">
:page_facing_up:
</p>

```java
// Getting an active session
Session session = paladins.getSessions().get(0);
Expand Down

0 comments on commit f0d9336

Please sign in to comment.