Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.32 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.32 KB

AffiliTest-Java

AffiliTest's API implemented in Java

Installation

The API is provided via a JAR file.

Download here

  • Clone this repo with git clone https://github.com/tsirolnik/AffiliTest-Java.git
  • Open the project, under the AffiliTest folder with Netbeans IDE
  • Run or use it as your wish

Note: We use Google's Gson library (We used 2.6.2). We provide it but it can be found here.

Examples

Testing

Example Code

App Info

Example Code

Calls Left

Example Code

Retrieving HTTP Status codes

In order to view the redirections' status codes, a query string is needed to be appended to the endpoints.

Open the API.php file and append ?codes to the desired endpoint.

Currently, only /test and /compareToPreview are the ones which support this feature.

...
POST https://affilitest.com/api/v1/test?codes
...
HTTP 200 OK
...
{
  error: null,
  meta: {
    codes : [200, 301, 302]
  },
  data: ["example.com", "redirection.com", "destination.com"]
}