apideck-python
БесплатноБез исполняемых скриптовНе проверенApideck Unified API integration patterns for Python. Use when building integrations with accounting software (QuickBooks, Xero, NetSuite), CRMs (Salesforce…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Apideck Python SDK Skill
Overview
The Apideck Unified API provides a single integration layer to connect with 200+ third-party services across accounting, CRM, HRIS, file storage, ATS, e-commerce, and more. The official Python SDK (apideck-unify) provides typed clients for all unified APIs.
Installation
pip install apideck-unify
Requires Python 3.9+. Dependencies: httpx, pydantic.
IMPORTANT RULES
- ALWAYS use the
apideck-unifySDK. DO NOT make rawhttpx/requestscalls to the Apideck API. - ALWAYS pass
api_key,app_id, andconsumer_idwhen initializing the client. - ALWAYS set the
APIDECK_API_KEYenvironment variable rather than hardcoding API keys. - USE
service_idto specify which downstream connector to use (e.g.,"salesforce","quickbooks"). If a consumer has multiple connections for an API,service_idis required. - USE context managers (
with/async with) for client lifecycle management. - USE the
fieldsparameter to request only the columns you need. - USE the
filter_parameter (note the trailing underscore) to narrow results server-side. - ALWAYS handle errors with try/except using
models.ApideckErroras the base class.
Quick Start
from apideck_unify import Apideck
import os
with Apideck(
api_key=os.getenv("APIDECK_API_KEY", ""),
app_id="your-app-id",
consumer_id="your-consumer-id",
) as apideck:
res = apideck.crm.contacts.list(
service_id="salesforce",
limit=20,
filter_={"email": "[email protected]"},
)
while res is not None:
for contact in res.data:
print(contact.name, contact.emails)
res = res.next()
SDK Patterns
Client Setup
from apideck_unify import Apideck
import os
with Apideck(
api_key=os.getenv("APIDECK_API_KEY", ""),
app_id="your-app-id",
consumer_id="your-consumer-id",
) as apideck:
# Make API calls here
pass
The consumer_id identifies the end-user whose connections are being used. In multi-tenant apps, set this per-request or per-user session.
CRUD Operations
All resources follow the same pattern: apideck.{api}.{resource}.{operation}().
import apideck_unify
from apideck_unify import Apideck
import os
with Apideck(
api_key=os.getenv("APIDECK_API_KEY", ""),
app_id="your-app-id",
consumer_id="your-consumer-id",
) as apideck:
# LIST - retrieve multiple records
res = apideck.crm.contacts.list(
service_id="salesforce",
limit=20,
filter_={"email": "[email protected]", "company_id": "12345"},
sort={"by": apideck_unify.ContactsSortBy.CREATED_AT, "direction": apideck_unify.SortDirection.DESC},
fields="id,name,email",
)
# CREATE - create a new record
res = apideck.crm.contacts.create(
service_id="salesforce",
first_name="John",
last_name="Doe",
emails=[{"email": "[email protected]", "type": apideck_unify.EmailType.PRIMARY}],
phone_numbers=[{"number": "+1234567890", "type": apideck_unify.PhoneNumberType.PRIMARY}],
)
print(res.create_contact_response)
# GET - retrieve a single record
res = apideck.crm.contacts.get(id="contact_123", service_id="salesforce")
# UPDATE - modify an existing record
res = apideck.crm.contacts.update(id="contact_123", service_id="salesforce", first_name="Jane")
# DELETE - remove a record
res = apideck.crm.contacts.delete(id="contact_123", service_id="salesforce")
Pagination
Use the .next() method on response objects for cursor-based pagination:
res = apideck.accounting.invoices.list(service_id="quickbooks", limit=50)
while res is not None:
for invoice in res.data:
print(invoice.number, invoice.total)
res = res.next()
Async Support
Every sync method has an _async counterpart. Use async with as context manager:
import asyncio
from apideck_unify import Apideck
import os
async def main():
async with Apideck(
api_key=os.getenv("APIDECK_API_KEY", ""),
app_id="your-app-id",
consumer_id="your-consumer-id",
) as apideck:
res = await apideck.crm.contacts.list_async(
service_id="salesforce",
limit=20,
)
while res is not None:
for contact in res.data:
print(contact.name)
res = res.next()
asyncio.run(main())
Error Handling
from apideck_unify import Apideck, models
try:
res = apideck.crm.contacts.get(id="invalid", service_id="salesforce")
except models.BadRequestResponse as e:
print("Bad request:", e.message, e.status_code)
except models.UnauthorizedResponse as e:
print("Invalid API key or missing credentials")
except models.NotFoundResponse as e:
print("Record not found")
except models.PaymentRequiredResponse as e:
print("API limit reached")
except models.UnprocessableRespo
Установить apideck-python в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл apideck-python?
Apideck Unified API integration patterns for Python. Use when building integrations with accounting software (QuickBooks, Xero, NetSuite), CRMs (Salesforce, HubSpot, Pipedrive), HRIS platforms (Workday, BambooHR), file storage (Google Drive, Dropbox, Box), ATS systems (Greenhouse, Lever), e-commerce, or any of Apideck's 200+ connectors using Python. Covers the apideck-unify SDK, authentication, CRUD operations, pagination, filtering, async support, and Vault connection management.
Как установить скилл apideck-python?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл apideck-python запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic