mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 10:26:33 +02:00
add Google Picker hook and API types
This commit is contained in:
parent
1e2c54eea6
commit
a42a5a936c
4 changed files with 180 additions and 0 deletions
|
|
@ -266,6 +266,17 @@ class ConnectorsApiService {
|
|||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Get Google Picker token (access_token + client_id + picker_api_key) for a Drive connector
|
||||
*/
|
||||
getDrivePickerToken = async (connectorId: number) => {
|
||||
return baseApiService.get<{
|
||||
access_token: string;
|
||||
client_id: string;
|
||||
picker_api_key: string;
|
||||
}>(`/api/v1/connectors/${connectorId}/drive-picker-token`);
|
||||
};
|
||||
|
||||
// =============================================================================
|
||||
// MCP Connector Methods
|
||||
// =============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue