Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .classpath

This file was deleted.

18 changes: 5 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
# Build & Release Folders.
bin/
doc/
# Package Files
.war
.ear
.swp

# Compiled Java files.
.class

# Experimental Bits
# The output from an XML Doclet.
jel/
target/
.idea/
*.iml

# Properties File for Tests
test.properties
src/test/resources/test.properties

17 changes: 0 additions & 17 deletions .project

This file was deleted.

20 changes: 9 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
TeleSign
========

WARNING (DML): After looking at the quality of this code, you should stay far, far away from this codebase and/or SDK. This is not idiomatic Java, and it violates a whole variety of quality practices on virtually every page (muting exceptions, printing stacktraces to STDOUT, returnning null in arbitrary places, etc). It's probably better to see how the Ruby/Python stuff is approached, and just code up a Java version from that instead (assuming those are better).

NOTE: This is a forked version from Telesign to support building in Maven and creating an OSGi bundle. The tests are also run using failsafe as integration tests.

:Info:
For more information, visit the `TeleSign web site <http://www.TeleSign.com>`_.
For the latest source code, visit the `TeleSign github repository <http://github.com/TeleSign/java_telesign/tree>`_.
Expand Down Expand Up @@ -99,29 +103,23 @@ Here's a basic code example.

Builds
-------------
Build the jar using **ant jar**. Generated jar
can be found in the *build/jar/* directory.
This is a standard Maven build - you can create a jar with the 'package' goal.

Documentation
-------------

Documentation can be generated by running **ant
doc**. Generated documentation can be found in the
*doc/build/* directory.
Documentation can be generated by running **mvn
javadoc:javadoc**. Generated documentation can be found in the
*target/apidocs/* directory.

Detailed documentation for TeleSign™ REST APIs is available in the
`Client Portal <https://portal.telesign.com>`_

Testing
-------

You will need junit_ installed to generate run
the tests. You can execute the test by running **ant
junit**.
You can execute the test by running **mvn integration-test**.

The easiest way to run the tests is to install `junit
<http://junit.org/>`_ Tests are located in the *test/* directory.

Support and Feedback
--------------------

Expand Down
7 changes: 0 additions & 7 deletions ant.properties

This file was deleted.

77 changes: 0 additions & 77 deletions build.xml

This file was deleted.

Binary file removed libs/commons-codec-1.7.jar
Binary file not shown.
Binary file removed libs/gson-2.2.1.jar
Binary file not shown.
Binary file removed libs/hamcrest-core-1.3.jar
Binary file not shown.
Binary file removed libs/junit-4.11.jar
Binary file not shown.
84 changes: 84 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.telesign</groupId>
<artifactId>java-telesign-client</artifactId>
<packaging>bundle</packaging>
<name>Telesign Java REST Client SDK</name>
<version>1.0</version>

<description>
This is a bundle that provides the Telesign Java SDK client, usable in OSGi and standalone.
</description>

<dependencies>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.1</version>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package><![CDATA[
*
]]>
</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
21 changes: 0 additions & 21 deletions src/com/telesign/phoneid/package.html

This file was deleted.

8 changes: 0 additions & 8 deletions src/com/telesign/phoneid/response/package.html

This file was deleted.

8 changes: 0 additions & 8 deletions src/com/telesign/util/package.html

This file was deleted.

13 changes: 0 additions & 13 deletions src/com/telesign/verify/package.html

This file was deleted.

8 changes: 0 additions & 8 deletions src/com/telesign/verify/response/package.html

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Support email address "support@telesign.com"
* Author: jweatherford
*/
public class PhoneIdTest {
public class PhoneIdIT {
public static String CUSTOMER_ID;
public static String SECRET_KEY;
public static String PHONE_NUMBER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Support email address "support@telesign.com"
* Author: jweatherford
*/
public class TeleSignRequestTest {
public class TeleSignRequestIT {
public static String CUSTOMER_ID;
public static String SECRET_KEY;
public static String PHONE_NUMBER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Support email address "support@telesign.com"
* Author: jweatherford
*/
public class VerifyTest {
public class VerifyIT {

public static String CUSTOMER_ID;
public static String SECRET_KEY;
Expand Down