GraphRequest interface
GraphRequest 对象的键入有关详细信息: https://github.com/microsoftgraph/msgraph-sdk-javascript
属性
_headers | |
_response |
|
config | |
url |
方法
属性详细信息
_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)
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)
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)
select(properties)
select(properties: string | string[]): IGraphRequest;
参数
- properties
-
string | string[]
返回
skip(n)
skipToken(token)
top(n)
update(content, callback)
update(content: any, callback?: GraphRequestCallback): Promise<any>;
参数
- content
-
any
- callback
- @microsoft/microsoft-graph-client!GraphRequestCallback:type
返回
Promise<any>