private Map < String , String > toPayload ( Map < String , Object > data ) throws LocalOperationException { Map < String , Object > dataClone = new HashMap < String , Object > ( data ) ; dataClone . put ( "auth" , getAuthData ( ) ) ; Map < String , String > payload = new HashMap < String , String > ( ) ; payload . put ( "params" , jsonifyData ( dataClone ) ) ; if ( transloadit . shouldSignRequest ) { payload . put ( "signature" , getSignature ( jsonifyData ( dataClone ) ) ) ; } return payload ; }
Returns data tree structured as Transloadit expects it .