다음을 통해 공유


AccountsRestClient class

VSS REST API에 대한 요청을 만드는 데 사용해야 하는 기본 클래스(파생)입니다.

Extends

생성자

AccountsRestClient(IVssRestClientOptions)

속성

RESOURCE_AREA_ID

메서드

createAccount(AccountCreateInfoInternal, boolean)
getAccount(string)
getAccounts(string, string, string)

특정 소유자 또는 특정 멤버에 대한 계정 목록을 가져옵니다. 다음 매개 변수 중 하나가 필요합니다. ownerId, memberId.

생성자 세부 정보

AccountsRestClient(IVssRestClientOptions)

new AccountsRestClient(options: IVssRestClientOptions)

매개 변수

속성 세부 정보

RESOURCE_AREA_ID

static RESOURCE_AREA_ID: string

속성 값

string

메서드 세부 정보

createAccount(AccountCreateInfoInternal, boolean)

function createAccount(info: AccountCreateInfoInternal, usePrecreated?: boolean): Promise<Account>

매개 변수

usePrecreated

boolean

반환

Promise<Account>

getAccount(string)

function getAccount(accountId: string): Promise<Account>

매개 변수

accountId

string

반환

Promise<Account>

getAccounts(string, string, string)

특정 소유자 또는 특정 멤버에 대한 계정 목록을 가져옵니다. 다음 매개 변수 중 하나가 필요합니다. ownerId, memberId.

function getAccounts(ownerId?: string, memberId?: string, properties?: string): Promise<Account[]>

매개 변수

ownerId

string

계정 소유자의 ID입니다.

memberId

string

계정의 멤버에 대한 ID입니다.

properties

string

반환

Promise<Account[]>