Skip to content

Commit 13a8675

Browse files
author
JW Wesson
committed
final URL and name changes
1 parent 59d7c62 commit 13a8675

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+108
-110
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ For full code examples, see [here][examples].
4444
## Usage
4545

4646
### Creating a `TxClient`
47-
This is the object that you will use to perform API calls. You create it with your account credentials and the `TxClient` makes the raw API calls for you. These credentials can be found in the [Textkernel Portal][portal]. Be sure to select the correct `DataCenter` for your account.
47+
This is the object that you will use to perform API calls. You create it with your account credentials and the `TxClient` makes the raw API calls for you. These credentials can be found in the [Tx Console][portal]. Be sure to select the correct `DataCenter` for your account.
4848
```java
4949
TxClient client = new TxClient("12345678", "abcdefghijklmnopqrstuvwxyz", DataCenter.US);
5050
```
@@ -77,5 +77,5 @@ For every relevant method in the `TxClient`, you can create a Matching UI sessio
7777
[gson_url]: https://github.com/google/gson
7878
[okhttp_url]: https://github.com/square/okhttp
7979
[examples]: https://github.com/textkernel/tx-java/tree/master/examples
80-
[portal]: https://portal.sovren.com
81-
[api-docs]: https://developer.textkernel.com/Sovren/v10/overview/
80+
[portal]: https://cloud.textkernel.com/tx/console
81+
[api-docs]: https://developer.textkernel.com/tx-platform/v10/overview/

