Skip to content

Commit 3272318

Browse files
committed
Se actualiza URL de la API
1 parent bbd6d23 commit 3272318

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/dev/unit-test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Pruebas unitarias
66

77
Antes de empezar, debes configurar las siguientes variables de entorno:
88
.. code-block:: shell
9-
APIGATEWAY_API_URL="https://apigateway.cl"
9+
APIGATEWAY_API_URL="https://legacy.apigateway.cl"
1010
API_GATEWAY_API_TOKEN="token-apigateway"
1111
CONTRIBUYENTE_RUT="66666666-6"
1212
CONTRIBUYENTE_CLAVE="clave-sii"

docs/getting-started/setup.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ En Linux o MacOS:
1212
El token se almacena en una variable de entorno. Para almacenar en una variable de entorno, se debe escribir lo siguiente en consola:
1313

1414
.. code-block:: shell
15-
export APIGATEWAY_API_URL="https://apigateway.cl"
15+
export APIGATEWAY_API_URL="https://legacy.apigateway.cl"
1616
export APIGATEWAY_API_TOKEN="aqui-su-token-de-apigateway"
1717
1818
- ``APIGATEWAY_API_TOKEN`` es una cadena de caracteres extremadamente larga. Almacena ese token en un lugar seguro y no lo compartas con nadie.
@@ -33,13 +33,13 @@ En Windows:
3333
Para almacenar en una variable de entorno en Windows, hay varias alternativas. La primera es utilizando cmd, y para almacenarlas utilizando cmd, ejecuta en el buscador de Windows "cmd", y ejecuta los siguientes comandos:
3434

3535
.. code-block:: shell
36-
setx APIGATEWAY_API_URL "https://apigateway.cl"
36+
setx APIGATEWAY_API_URL "https://legacy.apigateway.cl"
3737
setx APIGATEWAY_API_TOKEN "aqui-su-token-de-apigateway"
3838
3939
También se pueden definir utilizando Windows PowerShell, de una manera similar. Ejecuta en el buscador de Windows "PowerShell", y ejecuta los siguientes comandos:
4040

4141
.. code-block:: shell
42-
$Env:APIGATEWAY_API_URL = "https://apigateway.cl"
42+
$Env:APIGATEWAY_API_URL = "https://legacy.apigateway.cl"
4343
$Env:APIGATEWAY_API_TOKEN = "aqui-su-token-de-apigateway"
4444
4545
Como alternativa para almacenar las variables de manera persistente, debes seguir los siguientes pasos:

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
</logging>
8383
<php>
8484
<ini name="memory_limit" value="-1" />
85-
<env name="APIGATEWAY_API_URL" value="https://apigateway.cl" />
85+
<env name="APIGATEWAY_API_URL" value="https://legacy.apigateway.cl" />
8686
<env name="TEST_CONTRIBUYENTE_RUT" value="76192083-9" />
8787
</php>
8888
</phpunit>

src/ApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ApiClient
3838
*
3939
* @var string
4040
*/
41-
private $api_url = 'https://apigateway.cl';
41+
private $api_url = 'https://legacy.apigateway.cl';
4242

4343
/**
4444
* El prefijo para las rutas de la API.

tests/test.env-dist

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

99
# Autenticación en API Gateway
10-
APIGATEWAY_API_URL="https://apigateway.cl"
10+
APIGATEWAY_API_URL="https://legacy.apigateway.cl"
1111
APIGATEWAY_API_TOKEN=""
1212

1313
# Contribuyente de primera categoría

0 commit comments

Comments
 (0)