返回顶部
j

jobber临时工

|

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

jobber

Jobber

通过托管OAuth认证访问Jobber API。管理现场服务业务的客户、工单、发票、报价、房产和团队成员。

快速开始

bash

获取账户信息


python < import urllib.request, os, json
query = {query: { account { id name } }}
req = urllib.request.Request(https://gateway.maton.ai/jobber/graphql, data=query.encode(), method=POST)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Content-Type, application/json)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

API类型

Jobber仅使用GraphQL API。所有请求均为向/graphql端点发送的POST请求,请求体为包含query字段的JSON格式。

基础URL

https://gateway.maton.ai/jobber/graphql

网关将请求代理至api.getjobber.com/api/graphql,并自动注入您的OAuth令牌和API版本标头。

认证

所有请求需要在Authorization标头中携带Maton API密钥:

Authorization: Bearer $MATONAPIKEY

网关会自动注入X-JOBBER-GRAPHQL-VERSION标头(当前为2025-04-16)。

环境变量: 将您的API密钥设置为MATONAPIKEY:

bash
export MATONAPIKEY=YOURAPIKEY

获取您的API密钥

  1. 1. 在maton.ai登录或创建账户
  2. 前往maton.ai/settings
  3. 复制您的API密钥

连接管理

在https://ctrl.maton.ai管理您的Jobber OAuth连接。

列出连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections?app=jobber&status=ACTIVE)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

创建连接

bash
python < import urllib.request, os, json
data = json.dumps({app: jobber}).encode()
req = urllib.request.Request(https://ctrl.maton.ai/connections, data=data, method=POST)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Content-Type, application/json)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

获取连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections/{connection_id})
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

响应:
json
{
connection: {
connection_id: cc61da85-8bf7-4fbc-896b-4e4eb9a5aafd,
status: ACTIVE,
creation_time: 2026-02-07T09:29:19.946291Z,
lastupdatedtime: 2026-02-07T09:30:59.990084Z,
url: https://connect.maton.ai/?session_token=...,
app: jobber,
metadata: {}
}
}

在浏览器中打开返回的url以完成OAuth授权。

删除连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections/{connection_id}, method=DELETE)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

指定连接

如果您有多个Jobber连接,请使用Maton-Connection标头指定要使用的连接:

bash
python < import urllib.request, os, json
query = {query: { account { id name } }}
req = urllib.request.Request(https://gateway.maton.ai/jobber/graphql, data=query.encode(), method=POST)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Content-Type, application/json)
req.add_header(Maton-Connection, cc61da85-8bf7-4fbc-896b-4e4eb9a5aafd)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

如果省略,网关将使用默认(最早)的活动连接。

API参考

账户操作

获取账户信息

bash
POST /jobber/graphql
Content-Type: application/json

{
query: { account { id name } }
}

客户操作

列出客户

bash
POST /jobber/graphql
Content-Type: application/json

{
query: { clients(first: 20) { nodes { id name emails { primary address } phones { primary number } } pageInfo { hasNextPage endCursor } } }
}

按ID获取客户

bash
POST /jobber/graphql
Content-Type: application/json

{
query: query($id: EncodedId!) { client(id: $id) { id name emails { primary address } phones { primary number } billingAddress { street city } } },
variables: { id: CLIENT_ID }
}

创建客户

bash
POST /jobber/graphql
Content-Type: application/json

{
query: mutation($input: ClientCreateInput!) { clientCreate(input: $input) { client { id name } userErrors { message path } } },
variables: {
input: {
firstName: John,
lastName: Doe,
email: john@example.com,
phone: 555-1234
}
}
}

更新客户

bash
POST /jobber/graphql
Content-Type: application/json

{
query: mutation($id: EncodedId!, $input: ClientUpdateInput!) { clientUpdate(clientId: $id, input: $input) { client { id name } userErrors { message path } } },
variables: {
id: CLIENT_ID,
input: {
email: newemail@example.com
}
}
}

工单操作

列出工单

bash
POST /jobber/graphql
Content-Type: application/json

{
query: { jobs(first: 20) { nodes { id title jobNumber jobStatus client { name } } pageInfo { hasNextPage endCursor } } }
}

按ID获取工单

bash
POST /jobber/graphql
Content-Type: application/json

{
query: query($id: EncodedId!) { job(id: $id) { id title jobNumber jobStatus instructions client { name } property { address { street city } } } },
variables: { id: JOB_ID }
}

创建工单

bash
POST /jobber/graphql
Content-Type: application/json

{
query: mutation($input: JobCreateInput!) { jobCreate(input: $input) { job { id jobNumber title } userErrors { message path } } },
variables: {
input: {
clientId: CLIENT_ID,
title: 草坪维护,
instructions: 每周草坪护理服务
}
}
}

发票操作

列出发票

bash
POST /jobber/graphql
Content-Type: application/json

{
query: { invoices(first: 20) { nodes { id invoiceNumber subject total invoiceStatus client { name } } pageInfo { hasNextPage endCursor } } }
}

按ID获取发票

bash
POST /jobber/graphql
Content-Type: application/json

{
query: query($id: EncodedId!) { invoice(id: $id) { id invoiceNumber subject total amountDue invoiceStatus lineItems { nodes { name quantity unitPrice } } } },
variables: { id: INVOICE_ID }
}

创建发票

bash
POST /jobber/graphql
Content-Type: application/json

{
query: mutation($input: InvoiceCreateInput!) {

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 jobber-1776345983 技能

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

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

通过命令行安装

skillhub install jobber-1776345983

下载

⬇ 下载 jobber v1.0.2(免费)

文件大小: 5.15 KB | 发布时间: 2026-4-17 15:10

v1.0.2 最新 2026-4-17 15:10
- Added clawdbot metadata to the skill definition.
- Declared the MATON_API_KEY environment variable as a requirement for the skill.

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

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

p2p_official_large
返回顶部