Skip to content

Commit

Permalink
URL TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
jplaza committed Jun 17, 2015
1 parent 1cb112a commit 8c9e98b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ del servicio y la ruta de la operación. Las cuales se encuentran descritas en c
sección donde se describe una función del API. Esta operación, por ejemplo, emite
una factura:

`POST http://link.datil.co/invoices/issue`
`POST https://link.datil.co/invoices/issue`

La URI anterior en conjunto con la información en formato JSON como cuerpo del
requerimiento y las cabeceras HTTP necesarias, conforman el requerimiento.
Expand Down Expand Up @@ -93,7 +93,7 @@ de firma electrónica. Esta clave deberá ser provista en una cabecera:
> #### Requerimiento de ejemplo
```shell
curl -v http://link.datil.co/invoices/issue \
curl -v https://link.datil.co/invoices/issue \
-H "Content-Type: application/json" \
-H "X-Key: <API-key>" \
-H "X-Password: <clave-certificado-firma>" \
Expand Down Expand Up @@ -231,7 +231,7 @@ namespace DatilClient {
// go to menu: tools > Library Package Manager > Package Manager Console
// paste and press enter: Install-Package RestSharp
var client = new RestClient("http://link.datil.co/");
var client = new RestClient("https://link.datil.co/");
var request = new RestRequest("invoices/issue", Method.POST);
request.AddHeader("X-Key", "clave-del-api");
request.AddHeader("X-Password", "clave-certificado-firma");
Expand Down Expand Up @@ -398,7 +398,7 @@ Consulta una factura para conocer el estado de las fases del proceso de emisión
> #### Requerimiento de ejemplo
```shell
curl -v http://link.datil.co/invoices/abcf12343faad06785 \
curl -v https://link.datil.co/invoices/abcf12343faad06785 \
-H "Content-Type: application/json" \
-H "X-Key: <API-key>" \
-H "X-Password: <clave-certificado-firma>" \
Expand All @@ -408,7 +408,7 @@ curl -v http://link.datil.co/invoices/abcf12343faad06785 \
import requests
cabeceras = {'x-key': 'clave-del-api'}
respuesta = requests.get(
'http://link.datil.co/invoices/abcf12343faad06785',
'https://link.datil.co/invoices/abcf12343faad06785',
headers = cabeceras)
```

Expand All @@ -423,7 +423,7 @@ namespace DatilClient {
class InvoicingServiceClient {
static void Main(string[] args) {

var client = new RestClient("http://link.datil.co/");
var client = new RestClient("https://link.datil.co/");
var idFactura = "id-factura";
var request = new RestRequest("invoices/" + idFactura, Method.POST);
request.AddHeader("X-Key", "clave-del-api");
Expand Down

0 comments on commit 8c9e98b

Please sign in to comment.