Skip to content

Commit 3672111

Browse files
author
Adam Soos
committed
WS-3314: update URL, API key header and README
1 parent 3caebea commit 3672111

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Rosette uses natural language processing, statistical modeling, and machine lear
99

1010

1111
## Rosette API Access
12-
- Rosette Cloud [Sign Up](https://developer.rosette.com/signup)
12+
- Rosette Cloud [Sign Up](https://developer.babelstreet.com/signup)
1313
## Quick Start
1414

1515
#### Maven
@@ -26,7 +26,7 @@ in the Maven Central badge at the top of this page.
2626

2727
#### Test Releases
2828
Versions, of the form `x.y.z`, where `z` is greater than or equal to `100`, are internal testing versions. Do not use
29-
them without consultation with Basis Technology Corp.
29+
them without consultation with Babel Street.(???)
3030

3131
#### Examples
3232
View small example programs for each Rosette endpoint in the
@@ -36,7 +36,7 @@ View small example programs for each Rosette endpoint in the
3636
- [Binding API](https://rosette-api.github.io/java/)
3737
- [Rosette Platform API](https://docs.babelstreet.com/API/en/index-en.html)
3838
- [Binding Release Notes](https://github.com/rosette-api/java/wiki/Release-Notes)
39-
- [Rosette Platform Release Notes](https://babelstreet.my.site.com/support/s/article/Rosette-Cloud-Release-Notes)
39+
- [Rosette Platform Release Notes](https://docs.babelstreet.com/Release/en/rosette-cloud.html)
4040
- [Support](https://babelstreet.my.site.com/support/s/)
4141
- [Binding License: Apache 2.0](LICENSE.txt)
4242

api/src/main/java/com/basistech/rosette/api/HttpRosetteAPI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
*/
8484
public class HttpRosetteAPI extends AbstractRosetteAPI {
8585

86-
public static final String DEFAULT_URL_BASE = "https://api.rosette.com/rest/v1";
86+
public static final String DEFAULT_URL_BASE = "https://analytics.babelstreet.com/rest/v1";
8787
public static final String SERVICE_NAME = "RosetteAPI";
8888
public static final String BINDING_VERSION = getVersion();
8989
public static final String USER_AGENT_STR = SERVICE_NAME + "-Java/" + BINDING_VERSION + "/"
@@ -197,7 +197,7 @@ private void initHeaders(String key, List<Header> additionalHeaders) {
197197
this.additionalHeaders.add(new BasicHeader(HttpHeaders.USER_AGENT, USER_AGENT_STR));
198198
this.additionalHeaders.add(new BasicHeader(HttpHeaders.ACCEPT_ENCODING, "gzip"));
199199
if (key != null) {
200-
this.additionalHeaders.add(new BasicHeader("X-RosetteAPI-Key", key));
200+
this.additionalHeaders.add(new BasicHeader("X-BabelStreetAPI-Key", key));
201201
this.additionalHeaders.add(new BasicHeader("X-RosetteAPI-Binding", "java"));
202202
this.additionalHeaders.add(new BasicHeader("X-RosetteAPI-Binding-Version", BINDING_VERSION));
203203
}

examples/src/main/java/com/basistech/rosette/examples/ExampleBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected String getApiKeyFromSystemProperty() {
5050
protected String getAltUrlFromSystemProperty() {
5151
String altUrlStr = System.getProperty(URL_PROP_NAME);
5252
if (altUrlStr == null || altUrlStr.trim().length() < 1) {
53-
altUrlStr = "https://api.rosette.com/rest/v1";
53+
altUrlStr = "https://analytics.babelstreet.com/rest/v1";
5454
}
5555
return altUrlStr.trim();
5656
}

0 commit comments

Comments
 (0)