GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - traitify/traitify-java: Traitify API client written in Java.

BranchesTags
Open more actions menu

Latest commit

 

History

52 Commits
52 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
VERSION
VERSION
 
 
pom.xml
pom.xml
 
 

Repository files navigation

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:

  • The Traitify JAR from https://oss.sonatype.org/content/repositories/releases/com/traitify/traitify-java/0.0.14/traitify-java-0.0.14.jar
  • Jersey Client from http://maven.java.net/service/local/artifact/maven/redirect?r=releases&g=com.sun.jersey&a=jersey-client&v=1.17&e=jar.
  • Jersey Core from http://maven.java.net/service/local/artifact/maven/redirect?r=releases&g=com.sun.jersey&a=jersey-core&v=1.17&e=jar.

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

Readme
MIT license
Activity
Custom properties

Stars

3 stars

Watchers

11 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.