Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update the outline

Kiran Kda9810ceb628
diff --git a/apps/docs/sdks/django.mdx b/apps/docs/sdks/django.mdx
index 74a21a81d2..e34a51f469 100644
--- a/apps/docs/sdks/django.mdx
+++ b/apps/docs/sdks/django.mdx
@@ -8,4 +8,32 @@ import Install from "/snippets/sdk-install-nodejs.mdx";
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub Python SDK, run the following command:
+
+```bash pip
+pip install dub
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="Django Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file
diff --git a/apps/docs/sdks/express.mdx b/apps/docs/sdks/express.mdx
index d24312fe24..313f7bec9c 100644
--- a/apps/docs/sdks/express.mdx
+++ b/apps/docs/sdks/express.mdx
@@ -52,7 +52,7 @@ Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.
<CardGroup cols={2}>
<Card
- title="Node.js Example"
+ title="Express Example"
icon="arrow-up-right-from-square"
href="https://github.com/dubinc/examples"
>
diff --git a/apps/docs/sdks/flask.mdx b/apps/docs/sdks/flask.mdx
index 37d64ffc12..27308a8f28 100644
--- a/apps/docs/sdks/flask.mdx
+++ b/apps/docs/sdks/flask.mdx
@@ -8,4 +8,32 @@ import Install from "/snippets/sdk-install-nodejs.mdx";
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub Python SDK, run the following command:
+
+```bash pip
+pip install dub
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="Flask Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file
diff --git a/apps/docs/sdks/go.mdx b/apps/docs/sdks/go.mdx
index ef09cbb261..e9bc04212c 100644
--- a/apps/docs/sdks/go.mdx
+++ b/apps/docs/sdks/go.mdx
@@ -4,8 +4,36 @@ description: "Learn how to create a short link using the Dub Go SDK."
---
import Prerequisites from "/snippets/sdk-prerequisites.mdx";
-import Install from "/snippets/sdk-install-nodejs.mdx";
+
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub Go SDK, run the following command:
+
+```bash bash
+go get github.com/dubinc/dub-go
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="Go Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file
diff --git a/apps/docs/sdks/laravel.mdx b/apps/docs/sdks/laravel.mdx
index 03786c480f..8788b9716e 100644
--- a/apps/docs/sdks/laravel.mdx
+++ b/apps/docs/sdks/laravel.mdx
@@ -8,4 +8,32 @@ import Install from "/snippets/sdk-install-nodejs.mdx";
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub PHP SDK, run the following command:
+
+```bash Composer
+composer require dub/dub-php
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="Laravel Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file
diff --git a/apps/docs/sdks/nextjs.mdx b/apps/docs/sdks/nextjs.mdx
index 6248957171..b6d69a9a7e 100644
--- a/apps/docs/sdks/nextjs.mdx
+++ b/apps/docs/sdks/nextjs.mdx
@@ -52,7 +52,7 @@ Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.
<CardGroup cols={2}>
<Card
- title="Node.js Example"
+ title="Next.js Example"
icon="arrow-up-right-from-square"
href="https://github.com/dubinc/examples"
>
diff --git a/apps/docs/sdks/nuxt.mdx b/apps/docs/sdks/nuxt.mdx
index eb4fb52ea7..49d11d87e3 100644
--- a/apps/docs/sdks/nuxt.mdx
+++ b/apps/docs/sdks/nuxt.mdx
@@ -52,7 +52,7 @@ Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.
<CardGroup cols={2}>
<Card
- title="Node.js Example"
+ title="Nuxt.js Example"
icon="arrow-up-right-from-square"
href="https://github.com/dubinc/examples"
>
diff --git a/apps/docs/sdks/overview.mdx b/apps/docs/sdks/overview.mdx
index 3b884b3102..7aec449c52 100644
--- a/apps/docs/sdks/overview.mdx
+++ b/apps/docs/sdks/overview.mdx
@@ -4,22 +4,29 @@ title: "Overview"
description: "Open-source client libraries for the Dub.co API"
---
+## Official SDKs
+
<CardGroup cols={2}>
<Card title="Node.js" icon="node-js" href="/sdks/typescript/overview">
Node.js library for the Dub API
</Card>
- <Card title="Go" icon="golang" href="/sdks/go/overview" iconType="brands">
+ <Card title="Go" icon="golang" href="/sdks/go" iconType="brands">
Go library for the Dub API
</Card>
- <Card title="Python" icon="python" href="/sdks/python/overview">
+ <Card title="Python" icon="python" href="/sdks/python">
Python library for the Dub API
</Card>
- <Card title="Ruby" icon="gem" href="/sdks/ruby/overview">
+ <Card title="Ruby" icon="gem" href="/sdks/ruby">
Ruby library for the Dub API
</Card>
- <Card title="PHP" icon="php" href="/sdks/php/overview">
+ <Card title="PHP" icon="php" href="/sdks/php">
PHP library for the Dub API
</Card>
+</CardGroup>
+
+## Community SDKs
+
+<CardGroup cols={2}>
<Card title="Flutter (Dart)" icon="github" href="https://d.to/dart">
Dart SDK for Dub.co API
</Card>
diff --git a/apps/docs/sdks/php.mdx b/apps/docs/sdks/php.mdx
index 431609e68e..d7d9d13f47 100644
--- a/apps/docs/sdks/php.mdx
+++ b/apps/docs/sdks/php.mdx
@@ -8,4 +8,32 @@ import Install from "/snippets/sdk-install-nodejs.mdx";
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub PHP SDK, run the following command:
+
+```bash Composer
+composer require dub/dub-php
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="PHP Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file
diff --git a/apps/docs/sdks/python.mdx b/apps/docs/sdks/python.mdx
index 3e78edf085..77f4299324 100644
--- a/apps/docs/sdks/python.mdx
+++ b/apps/docs/sdks/python.mdx
@@ -8,4 +8,32 @@ import Install from "/snippets/sdk-install-nodejs.mdx";
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub Python SDK, run the following command:
+
+```bash pip
+pip install dub
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="Python Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file
diff --git a/apps/docs/sdks/rails.mdx b/apps/docs/sdks/rails.mdx
index eb1f4b77e0..4ec08e22b9 100644
--- a/apps/docs/sdks/rails.mdx
+++ b/apps/docs/sdks/rails.mdx
@@ -8,4 +8,32 @@ import Install from "/snippets/sdk-install-nodejs.mdx";
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub Ruby SDK, run the following command:
+
+```bash RubyGems
+gem install dub
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="Rails Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file
diff --git a/apps/docs/sdks/remix.mdx b/apps/docs/sdks/remix.mdx
index 8497722e9d..c3927e2183 100644
--- a/apps/docs/sdks/remix.mdx
+++ b/apps/docs/sdks/remix.mdx
@@ -52,7 +52,7 @@ Dub allows you to retrieve analytics for a link using the Dub Node.js SDK.
<CardGroup cols={2}>
<Card
- title="Node.js Example"
+ title="Remix Example"
icon="arrow-up-right-from-square"
href="https://github.com/dubinc/examples"
>
diff --git a/apps/docs/sdks/ruby.mdx b/apps/docs/sdks/ruby.mdx
index ab6314d710..34a03ca79b 100644
--- a/apps/docs/sdks/ruby.mdx
+++ b/apps/docs/sdks/ruby.mdx
@@ -8,4 +8,32 @@ import Install from "/snippets/sdk-install-nodejs.mdx";
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub Ruby SDK, run the following command:
+
+```bash RubyGems
+gem install dub
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="Ruby Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file
diff --git a/apps/docs/sdks/sinatra.mdx b/apps/docs/sdks/sinatra.mdx
index 7a69609a05..769cd4c4e9 100644
--- a/apps/docs/sdks/sinatra.mdx
+++ b/apps/docs/sdks/sinatra.mdx
@@ -8,4 +8,32 @@ import Install from "/snippets/sdk-install-nodejs.mdx";
## 1. Prerequisites
-<Prerequisites />
\ No newline at end of file
+<Prerequisites />
+
+## 2. Install
+
+To install the Dub Ruby SDK, run the following command:
+
+```bash RubyGems
+gem install dub
+```
+
+## 3. Create link
+
+## 4. Upsert link
+
+## 5. Update link
+
+## 6. Retrieve analytics for link
+
+## 7. Examples
+
+<CardGroup cols={2}>
+ <Card
+ title="Sinatra Example"
+ icon="arrow-up-right-from-square"
+ href="https://github.com/dubinc/examples"
+ >
+ See the full example on GitHub.
+ </Card>
+</CardGroup>
\ No newline at end of file