justapnet / justap-server-sdk-php
3.0.3
2024-09-04 00:13 UTC
Requires
- php: ^7 || ^8
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
README
- API版本:1.0
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
文档
需求
PHP 5.5 及以上版本
安装与使用
Composer
要通过 Composer 安装绑定,请在 composer.json
中添加以下内容:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/justapnet/justap-server-sdk-php.git"
}
],
"require": {
"justapnet/justap-server-sdk-php": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/justap-server-sdk-php/vendor/autoload.php');
测试
要运行单元测试,请
composer install
./vendor/bin/phpunit
入门
请按照 安装过程 进行操作,然后运行以下命令:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: ApiKeyAuth $config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKey('X-JUSTAP-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Justapnet\Justap\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-JUSTAP-API-KEY', 'Bearer'); $apiInstance = new Justapnet\Justap\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Justapnet\Justap\Model\V1CreateUserRequest(); // \Justapnet\Justap\Model\V1CreateUserRequest | try { $result = $apiInstance->businessUserServiceCreateUser($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->businessUserServiceCreateUser: ', $e->getMessage(), PHP_EOL; } ?>
API 端点文档
所有 URI 都相对于 http://127.0.0.1:21011
模型文档
- ChargeRoutingRequestChargeMethod
- CreateRoyaltyRequestRoyaltyMode
- CreateRoyaltyRequestRoyaltyReceiver
- ExtraAlipayInvoiceInfoKeyInfo
- ExtraAlipayJSAPIPayer
- ExtraAlipayPageAlipayDirectPayForm
- ExtraAlipaySettleInfoSettleDetailInfos
- ExtraUnionPayCardlessQuickPayCardType
- ExtraWechatpayDetailGoodsDetail
- ExtraWechatpaySceneInfoH5Info
- ExtraWechatpaySceneInfoStoreInfo
- GooglerpcStatus
- OpenApiRoyaltyDetailInfoPojoTradeFundBillItem
- ProtobufAny
- RefundExtraAlipayOpenApiRoyaltyDetailInfoPojo
- RefundExtraWechatPayAccount
- RefundExtraWechatPayGoodsDetailItem
- RefundRoutingRequestRefundMethod
- RoyaltyReceiverRoyaltyFeeMode
- RoyaltySettlementRoyaltySettlementStatus
- RoyaltySettlementTransactionRoyaltyTransactionStatus
- SettlementAccountRecipientAccountType
- SettlementAccountRecipientAlipayChannelRecipient
- SettlementAccountRecipientBalanceChannelRecipient
- SettlementAccountRecipientBankChannelRecipient
- SettlementAccountRecipientRecipientType
- SettlementAccountRecipientWechatpayChannelRecipient
- SettlementAccountRecipientYsepayMerchantRecipient
- Tradev1Channel
- Tradev1RoyaltyMethod
- V1AcquirerCloseTransactionResponse
- V1AcquirerCreateRefundResponse
- V1AcquirerCreateRoyaltyResponse
- V1AcquirerCreateTransactionResponse
- V1AcquirerPaymentNotifyResponse
- V1AcquirerQueryRefundResponse
- V1AcquirerQueryRoyaltyResponse
- V1AcquirerQueryTransactionResponse
- V1AcquirerRefundNotifyResponse
- V1AcquirerRoyaltyNotifyResponse
- V1AlipayCallbackResponse
- V1AlipayNotifyResponse
- V1BusinessUser
- V1CallbackRoutingResponse
- V1Charge
- V1ChargeExtra
- V1ChargeListResponse
- V1ChargeResponse
- V1ChargeRoutingResponse
- V1CreateChargeRequest
- V1CreateChargeRequestExtra
- V1CreateCustomerRequest
- V1CreateRefundRequest
- V1CreateRoyaltyRequest
- V1CreateSettlementAccountRequest
- V1CreateUserRequest
- V1Customer
- V1CustomerListResponse
- V1CustomerResponse
- V1DeleteCustomerResponse
- V1DeleteProductResponse
- V1DeleteSettlementAccountResponse
- V1DeleteUserResponse
- V1ExtraAlipayApp
- V1ExtraAlipayBusinessParams
- V1ExtraAlipayExtUserInfo
- V1ExtraAlipayExtendParams
- V1ExtraAlipayFace
- V1ExtraAlipayFundBillList
- V1ExtraAlipayGoodsDetail
- V1ExtraAlipayInvoiceInfo
- V1ExtraAlipayJSAPI
- V1ExtraAlipayLite
- V1ExtraAlipayLogisticsDetail
- V1ExtraAlipayPage
- V1ExtraAlipayPayParams
- V1ExtraAlipayQr
- V1ExtraAlipayReceiverAddressInfo
- V1ExtraAlipayScan
- V1ExtraAlipaySettleInfo
- V1ExtraAlipaySubMerchant
- V1ExtraAlipayVoucherDetailList
- V1ExtraAlipayWap
- V1ExtraUnionPayCardlessQuickPay
- V1ExtraWechatpayApp
- V1ExtraWechatpayAppConfig
- V1ExtraWechatpayAppletConfig
- V1ExtraWechatpayDetail
- V1ExtraWechatpayH5
- V1ExtraWechatpayJsapi
- V1ExtraWechatpayJsapiConfig
- V1ExtraWechatpayLite
- V1ExtraWechatpayNative
- V1ExtraWechatpayPayer
- V1ExtraWechatpayScan
- V1ExtraWechatpaySceneInfo
- V1ExtraWechatpaySettleInfo
- V1完成版税响应
- V1性别
- V1列出所有客户请求已创建
- V1列出所有版税请求已创建
- V1列出所有版税响应
- V1列出所有结算账户请求已创建
- V1列出所有用户请求已创建
- V1通知路由响应
- V1产品列表响应
- V1产品响应
- V1查询费用列表请求已创建
- V1退款
- V1退款额外
- V1退款额外支付宝
- V1退款额外微信支付
- V1退款列表响应
- V1退款响应
- V1退款路由响应
- V1版税
- V1版税响应
- V1版税路由请求版税方法
- V1版税路由响应
- V1版税结算
- V1版税结算列表响应
- V1版税结算响应
- V1版税结算来源
- V1版税结算来源类型
- V1版税结算交易
- V1版税结算交易列表响应
- V1版税结算交易响应
- V1版税状态
- V1搜索客户请求已创建
- V1搜索版税响应
- V1搜索用户请求已创建
- V1服务错误
- V1结算账户
- V1结算账户渠道
- V1结算账户列表响应
- V1结算账户收款人
- V1结算账户响应
- V1转账路由响应
- V1银联二维码请求
- V1更新和修补请求体
- V1用户
- V1用户列表响应
- V1用户响应
- V1微信支付回调响应
- V1微信支付通知响应
授权文档
ApiKeyAuth
- 类型:API密钥
- API密钥参数名:X-JUSTAP-API-KEY
- 位置:HTTP头