返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
u

unbounce

|

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
249
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

unbounce

# Unbounce Access Unbounce landing pages and leads via managed OAuth. ## Quick Start ```bash python <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://gateway.maton.ai/unbounce/accounts') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF ``` ## Base URL ``` https://gateway.maton.ai/unbounce/{native-api-path} ``` The gateway proxies requests to `api.unbounce.com` and automatically injects your credentials. ## Authentication All requests require the Maton API key: ``` Authorization: Bearer $MATON_API_KEY ``` **Environment Variable:** Set your API key as `MATON_API_KEY`: ```bash export MATON_API_KEY="YOUR_API_KEY" ``` ### Getting Your API Key 1. Sign in or create an account at [maton.ai](https://maton.ai) 2. Go to [maton.ai/settings](https://maton.ai/settings) 3. Copy your API key ## Connection Management Manage your Unbounce OAuth connections at `https://ctrl.maton.ai`. ### List Connections ```bash python <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://ctrl.maton.ai/connections?app=unbounce&status=ACTIVE') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF ``` ### Create Connection ```bash python <<'EOF' import urllib.request, os, json data = json.dumps({'app': 'unbounce'}).encode() req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') req.add_header('Content-Type', 'application/json') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF ``` ### Get Connection ```bash python <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF ``` **Response:** ```json { "connection": { "connection_id": "9c5cc43b-6f09-4789-ad4d-8162e39a24c1", "status": "PENDING", "creation_time": "2026-03-04T10:54:06.615371Z", "url": "https://connect.maton.ai/?session_token=...", "app": "unbounce", "method": "OAUTH2", "metadata": {} } } ``` Open the returned `url` in a browser to complete OAuth authorization. ### Delete Connection ```bash python <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF ``` --- ## API Reference ### Accounts #### List Accounts ```bash GET /unbounce/accounts ``` Query parameters: - `sort_order` - `asc` or `desc` (default: desc by creation date) **Response:** ```json { "metadata": { "count": 1, "location": "https://api.unbounce.com/accounts" }, "accounts": [ { "id": 4967935, "name": "My Account", "createdAt": "2026-03-04T10:54:34Z", "state": "active", "options": {} } ] } ``` #### Get Account ```bash GET /unbounce/accounts/{account_id} ``` **Response:** ```json { "id": 4967935, "name": "My Account", "createdAt": "2026-03-04T10:54:34Z", "state": "active", "options": {} } ``` #### List Account Pages ```bash GET /unbounce/accounts/{account_id}/pages ``` #### List Account Sub-Accounts ```bash GET /unbounce/accounts/{account_id}/sub_accounts ``` --- ### Sub-Accounts #### Get Sub-Account ```bash GET /unbounce/sub_accounts/{sub_account_id} ``` **Response:** ```json { "id": 5699747, "accountId": 4967935, "name": "ChrisKim", "createdAt": "2026-03-04T10:54:35Z", "website": null, "uuid": "cf72cbb6-17fd-44d1-bbe4-d25dcad6354a", "domainsCount": 0 } ``` #### List Sub-Account Pages ```bash GET /unbounce/sub_accounts/{sub_account_id}/pages ``` #### List Sub-Account Domains ```bash GET /unbounce/sub_accounts/{sub_account_id}/domains ``` #### List Sub-Account Page Groups ```bash GET /unbounce/sub_accounts/{sub_account_id}/page_groups ``` --- ### Pages #### List All Pages ```bash GET /unbounce/pages ``` Query parameters: - `role` - Filter by user role: `viewer` or `author` - `with_stats` - Include A/B test statistics when `true` - `limit` - Results per page (default: 50, max: 1000) - `offset` - Skip first N results - `sort_order` - `asc` or `desc` - `count` - When `true`, only return count in metadata - `from` - Start date (RFC 5322 format) - `to` - End date (RFC 5322 format) **Response:** ```json { "metadata": { "count": 1, "location": "https://api.unbounce.com/pages" }, "pages": [ { "id": "7cacd6d4-015a-4690-9537-68aac06bd98e", "subAccountId": 5699747, "name": "Training Template", "url": "http://unbouncepages.com/training-template/", "state": "unpublished", "domain": "unbouncepages.com", "createdAt": "2026-03-04T10:56:54Z", "lastPublishedAt": null, "variantsCount": 0, "integrationsCount": 0, "integrationsErrorsCount": 0 } ] } ``` #### Get Page ```bash GET /unbounce/pages/{page_id} ``` Includes test statistics (A/B testing data): **Response:** ```json { "id": "7cacd6d4-015a-4690-9537-68aac06bd98e", "name": "Training Template", "url": "http://unbouncepages.com/training-template/", "state": "unpublished", "tests": { "current": { "champion": "a", "hasResults": "false", "conversionRate": "0", "conversions": "0", "visitors": "0", "visits": "0" } } } ``` #### List Page Form Fields ```bash GET /unbounce/pages/{page_id}/form_fields ``` Query parameters: - `include_sub_pages` - Include sub-page form fields when `true` - `sort_order` - `asc` or `desc` - `count` - When `true`, only return count **Response:** ```json { "metadata": { "count": 3 }, "formFields": [ { "id": "name", "name": "Name", "type": "text", "validations": { "required": false } }, { "id": "email", "name": "Email", "type": "text", "validations": { "required": false, "email": true } }, { "id": "telephone", "name": "Telephone", "type": "text", "validations": { "required": false, "phone": true } } ] } ``` --- ### Leads #### List Page Leads ```bash GET /unbounce/pages/{page_id}/leads ``` Query parameters: - `limit` - Results per page (default: 50, max: 1000) - `offset` - Skip first N results - `sort_order` - `asc` or `desc` - `from` - Start date (RFC 5322 format) - `to` - End date (RFC 5322 format) **Response:** ```json { "metadata": { "count": 0, "delete": { "href": "https://api.unbounce.com/pages/{page_id}/lead_deletion_request", "method": "POST" } }, "leads": [] } ``` #### Get Lead ```bash GET /unbounce/pages/{page_id}/leads/{lead_id} ``` or directly: ```bash GET /unbounce/leads/{lead_id} ``` **Response:** ```json { "id": "f79d7b6e-b3e8-484c-9584-d21c7afba238", "created_at": "2026-03-04T11:52:50.705Z", "page_id": "7cacd6d4-015a-4690-9537-68aac06bd98e", "variant_id": "a", "submitter_ip": "127.0.0.1", "form_data": { "name": "Test User", "email": "test@example.com", "telephone": "1234567890" }, "extra_data": { "cookies": {} } } ``` #### Create Lead ```bash POST /unbounce/pages/{page_id}/leads Content-Type: application/json ``` **Request Body:** ```json { "conversion": true, "visitor_id": "127.0.0.1234567890", "form_submission": { "variant_id": "a", "submitter_ip": "127.0.0.1", "form_data": { "name": "John Doe", "email": "john@example.com", "phone_number": "1234567890" } } } ``` **Response:** ```json { "id": "f79d7b6e-b3e8-484c-9584-d21c7afba238", "created_at": "2026-03-04T11:52:50.705Z", "page_id": "7cacd6d4-015a-4690-9537-68aac06bd98e", "variant_id": "a", "submitter_ip": "127.0.0.1", "form_data": { "name": "John Doe", "email": "john@example.com", "phone_number": "1234567890" } } ``` Leads created via the API have `"created_by": "api"` in their `extra_data`. --- ### Domains #### Get Domain ```bash GET /unbounce/domains/{domain_id} ``` #### List Domain Pages ```bash GET /unbounce/domains/{domain_id}/pages ``` --- ### Page Groups #### List Page Group Pages ```bash GET /unbounce/page_groups/{page_group_id}/pages ``` Query parameters: - `limit` - Results per page (default: 50, max: 1000) - `offset` - Skip first N results - `sort_order` - `asc` or `desc` - `from` / `to` - Date range filter --- ### Users #### Get Current User ```bash GET /unbounce/users/self ``` **Response:** ```json { "id": 5031726, "email": "user@example.com", "firstName": "Chris", "lastName": "Kim", "metadata": { "related": { "subAccounts": ["https://api.unbounce.com/sub_accounts/5699747"], "accounts": ["https://api.unbounce.com/accounts/4967935"] } } } ``` #### Get User by ID ```bash GET /unbounce/users/{user_id} ``` --- ## Pagination Unbounce uses offset-based pagination: ```bash GET /unbounce/pages?limit=50&offset=0 ``` **Parameters:** - `limit` - Number of results per page (default: 50, max: 1000) - `offset` - Number of results to skip - `sort_order` - Sort direction: `asc` or `desc` **Response metadata includes:** ```json { "metadata": { "count": 100 } } ``` ## Code Examples ### JavaScript ```javascript const response = await fetch('https://gateway.maton.ai/unbounce/pages', { headers: { 'Authorization': `Bearer ${process.env.MATON_API_KEY}` } }); const data = await response.json(); console.log(data); ``` ### Python ```python import os import requests response = requests.get( 'https://gateway.maton.ai/unbounce/pages', headers={ 'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}' } ) print(response.json()) ``` ## Notes - All responses include `metadata` with HATEOAS links for navigation - Date format: RFC 5322 (e.g., `2026-03-04T10:54:34Z`) - Page IDs are UUIDs, account/sub-account IDs are integers - Page states: `published` or `unpublished` - Account states: `active` or `suspended` ## Error Handling | Status | Meaning | |--------|---------| | 200 | Success | | 401 | Invalid or missing authentication | | 404 | Resource not found | | 429 | Rate limited | ## Resources - [Unbounce API Documentation](https://developer.unbounce.com/api_reference/) - [Maton Community](https://discord.com/invite/dBfFAcefs2) - [Maton Support](mailto:support@maton.ai)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 unbounce-1776234318 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 unbounce-1776234318 技能

通过命令行安装

skillhub install unbounce-1776234318

下载

⬇ 下载 unbounce v1.0.0(免费)

文件大小: 4.52 KB | 发布时间: 2026-4-15 23:56

v1.0.0 最新 2026-4-15 23:56
Unbounce 1.0.0 – Initial release

- Provides Unbounce API integration with managed OAuth via Maton.
- Enables landing page management, lead tracking, and conversion analytics.
- Centralized API base URL: https://gateway.maton.ai/unbounce
- OAuth connection management available at https://ctrl.maton.ai.
- Includes detailed API reference for accounts, sub-accounts, pages, and leads.
- Requires a Maton API key set via environment variable.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部