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

返回