Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

traitify-java

Traitify API client written in Java.

Traitify Java Client

You can sign up for a Traitify account at https://developers.traitify.com.

Requirements

Java 1.5 and later.

Installation

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.traitify</groupId>
  <artifactId>traitify-java</artifactId>
  <version>0.0.14</version>
</dependency>

Others

You'll need to manually install the following JARs:

Usage

TraitifyExample.java

import com.traitify.Traitify;
import com.traitify.model.Assessment;
import com.traitify.model.Deck;

public class TraitifyExample {
    public static void main(String[] args) {
        Traitify.apiKey = "YOUR-SECRET-KEY";
        List<Deck> decks = Deck.list();
        Deck deck;
        for(Deck _deck:decks){
            if(_deck.getName().equals("General Personality"){
                deck = _deck;
            }
        }
        Assessment assessment = Assessment.create(deck.getId());
    }
}

See TraitifyTest.java for more examples.

Testing

You must have Maven installed. To run the tests, simply run mvn test. You can run particular tests by passing -D test=Class#method -- for example, -D test=TraitifyTest#testAssessmentCreate. You must also specify your apiKey when testing, you can do that by passing -DapiKey=yourapikey.

About

Traitify API client written in Java.

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.