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 version: 1.0
- Build package: io.swagger.codegen.languages.PhpClientCodegen
Document
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/justapnet/justap-server-sdk-php.git"
}
],
"require": {
"justapnet/justap-server-sdk-php": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/justap-server-sdk-php/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?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; } ?>
Documentation for API Endpoints
All URIs are relative to http://127.0.0.1:21011
Documentation For Models
- 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
- V1FinishRoyaltyResponse
- V1Gender
- V1ListAllCustomersRequestCreated
- V1ListAllRoyaltiesRequestCreated
- V1ListAllRoyaltiesResponse
- V1ListAllSettlementAccountsRequestCreated
- V1ListAllUsersRequestCreated
- V1NotifyRoutingResponse
- V1ProductListResponse
- V1ProductResponse
- V1QueryChargeListRequestCreated
- V1Refund
- V1RefundExtra
- V1RefundExtraAlipay
- V1RefundExtraWechatPay
- V1RefundListResponse
- V1RefundResponse
- V1RefundRoutingResponse
- V1Royalty
- V1RoyaltyResponse
- V1RoyaltyRoutingRequestRoyaltyMethod
- V1RoyaltyRoutingResponse
- V1RoyaltySettlement
- V1RoyaltySettlementListResponse
- V1RoyaltySettlementResponse
- V1RoyaltySettlementSource
- V1RoyaltySettlementSourceType
- V1RoyaltySettlementTransaction
- V1RoyaltySettlementTransactionListResponse
- V1RoyaltySettlementTransactionResponse
- V1RoyaltyStatus
- V1SearchCustomersRequestCreated
- V1SearchRoyaltiesResponse
- V1SearchUsersRequestCreated
- V1ServiceError
- V1SettlementAccount
- V1SettlementAccountChannel
- V1SettlementAccountListResponse
- V1SettlementAccountRecipient
- V1SettlementAccountResponse
- V1TransferRoutingResponse
- V1UnionQrRequest
- V1UpdateAndPatchRequestBody
- V1User
- V1UserListResponse
- V1UserResponse
- V1WechatpayCallbackResponse
- V1WechatpayNotifyResponse
Documentation For Authorization
ApiKeyAuth
- Type: API key
- API key parameter name: X-JUSTAP-API-KEY
- Location: HTTP header