55 */
66
77import Base from './Base' ;
8- import {
9- HEADER_ACCEPT_LANGUAGE ,
10- DEFAULT_LOCALE ,
11- ERROR_CODE_FETCH_INTEGRATIONS ,
12- BOX_EDIT_INTEGRATION_ID ,
13- BOX_EDIT_SFC_INTEGRATION_ID ,
14- } from '../constants' ;
8+ import { ERROR_CODE_FETCH_INTEGRATIONS , BOX_EDIT_INTEGRATION_ID , BOX_EDIT_SFC_INTEGRATION_ID } from '../constants' ;
159
1610class OpenWith extends Base {
1711 /**
@@ -34,25 +28,13 @@ class OpenWith extends Base {
3428 * @param {string } fileId - Box file ID
3529 * @param {Function } successCallback - Success callback
3630 * @param {Function } errorCallback - Error callback
37- * @param {string } locale - locale to receive translated strings from the API
3831 * @return {void }
3932 */
40- getOpenWithIntegrations (
41- fileId : string ,
42- successCallback : Function ,
43- errorCallback : ElementsErrorCallback ,
44- locale : ?string = DEFAULT_LOCALE ,
45- ) {
33+ getOpenWithIntegrations ( fileId : string , successCallback : Function , errorCallback : ElementsErrorCallback ) {
4634 this . errorCode = ERROR_CODE_FETCH_INTEGRATIONS ;
47- const params = {
48- headers : {
49- [ HEADER_ACCEPT_LANGUAGE ] : locale ,
50- } ,
51- } ;
5235
5336 this . get ( {
5437 id : fileId ,
55- requestData : params ,
5638 successCallback : openWithIntegrations => {
5739 const formattedOpenWithData = this . formatOpenWithData ( openWithIntegrations ) ;
5840 const consolidatedOpenWithIntegrations = this . consolidateBoxEditIntegrations ( formattedOpenWithData ) ;
0 commit comments