From 168ccb29a946464a0c6e4dd4f31ba39ba6b2f5fd Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 25 Sep 2024 08:56:13 -0700 Subject: [PATCH] feat(integrations): add support for replicate (#2766) ## Describe your changes Added Replicate support ## Issue ticket number and link https://github.com/NangoHQ/nango/issues/2765 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [ ] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: --- docs-v2/integrations/all/replicate.mdx | 31 +++++++++++++++++++ docs-v2/integrations/dev-tools.mdx | 1 + docs-v2/mint.json | 1 + packages/shared/providers.yaml | 8 +++++ .../images/template-logos/replicate.svg | 7 +++++ 5 files changed, 48 insertions(+) create mode 100644 docs-v2/integrations/all/replicate.mdx create mode 100644 packages/webapp/public/images/template-logos/replicate.svg diff --git a/docs-v2/integrations/all/replicate.mdx b/docs-v2/integrations/all/replicate.mdx new file mode 100644 index 00000000000..6c8fc939457 --- /dev/null +++ b/docs-v2/integrations/all/replicate.mdx @@ -0,0 +1,31 @@ +--- +title: Replicate +sidebarTitle: Replicate +--- + +API configuration: [`replicate`](https://nango.dev/providers.yaml) + +## Features + +| Features | Status | +| - | - | +| [Auth (API Key)](/integrate/guides/authorize-an-api) | ✅ | +| [Sync data](/integrate/guides/sync-data-from-an-api) | ✅ | +| [Perform workflows](/integrate/guides/perform-workflows-with-an-api) | ✅ | +| [Proxy requests](/integrate/guides/proxy-requests-to-an-api) | ✅ | +| [Receive webhooks](/integrate/guides/receive-webhooks-from-an-api) | 🚫 (time to contribute: <48h) | + +We can implement missing features in <48h, just ask for it in the [community](https://nango.dev/slack). + +## Getting started + +- [Replicate API docs](https://replicate.com/docs/reference/) +- [Authentication and API key](https://replicate.com/docs/reference/http#authentication) + +Need help getting started? Get help in the [community](https://nango.dev/slack). + +## API gotchas + +- Replicate uses API_KEY auth mode with Authorization: Bearer `api_key` in the request header to access different endpoints. + +Add Getting Started links and Gotchas by [editing this page](https://github.com/nangohq/nango/tree/master/docs-v2/integrations/all/replicate.mdx) \ No newline at end of file diff --git a/docs-v2/integrations/dev-tools.mdx b/docs-v2/integrations/dev-tools.mdx index a1d29b3f10c..00d2a0cb0f5 100644 --- a/docs-v2/integrations/dev-tools.mdx +++ b/docs-v2/integrations/dev-tools.mdx @@ -28,6 +28,7 @@ sidebarTitle: Developer Tools + diff --git a/docs-v2/mint.json b/docs-v2/mint.json index 92458a1ffa7..1833a9c9ec1 100644 --- a/docs-v2/mint.json +++ b/docs-v2/mint.json @@ -490,6 +490,7 @@ "integrations/all/ramp", "integrations/all/reddit", "integrations/all/refiner", + "integrations/all/replicate", "integrations/all/ring-central", "integrations/all/sage", "integrations/all/salesforce", diff --git a/packages/shared/providers.yaml b/packages/shared/providers.yaml index 44145b868f8..804f80ed7d6 100644 --- a/packages/shared/providers.yaml +++ b/packages/shared/providers.yaml @@ -2835,6 +2835,14 @@ refiner: Authorization: Bearer ${apiKey} base_url: https://api.refiner.io/v1 docs: https://docs.nango.dev/integrations/all/refiner +replicate: + display_name: Replicate + auth_mode: API_KEY + proxy: + headers: + Authorization: Bearer ${apiKey} + base_url: https://api.replicate.com + docs: https://docs.nango.dev/integrations/all/replicate ring-central: display_name: RingCentral categories: diff --git a/packages/webapp/public/images/template-logos/replicate.svg b/packages/webapp/public/images/template-logos/replicate.svg new file mode 100644 index 00000000000..1f3bfaba4ad --- /dev/null +++ b/packages/webapp/public/images/template-logos/replicate.svg @@ -0,0 +1,7 @@ + \ No newline at end of file