Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:manualy:api [2022/12/22 13:32] – [Getting a personal access token] michalkren | en:manualy:api [2022/12/22 13:43] – michalkren | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== API ====== | ====== API ====== | ||
- | It is possible to access | + | It is possible to query selected applications via an [[https:// |
===== Getting your personal access token ===== | ===== Getting your personal access token ===== | ||
Line 17: | Line 17: | ||
A session cookie will be returned that should be used in every other request. It may be useful to save the session cookie and use it repeatedly within the next few hours. | A session cookie will be returned that should be used in every other request. It may be useful to save the session cookie and use it repeatedly within the next few hours. | ||
- | Every application has an API tailored to its needs. API use manuals: | + | <WRAP tip important 60%> |
+ | Every application has an API tailored to its needs. | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | </ | ||
+ | |||
+ | <WRAP round important 60%> | ||
+ | Every application also imposes its own **limits**. After exceeding them, there is a risk of blocking access to the API. | ||
+ | * **KonText**: | ||
+ | * **Treq**: max. 30 requests per minute and max. 5000 requests per day | ||
+ | </ | ||
===== Usage examples ===== | ===== Usage examples ===== | ||
- | ==== curl ==== | + | ==== 1) curl and Treq API ==== |
- | + | ||
- | Querying Treq | + | |
<code bash> | <code bash> | ||
Line 36: | Line 42: | ||
</ | </ | ||
- | ==== Python | + | ==== 2) Python |
- | + | ||
- | Querying KonText | + | |
<code python> | <code python> |