Skip to content

tsirolnik/AffiliTest-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

AffiliTest's API implemented in Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages