مشاركة عبر


AccountsRestClient class

الفئة الأساسية التي يجب استخدامها (مشتقة من) لتقديم طلبات إلى VSS REST apis

يمتد

المنشئون

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

معرف مالك الحسابات.

memberId

string

معرف لعضو في الحسابات.

properties

string

المرتجعات

Promise<Account[]>