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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
api [2019/09/08 09:49] – [Quote Request API] flackapi [2019/09/23 11:31] flack
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> 
 + 
 + 
 + 
 +====== Python code examples / Code repository ====== 
 + 
 +We created a public Git repository that contains Python code examples on how to use the Mcule API. These examples supplement the above API documentation and might give you a better understanding on how you can utilize those API endpoints currently. 
 + 
 +The repository is available here: 
 +[[https://bitbucket.org/mcule/mcule_api_usage_examples/]] 
 + 
 +We'll probably extend this repository with new examples later. 
api.txt · Last modified: 2023/06/03 07:19 by flack