Skip to content

Commit c48d815

Browse files
author
Adam Soos
committed
ws-3314: branding, url and key header updates
1 parent 91e2de5 commit c48d815

10 files changed

Lines changed: 17 additions & 17 deletions

source/rosette/api/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Address represents a fielded address in Rosette API.
4+
* Address represents a fielded address in Analytics API.
55
*
66
* @copyright 2020 Basis Technology Corporation.
77
*

source/rosette/api/Api.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Api.
55
*
6-
* Primary class for interfacing with the Rosette API
6+
* Primary class for interfacing with the Analytics API
77
*
88
* @copyright 2015-2023 Basis Technology Corporation.
99
*
@@ -42,21 +42,21 @@ class Api
4242
private static $binding_version = '1.30.0';
4343

4444
/**
45-
* User key (required for Rosette API).
45+
* User key (required for Analytics API).
4646
*
4747
* @var null|string
4848
*/
4949
private $user_key;
5050

5151
/**
52-
* URL of the Rosette API (or test server).
52+
* URL of the Analytics API (or test server).
5353
*
5454
* @var string
5555
*/
5656
private $service_url;
5757

5858
/**
59-
* HTTP headers for Rosette API.
59+
* HTTP headers for Analytics API.
6060
*
6161
* @var array
6262
*/
@@ -136,11 +136,11 @@ class Api
136136
* @param string $user_key An authentication string to be sent as user_key with
137137
* all requests.
138138
*/
139-
public function __construct($user_key, $service_url = 'https://api.rosette.com/rest/v1/')
139+
public function __construct($user_key, $service_url = 'https://analytics.babelstreet.com/rest/v1/')
140140
{
141141
$this->user_key = $user_key;
142142

143-
$this->headers = array('X-RosetteAPI-Key' => $user_key,
143+
$this->headers = array('X-BabelStreetAPI-Key' => $user_key,
144144
'Content-Type' => 'application/json',
145145
'Accept-Encoding' => 'gzip',
146146
'User-Agent' => $this->getUserAgent(),
@@ -275,7 +275,7 @@ public function setServiceUrl($url)
275275
}
276276

277277
/**
278-
* Setter for an additional query parameter to the Rosette API URL.
278+
* Setter for an additional query parameter to the Analytics API URL.
279279
*
280280
* @param string $param_name (e.g. output)
281281
* @param string $param_value (e.g. rosette)

source/rosette/api/DocumentParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* class DocumentParameters.
55
*
6-
* Parameter class for the standard Rosette API endpoints. Does not include Name Translation
6+
* Parameter class for the standard Analytics API endpoints. Does not include Name Translation
77
*
88
* @copyright 2014-2015 Basis Technology Corporation.
99
*

source/rosette/api/FieldedAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Address represents a fielded address in Rosette API.
4+
* Address represents a fielded address in Analytics API.
55
*
66
* @copyright 2020 Basis Technology Corporation.
77
*

source/rosette/api/IAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Address represents an address in Rosette API.
4+
* Address represents an address in Analytics API.
55
*
66
* @copyright 2020 Basis Technology Corporation.
77
*

source/rosette/api/Include.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Api.
44
*
5-
* Primary class for interfacing with the Rosette API
5+
* Primary class for interfacing with the Analytics API
66
*
77
* @copyright 2015-2016 Basis Technology Corporation.
88
*

source/rosette/api/Name.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Name represents an entity name in Rosette API.
4+
* Name represents an entity name in Analytics API.
55
*
66
* @copyright 2014-2015 Basis Technology Corporation.
77
*

source/rosette/api/RosetteException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class RosetteException extends CustomException
2525
{
2626
/**
27-
* The general error returned from Rosette API, indicating unrecognized format.
27+
* The general error returned from Analytics API, indicating unrecognized format.
2828
*
2929
* @var int
3030
*/
@@ -36,7 +36,7 @@ class RosetteException extends CustomException
3636
*/
3737
public static $INVALID_DATATYPE = -3; // api error
3838
/**
39-
* Internal error that throws if the Rosette API server version does not match the Api version.
39+
* Internal error that throws if the Analytics API server version does not match the Api version.
4040
*
4141
* @var int
4242
*/

source/rosette/api/RosetteParamsSetBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* abstract class RosetteParamsSetBase.
55
*
6-
* The base class for the parameter classes that are used for Rosette API operations.
6+
* The base class for the parameter classes that are used for Analytics API operations.
77
*
88
* @copyright 2014-2015 Basis Technology Corporation.
99
*

source/rosette/api/UnfieldedAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Address represents an unfielded address in Rosette API.
4+
* Address represents an unfielded address in Analytics API.
55
*
66
* @copyright 2020 Basis Technology Corporation.
77
*

0 commit comments

Comments
 (0)