examples/parsing/Basic Parsing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ParsingExample {
2727
Document doc = new Document("resume.docx");
2828

2929
//when you create a ParseRequest, you can specify many configuration settings
30-
//in the ParseOptions. See https://developer.textkernel.com/Sovren/v10/resume-parser/api/
30+
//in the ParseOptions. See https://developer.textkernel.com/tx-platform/v10/resume-parser/api/
3131
ParseRequest request = new ParseRequest(doc, new ParseOptions());
3232

3333
try {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<packaging>jar</packaging>
1010
<name>Textkernel Tx Java SDK</name>
1111
<description>The official Java SDK for the Textkernel Tx v10 API.</description>
12-
<url>https://developer.textkernel.com/Sovren/v10/overview/</url>
12+
<url>https://developer.textkernel.com/tx-platform/v10/overview/</url>
1313

1414
<licenses>
1515
<license>

src/main/java/com/textkernel/tx/DataCenter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
/** Use either {@link DataCenter#US} or {@link DataCenter#EU}*/
99
public class DataCenter {
1010

11-
/** Represents the US datacenter. You can find out which datacenter your account is in at https://portal.sovren.com*/
12-
public static DataCenter US = new DataCenter("https://rest.resumeparsing.com", "v10", true);
11+
/** Represents the US datacenter. You can find out which datacenter your account is in at https://cloud.textkernel.com/tx/console*/
12+
public static DataCenter US = new DataCenter("https://api.us.textkernel.com/tx", "v10", true);
1313

14-
/** Represents the EU datacenter. You can find out which datacenter your account is in at https://portal.sovren.com*/
15-
public static DataCenter EU = new DataCenter("https://eu-rest.resumeparsing.com", "v10", true);
14+
/** Represents the EU datacenter. You can find out which datacenter your account is in at https://cloud.textkernel.com/tx/console*/
15+
public static DataCenter EU = new DataCenter("https://api.eu.textkernel.com/tx", "v10", true);
1616

17-
/** Represents the AU datacenter. You can find out which datacenter your account is in at https://portal.sovren.com*/
18-
public static DataCenter AU = new DataCenter("https://au-rest.resumeparsing.com", "v10", true);
17+
/** Represents the AU datacenter. You can find out which datacenter your account is in at https://cloud.textkernel.com/tx/console*/
18+
public static DataCenter AU = new DataCenter("https://api.au.textkernel.com/tx", "v10", true);
1919

2020
String Root;
2121
String Version;

src/main/java/com/textkernel/tx/TxClient.java

Lines changed: 43 additions & 43 deletions
Large diffs are not rendered by default.

src/main/java/com/textkernel/tx/exceptions/TxException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public class TxException extends Exception {
1919
/** The raw response from the API */
2020
public Response RestResponse;
2121

22-
/** The HTTP Status Code of the response. See https://developer.textkernel.com/Sovren/v10/overview/#http-status-codes*/
22+
/** The HTTP Status Code of the response. See https://developer.textkernel.com/tx-platform/v10/overview/#http-status-codes*/
2323
public int HttpStatusCode;
2424

25-
/** The Info.Code of the response. This will indicate what type of error occurred. See https://developer.textkernel.com/Sovren/v10/overview/#http-status-codes*/
25+
/** The Info.Code of the response. This will indicate what type of error occurred. See https://developer.textkernel.com/tx-platform/v10/overview/#http-status-codes*/
2626
public String TxErrorCode;
2727

2828
/** The Id of the transaction, use this when reporting errors to Support*/

src/main/java/com/textkernel/tx/models/Document.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public String getAsBase64() {
3131
* Create a {@link Document} from a file {@code byte[]}
3232
* @param fileBytes - The file byte array
3333
* @param lastModified - The last-revised date for this file.
34-
* <p>Per our AUP (https://sovren.com/policies-and-agreements/acceptable-use-policy/), you MUST pass a good-faith last-revised date for every parse transaction.
3534
* <p>This is extremely important so that the Parser knows how to interpret dates in the document that are
3635
* expressed as "current" or "as of" (or similar) to correctly calculate date spans
3736
* @throws IllegalArgumentException If the fileBytes is null or empty

src/main/java/com/textkernel/tx/models/api/ApiResponseInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* Information/metadata for an individual REST API call.
10-
* See https://developer.textkernel.com/Sovren/v10/overview/#http-status-codes
10+
* See https://developer.textkernel.com/tx-platform/v10/overview/#http-status-codes
1111
*/
1212
public class ApiResponseInfo extends ApiResponseInfoLite {
1313

src/main/java/com/textkernel/tx/models/api/ApiResponseInfoLite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
/**
99
* Information/metadata for an individual REST API call.
10-
* See https://developer.textkernel.com/Sovren/v10/overview/#http-status-codes
10+
* See https://developer.textkernel.com/tx-platform/v10/overview/#http-status-codes
1111
*/
1212
public class ApiResponseInfoLite {
1313

14-
/** See https://developer.textkernel.com/Sovren/v10/overview/#http-status-codes*/
14+
/** See https://developer.textkernel.com/tx-platform/v10/overview/#http-status-codes*/
1515
public String Code;
1616

1717
/** A short human-readable description explaining the {@link #Code} value*/

src/main/java/com/textkernel/tx/models/api/dataenrichment/AutocompleteRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public class AutocompleteRequest {
1313
public String Prefix;
1414
/** The maximum number of returned professions. The default is 10 and the maximum is 100. */
1515
public int Limit = 10;
16-
/** The language(s) used to search for matching professions (the language of the provided Prefix). A maximum of 5 languages can be provided. Must be one of the supported <a href="https://developer.textkernel.com/Sovren/v10/data-enrichment/overview/#professions-languages">ISO codes</a>. */
16+
/** The language(s) used to search for matching professions (the language of the provided Prefix). A maximum of 5 languages can be provided. Must be one of the supported <a href="https://developer.textkernel.com/tx-platform/v10/data-enrichment/overview/#professions-languages">ISO codes</a>. */
1717
public List<String> Languages;
18-
/** The language to ouput the found professions in (default is 'en'). Must be one of the supported <a href="https://developer.textkernel.com/Sovren/v10/data-enrichment/overview/#professions-languages">ISO codes</a>. */
18+
/** The language to ouput the found professions in (default is 'en'). Must be one of the supported <a href="https://developer.textkernel.com/tx-platform/v10/data-enrichment/overview/#professions-languages">ISO codes</a>. */
1919
public String OutputLanguage = "en";
2020
}

0 commit comments

Comments
 (0)