查询用户捐赠单列表
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 用户在商户AppID下的唯一标识 |
brand_id | string | 品牌ID |
query | object | 声明请求的查询参数 |
offset | integer | 请求资源起始位置 |
limit | integer | 最大资源条数 |
php
$instance->v3->lovefeast->users->_openid_->orders->brandId->_brand_id_->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}')->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}']->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->lovefeast->users->_openid_->orders->brandId->_brand_id_->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}')->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/lovefeast/users/{openid}/orders/brand-id/{brand_id}']->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'brand_id' => '2250',
'query' => [
'offset' => 0,
'limit' => 20,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
count | integer | |
limit | integer | |
offset | integer | |
total_count | integer | |
data | object[] | |
welfare_trade_id | string | |
appid | string | |
sub_appid | string | |
brand_id | string | |
donate_source | string | MINIPROGRAM_PAY | ENTRUST_PAY 枚举值之一 |
merchant_order | string | |
institution_name | string | |
business_id | string | |
business_name | string | |
success_time | string | |
payer | object | |
openid | string | |
sub_openid | string | |
avatar | string | |
nickname | string | |
amount | object | |
total | number | |
payer_total | number | |
currency | string | |
payer_currency | string | |
device_id | string |
参阅 表