Giter Club home page Giter Club logo

tacyt-sdk-java's Introduction

Tacyt JAVA SDK

#### PREREQUISITES ####

  • Java 1.5 or above.

  • Read API documentation (https://tacyt.elevenpaths.com/help/api).

  • To get the "API ID" and "Secret" (fundamental values for integrating Tacyt in any application) it’s necessary to have an account in Tacyt's website.

USING THE SDK IN JAVA

  • Include all SDK files and dependencies in your project.

  • Create a Tacyt object with the "API ID" and "Secret" previously obtained.

     Tacyt tacyt = new Tacyt(API_ID, SECRET);
  • Call to Tacyt Server to do searches, define tags, create filters or get the RSS info ...
     TacytResponse tacytResponse = tacyt.searchApps("packageName:com.whatsapp", 0, 10);

     TacytResponse tacytResponse = tacyt.assignTag("test", Arrays.asList(new String[]{"com.linterna11GooglePlay", "com.sms.kat1aptoideapps"}));

     List<Filter.Rule> rules = new ArrayList<Filter.Rule>();
     rules.add(new Filter.Rule(1, "contains(description,\"whatsapp\")"));
     Filter filter = new Filter("Whatsapp clones", "Apps which has the word Whatsapp in its description", 1, Filter.Visibility.PUBLIC, rules);
     TacytResponse tacytResponse = tacyt.createFilter(filter);

     TacytResponse tacytResponse = tacyt.getRSSinfo(filterId);
  • After every API call, get Tacyt response data and errors and handle them.
     JsonObject jObject = tacytResponse.getData();
     com.elevenpaths.tacyt.Error error = tacytResponse.getError();

TROUBLESHOOTING

A javax.net.ssl.SSLHandshakeException with a nested sun.security.validator.ValidatorException is thrown when invoking an API call.

This exception is normally thrown when the JDK doesn't trust the CA that signs the digital certificate used in Tacyt's website (https://tacyt.elevenpaths.com). You may need to install the CA (http://www.startssl.com/certs/ca.pem) as a trusted certificate in your JDK's truststore (normally in jre/lib/security/cacerts) using the keytool utility.

tacyt-sdk-java's People

Contributors

javiersanzfre avatar velatorre1 avatar jaesga avatar naviprojects avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.