User Tools

Site Tools


api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
api [2019/09/08 11:49]
flack [Quote Request API]
api [2019/09/08 16:54] (current)
flack [Quote API]
Line 1318: Line 1318:
   * **updated**:​ The update datetime the quote.   * **updated**:​ The update datetime the quote.
   * **valid_until**:​ The datetime until the quote is valid.   * **valid_until**:​ The datetime until the quote is valid.
-   +   
 +==== Download quote as PDF  ==== 
 + 
 +You can download a quote as a PDF file. Please note that the PDF file generation can take some time, the more item it contains the more time it will take to generate the file. 
 + 
 +The HTTP response contains a //​Content-Disposition attachment; filename="<​filename>"//​ header indicating that it should be downloaded. 
 + 
 +<​code>​ 
 +http https://​mcule.com/​api/​v1/​iquotes/​15677/​download-pdf/​ "​Authorization:​ Token <​your_token>"​ --download 
 +</​code>​ 
 + 
 +==== Download quote as Excel (.xlsx) file  ==== 
 + 
 +You can download a quote as an Excel file. Please note that the file generation can take some time, the more item it contains the more time it will take to generate the file. 
 + 
 +The HTTP response contains a //​Content-Disposition attachment; filename="<​filename>"//​ header indicating that it should be downloaded. 
 + 
 +<​code>​ 
 +http https://​mcule.com/​api/​v1/​iquotes/​15677/​download-excel/​ "​Authorization:​ Token <​your_token>"​ --download 
 +</​code>​
api.txt · Last modified: 2019/09/08 16:54 by flack