Поделиться через


GraphRequest interface

Типы для объекта GraphRequest. Дополнительные сведения: https://github.com/microsoftgraph/msgraph-sdk-javascript

Свойства

_headers
_responseType
config
urlComponents

Методы

buildFullUrl()
constructor(config, path)
count(count)
create(content, callback)
del(callback)
delete(callback)
expand(properties)
filter(filterStr)
get(callback)
getStream(callback)
header(headerKey, headerValue)
headers(headers)
orderby(properties)
parsePath(rawPath)
patch(content, callback)
post(content, callback)
put(content, callback)
putStream(stream, callback)
query(queryDictionaryOrString)
responseType(responseType)
select(properties)
skip(n)
skipToken(token)
top(n)
update(content, callback)
version(v)

Сведения о свойстве

_headers

_headers: {
        [key: string]: string | number;
    };

Значение свойства

{ [key: string]: string | number; }

_responseType

_responseType: string;

Значение свойства

string

config

config: Options;

Значение свойства

@microsoft/microsoft-graph-client!Options:interface

urlComponents

urlComponents: URLComponents;

Значение свойства

@microsoft/microsoft-graph-client!URLComponents:interface

Сведения о методе

buildFullUrl()

buildFullUrl(): string;

Возвращаемое значение

string

constructor(config, path)

constructor(config: Options, path: string): IGraphRequest;

Параметры

config
@microsoft/microsoft-graph-client!Options:interface
path

string

Возвращаемое значение

count(count)

count(count: boolean): IGraphRequest;

Параметры

count

boolean

Возвращаемое значение

create(content, callback)

create(content: any, callback?: GraphRequestCallback): Promise<any>;

Параметры

content

any

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

Promise<any>

del(callback)

del(callback?: GraphRequestCallback): Promise<any>;

Параметры

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

Promise<any>

delete(callback)

delete(callback?: GraphRequestCallback): Promise<any>;

Параметры

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

Promise<any>

expand(properties)

expand(properties: string | string[]): IGraphRequest;

Параметры

properties

string | string[]

Возвращаемое значение

filter(filterStr)

filter(filterStr: string): IGraphRequest;

Параметры

filterStr

string

Возвращаемое значение

get(callback)

get(callback?: GraphRequestCallback): Promise<any>;

Параметры

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

Promise<any>

getStream(callback)

getStream(callback: GraphRequestCallback): void;

Параметры

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

void

header(headerKey, headerValue)

header(headerKey: string, headerValue: string): this;

Параметры

headerKey

string

headerValue

string

Возвращаемое значение

this

headers(headers)

headers(headers: {
        [key: string]: string | number;
    }): this;

Параметры

headers

{ [key: string]: string | number; }

Возвращаемое значение

this

orderby(properties)

orderby(properties: string | string[]): IGraphRequest;

Параметры

properties

string | string[]

Возвращаемое значение

parsePath(rawPath)

parsePath(rawPath: string): void;

Параметры

rawPath

string

Возвращаемое значение

void

patch(content, callback)

patch(content: any, callback?: GraphRequestCallback): Promise<any>;

Параметры

content

any

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

Promise<any>

post(content, callback)

post(content: any, callback?: GraphRequestCallback): Promise<any>;

Параметры

content

any

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

Promise<any>

put(content, callback)

put(content: any, callback?: GraphRequestCallback): Promise<any>;

Параметры

content

any

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

Promise<any>

putStream(stream, callback)

putStream(stream: any, callback: GraphRequestCallback): void;

Параметры

stream

any

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

void

query(queryDictionaryOrString)

query(queryDictionaryOrString: string | {
        [key: string]: string | number;
    }): IGraphRequest;

Параметры

queryDictionaryOrString

string | { [key: string]: string | number; }

Возвращаемое значение

responseType(responseType)

responseType(responseType: string): IGraphRequest;

Параметры

responseType

string

Возвращаемое значение

select(properties)

select(properties: string | string[]): IGraphRequest;

Параметры

properties

string | string[]

Возвращаемое значение

skip(n)

skip(n: number): IGraphRequest;

Параметры

n

number

Возвращаемое значение

skipToken(token)

skipToken(token: string): IGraphRequest;

Параметры

token

string

Возвращаемое значение

top(n)

top(n: number): IGraphRequest;

Параметры

n

number

Возвращаемое значение

update(content, callback)

update(content: any, callback?: GraphRequestCallback): Promise<any>;

Параметры

content

any

callback
@microsoft/microsoft-graph-client!GraphRequestCallback:type

Возвращаемое значение

Promise<any>

version(v)

version(v: string): IGraphRequest;

Параметры

v

string

Возвращаемое значение