diff --git a/docs.json b/docs.json index 45be49dc..ec9f680b 100644 --- a/docs.json +++ b/docs.json @@ -473,6 +473,13 @@ "src": "/user-study-popup.js", "defer": true } + }, + { + "tag": "script", + "attrs": { + "src": "https://run.pstmn.io/button.js", + "defer": true + } } ] } diff --git a/docs/getting-started/intro.mdx b/docs/getting-started/intro.mdx index 4e048fcc..22935cca 100644 --- a/docs/getting-started/intro.mdx +++ b/docs/getting-started/intro.mdx @@ -7,6 +7,12 @@ mode: "wide"  +
+123 + ## Get an API key and get started New user? Follow these quick steps to get started with the DeepL API. diff --git a/docs/getting-started/test-your-api-requests-with-postman.mdx b/docs/getting-started/test-your-api-requests-with-postman.mdx index e818fa7f..2ec165ba 100644 --- a/docs/getting-started/test-your-api-requests-with-postman.mdx +++ b/docs/getting-started/test-your-api-requests-with-postman.mdx @@ -15,7 +15,12 @@ To get started, [sign up for a developer account at deepl.com](https://www.deepl Click the button below to fork the DeepL API collection into your own Postman workspace: -[](https://app.getpostman.com/run-collection/27518486-e9e2969d-d589-4d3d-9df6-cc514cf3ee5e?action=collection%2Ffork\&source=rip_markdown\&collection-url=entityId%3D27518486-e9e2969d-d589-4d3d-9df6-cc514cf3ee5e%26entityType%3Dcollection%26workspaceId%3D48a52b53-0654-484b-861d-ae228857c2f6) + + In your forked collection, select the relevant `baseUrl` variable depending on your subscription (`https://api.deepl.com/v2` for **Pro**, `https://api-free.deepl.com/v2` for **Free**). diff --git a/postmanbutton.js b/postmanbutton.js new file mode 100644 index 00000000..d45cd199 --- /dev/null +++ b/postmanbutton.js @@ -0,0 +1,15 @@ +(function (p, o, s, t, m, a, n) { + if (!p[s]) { + p[s] = function () { + (p[t] || (p[t] = [])).push(arguments); + }; + } + + if (!o.getElementById(s + t)) { + n = o.createElement("script"); + n.id = s + t; + n.async = 1; + n.src = m; + o.getElementsByTagName("head")[0].appendChild(n); + } +})(window, document, "_pm", "PostmanRunObject", "https://run.pstmn.io/button.js"); \ No newline at end of file