mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
invokeApi support
Added support for invokeApi call, with its related InvokeApiOptions.
This commit is contained in:
parent
23b6edd28c
commit
dfd94df9d7
@ -19,8 +19,17 @@ declare module Microsoft.WindowsAzure {
|
||||
logout(): void;
|
||||
getTable(tableName: string): MobileServiceTable;
|
||||
withFilter(serviceFilter: (request: any, next: (request: any, callback: (error:any, response: any) => void ) => void, callback: (error: any, response: any) => void ) => void ) : MobileServiceClient;
|
||||
invokeApi(apiName: string, options?:InvokeApiOptions): asyncPromise;
|
||||
}
|
||||
|
||||
interface InvokeApiOptions
|
||||
{
|
||||
method?: string;
|
||||
body?: any;
|
||||
headers?: Object;
|
||||
parameters?: Object;
|
||||
}
|
||||
|
||||
// User object based on Microsoft Azure documentation: http://msdn.microsoft.com/en-us/library/windowsazure/jj554220.aspx
|
||||
interface User {
|
||||
getIdentities(): any;// { [providerName: string]: { userId: string, accessToken: string, accessTokenSecret?: string }; };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user