Skip to content

Latest commit

 

History

History
230 lines (164 loc) · 6.96 KB

AlipayOpenMiniInnerMembersApi.md

File metadata and controls

230 lines (164 loc) · 6.96 KB

Alipay\OpenAPISDK\AlipayOpenMiniInnerMembersApi

All URIs are relative to https://openapi.alipay.com.

Method HTTP request Description
add() POST /v3/alipay/open/mini/inner/members/add 内部链路添加开发成员
delete() DELETE /v3/alipay/open/mini/inner/members/delete 内部链路删除开发成员
query() GET /v3/alipay/open/mini/inner/members/query 内部链路查询开发成员

add()

add($alipayOpenMiniInnerMembersAddModel): object

内部链路添加开发成员

添加开发成员

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Alipay\OpenAPISDK\Api\AlipayOpenMiniInnerMembersApi(
    // 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()
);

// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);

$alipayOpenMiniInnerMembersAddModel = new \Alipay\OpenAPISDK\Model\AlipayOpenMiniInnerMembersAddModel(); // \Alipay\OpenAPISDK\Model\AlipayOpenMiniInnerMembersAddModel

try {
    $result = $apiInstance->add($alipayOpenMiniInnerMembersAddModel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlipayOpenMiniInnerMembersApi->add: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
alipayOpenMiniInnerMembersAddModel \Alipay\OpenAPISDK\Model\AlipayOpenMiniInnerMembersAddModel [optional]

Return type

object

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

delete()

delete($miniAppId, $appOrigin, $domainAccount, $loginId, $type): object

内部链路删除开发成员

删除开发成员

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Alipay\OpenAPISDK\Api\AlipayOpenMiniInnerMembersApi(
    // 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()
);

// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);

$miniAppId = 2021154987463214; // string | 业务小程序id
$appOrigin = ALIPAY; // string | 业务来源
$domainAccount = 域账号; // string | 域账号(如传入则删除联系人)
$loginId = 登陆支付宝账号; // string | 登陆支付宝账号
$type = 1; // string | 成员类型

try {
    $result = $apiInstance->delete($miniAppId, $appOrigin, $domainAccount, $loginId, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlipayOpenMiniInnerMembersApi->delete: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
miniAppId string 业务小程序id [optional]
appOrigin string 业务来源 [optional]
domainAccount string 域账号(如传入则删除联系人) [optional]
loginId string 登陆支付宝账号 [optional]
type string 成员类型 [optional]

Return type

object

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

query()

query($miniAppId, $appOrigin): \Alipay\OpenAPISDK\Model\AlipayOpenMiniInnerMembersQueryResponseModel

内部链路查询开发成员

内部链路查询开发成员

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Alipay\OpenAPISDK\Api\AlipayOpenMiniInnerMembersApi(
    // 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()
);

// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);

$miniAppId = 2021125487896547; // string | 业务小程序id
$appOrigin = ALIPAY; // string | 业务来源

try {
    $result = $apiInstance->query($miniAppId, $appOrigin);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlipayOpenMiniInnerMembersApi->query: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
miniAppId string 业务小程序id [optional]
appOrigin string 业务来源 [optional]

Return type

\Alipay\OpenAPISDK\Model\AlipayOpenMiniInnerMembersQueryResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]