|
3 | 3 | /** |
4 | 4 | * Api. |
5 | 5 | * |
6 | | - * Primary class for interfacing with the Rosette API |
| 6 | + * Primary class for interfacing with the Analytics API |
7 | 7 | * |
8 | 8 | * @copyright 2015-2023 Basis Technology Corporation. |
9 | 9 | * |
@@ -42,21 +42,21 @@ class Api |
42 | 42 | private static $binding_version = '1.30.0'; |
43 | 43 |
|
44 | 44 | /** |
45 | | - * User key (required for Rosette API). |
| 45 | + * User key (required for Analytics API). |
46 | 46 | * |
47 | 47 | * @var null|string |
48 | 48 | */ |
49 | 49 | private $user_key; |
50 | 50 |
|
51 | 51 | /** |
52 | | - * URL of the Rosette API (or test server). |
| 52 | + * URL of the Analytics API (or test server). |
53 | 53 | * |
54 | 54 | * @var string |
55 | 55 | */ |
56 | 56 | private $service_url; |
57 | 57 |
|
58 | 58 | /** |
59 | | - * HTTP headers for Rosette API. |
| 59 | + * HTTP headers for Analytics API. |
60 | 60 | * |
61 | 61 | * @var array |
62 | 62 | */ |
@@ -136,11 +136,11 @@ class Api |
136 | 136 | * @param string $user_key An authentication string to be sent as user_key with |
137 | 137 | * all requests. |
138 | 138 | */ |
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/') |
140 | 140 | { |
141 | 141 | $this->user_key = $user_key; |
142 | 142 |
|
143 | | - $this->headers = array('X-RosetteAPI-Key' => $user_key, |
| 143 | + $this->headers = array('X-BabelStreetAPI-Key' => $user_key, |
144 | 144 | 'Content-Type' => 'application/json', |
145 | 145 | 'Accept-Encoding' => 'gzip', |
146 | 146 | 'User-Agent' => $this->getUserAgent(), |
@@ -275,7 +275,7 @@ public function setServiceUrl($url) |
275 | 275 | } |
276 | 276 |
|
277 | 277 | /** |
278 | | - * Setter for an additional query parameter to the Rosette API URL. |
| 278 | + * Setter for an additional query parameter to the Analytics API URL. |
279 | 279 | * |
280 | 280 | * @param string $param_name (e.g. output) |
281 | 281 | * @param string $param_value (e.g. rosette) |
|
0 commit comments