mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Set up request
This commit is contained in:
parent
2f8bff7676
commit
77747f8455
|
@ -184,6 +184,7 @@ export interface IRestApi {
|
|||
retryExecution(id: string, loadWorkflow?: boolean): Promise<boolean>;
|
||||
getTimezones(): Promise<IDataObject>;
|
||||
getBinaryBufferString(dataPath: string): Promise<string>;
|
||||
getScopes: (credentialType: string) => Promise<string[]>;
|
||||
}
|
||||
|
||||
export interface INodeTranslationHeaders {
|
||||
|
|
|
@ -195,6 +195,11 @@ export const restApi = Vue.extend({
|
|||
getBinaryBufferString: (dataPath: string): Promise<string> => {
|
||||
return self.restApi().makeRestApiRequest('GET', `/data/${dataPath}`);
|
||||
},
|
||||
|
||||
// Returns scopes for OAuth credential types
|
||||
getScopes: (credentialType: string): Promise<string[]> => {
|
||||
return self.restApi().makeRestApiRequest('GET', '/oauth2-credential/scopes', { credentialType });
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue