diff --git a/public/examples.html b/public/examples.html index 403b7fb..47b95bb 100644 --- a/public/examples.html +++ b/public/examples.html @@ -165,7 +165,7 @@ footer .container { display: flex; justify-content: space-between; align-items:
curl -X POST https://api.docfast.dev/v1/convert/html \
+ curl -X POST https://docfast.dev/v1/convert/html \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"html": "<html>...your invoice HTML...</html>"}' \
@@ -180,7 +180,7 @@ footer .container { display: flex; justify-content: space-between; align-items:
curl
- curl -X POST https://api.docfast.dev/v1/convert/markdown \
+ curl -X POST https://docfast.dev/v1/convert/markdown \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
@@ -219,7 +219,7 @@ footer .container { display: flex; justify-content: space-between; align-items:
curl
- curl -X POST https://api.docfast.dev/v1/convert/html \
+ curl -X POST https://docfast.dev/v1/convert/html \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d @report.json \
@@ -282,7 +282,7 @@ footer .container { display: flex; justify-content: space-between; align-items:
<p>Generated at ${new Date().toISOString()}</p>
`;
-const res = await fetch("https://api.docfast.dev/v1/convert/html", {
+const res = await fetch("https://docfast.dev/v1/convert/html", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.DOCFAST_API_KEY}`,
@@ -323,7 +323,7 @@ html = """
"""
response = requests.post(
- "https://api.docfast.dev/v1/convert/html",
+ "https://docfast.dev/v1/convert/html",
headers={
"Authorization": f"Bearer {os.environ['DOCFAST_API_KEY']}",
"Content-Type": "application/json",
@@ -343,7 +343,7 @@ response.raise_for_status()
Go Integration
- Install the official SDK: go get github.com/docfast/docfast-go
+ SDK coming soon. In the meantime, use the HTTP example below — it works with any HTTP client.
Go — Using the SDK
package main
@@ -371,7 +371,7 @@ response.raise_for_status()
PHP Integration
- Install the official SDK: composer require docfast/docfast-php
+ SDK coming soon. In the meantime, use the HTTP example below — it works with any HTTP client.
PHP — Using the SDK
use DocFast\Client;
diff --git a/public/src/examples.html b/public/src/examples.html
index 34920ee..45848df 100644
--- a/public/src/examples.html
+++ b/public/src/examples.html
@@ -114,7 +114,7 @@
curl
- curl -X POST https://api.docfast.dev/v1/convert/html \
+ curl -X POST https://docfast.dev/v1/convert/html \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"html": "<html>...your invoice HTML...</html>"}' \
@@ -129,7 +129,7 @@
curl
- curl -X POST https://api.docfast.dev/v1/convert/markdown \
+ curl -X POST https://docfast.dev/v1/convert/markdown \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
@@ -168,7 +168,7 @@
curl
- curl -X POST https://api.docfast.dev/v1/convert/html \
+ curl -X POST https://docfast.dev/v1/convert/html \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d @report.json \
@@ -231,7 +231,7 @@
<p>Generated at ${new Date().toISOString()}</p>
`;
-const res = await fetch("https://api.docfast.dev/v1/convert/html", {
+const res = await fetch("https://docfast.dev/v1/convert/html", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.DOCFAST_API_KEY}`,
@@ -272,7 +272,7 @@ html = """
"""
response = requests.post(
- "https://api.docfast.dev/v1/convert/html",
+ "https://docfast.dev/v1/convert/html",
headers={
"Authorization": f"Bearer {os.environ['DOCFAST_API_KEY']}",
"Content-Type": "application/json",
@@ -292,7 +292,7 @@ response.raise_for_status()
Go Integration
- Install the official SDK: go get github.com/docfast/docfast-go
+ SDK coming soon. In the meantime, use the HTTP example below — it works with any HTTP client.
Go — Using the SDK
package main
@@ -320,7 +320,7 @@ response.raise_for_status()
PHP Integration
- Install the official SDK: composer require docfast/docfast-php
+ SDK coming soon. In the meantime, use the HTTP example below — it works with any HTTP client.
PHP — Using the SDK
use DocFast\Client;