Added API test. To run test you should use maven:
mvn test -DclientKey="your_key" -DclientSicret="your_secret" -DapiUrl="your_url"