revenuewire / jackfruit-rest-sdk-php
v1.26
2017-11-06 22:53 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
README
此API 不代表 最终产品。以下列出的某些API 高度实验性,在最终发布前可能会发生变化。它们可能包含崩溃和错误,并可能导致数据丢失。
此PHP包由Swagger Codegen项目自动生成
- API版本:v1
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
要求
PHP 5.4.0及以后版本
安装与使用
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/revenuewire/jackfruit-rest-sdk-php.git"
}
],
"require": {
"revenuewire/jackfruit-rest-sdk-php": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请按照安装程序进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: JWT Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Authorization-JWT', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Authorization-JWT', 'Bearer'); // Configure API key authorization: API-KEY Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $api_instance = new Swagger\Client\Api\AffiliateLinkerLinksApi(); $catalogFid = "catalogFid_example"; // string | Offer's catalog FID try { $result = $api_instance->affiliateLinksGet($catalogFid); print_r($result); } catch (Exception $e) { echo 'Exception when calling AffiliateLinkerLinksApi->affiliateLinksGet: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI均相对于https:///rest/v1
模型文档
- AccountTemplate
- ActivateGatewayResponse
- AffiliateAccount
- AffiliateBlockObj
- AffiliateLink
- AffiliatePayoutItem
- Alias
- Aliases
- AllPathInfos
- AllPathNodes
- Banner
- BannerType
- BillInfo
- BillInfoResponse
- CancelProfileResponse
- CardInfo
- CardUpdateResponse
- CatalogOffer
- CatalogOfferDetail
- Context
- Country
- CountryList
- CountryOfferPriceItem
- Coupon
- CpaPayoutPolicy
- Customer
- CustomerAddress
- CustomerAddressObj
- CustomerDetailedObj
- CustomerObj
- CustomerOffers
- CustomerOffersObj
- CustomerOffersObjRecurringTransactionItem
- CustomerOffersObjTransactionItem
- CustomerOrder
- CustomerPhoneObj
- CustomerTransactions
- CustomersRespone
- Deployment
- Destination
- Domain
- DomainEmail
- DomainEmailLabel
- Error
- Geo
- Identity
- IdentityData
- InlineResponse200
- InlineResponse2001
- InlineResponse20010
- InlineResponse20011
- InlineResponse20012
- InlineResponse20013
- InlineResponse20014
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2005
- InlineResponse2006
- InlineResponse2007
- InlineResponse2008
- InlineResponse2009
- ListOrders
- ListOrdersData
- MarketingMaterial
- Merchant
- MerchantData
- MerchantDetailsResponse
- MerchantDetailsResponseData
- MerchantTerms
- NewDomain
- NewTemplate
- NewTemplates
- NodeDeleteObj
- NodeInfo
- OfferDetails
- OfferPriceItem
- OfferPrices
- OfferResponseObj
- OrderDetailedObj
- OrderDetails
- OrderDetailsData
- OrderLookUpRes
- PathInfo
- PathNodeObj
- PathObj
- PathsDeleteObj
- PathsDeleteObjData
- PaypalUrl
- PaypalUrlData
- PostbackTest
- ProductCategory
- ProductDetails
- ProductResponseObj
- ProductType
- RebillMigrationResponse
- RecurringOffer
- RecurringOfferInterval
- RefundMigrationResponse
- Response
- Setting
- State
- SubscriptionInfoResponse
- 订阅信息响应数据
- 订阅信息响应数据报价
- 支持的语言
- 支持的语言列表
- 模板数据对象
- 模板媒体块
- 模板
- 令牌
- 令牌数据
- 跟踪
- 交易
- 交易详情
- 交易项
- 交易响应对象
- 试用报价
- 更新电子邮件响应
- 更新电子邮件响应数据
- 用户
- 用户数据
- 用户忘记密码
授权文档
API-KEY
- 类型:API密钥
- API密钥参数名:X-API-KEY
- 位置:HTTP头
JWT
- 类型:API密钥
- API密钥参数名:X-Authorization-JWT
- 位置:HTTP头