public function import($locale, $fileUri, $fileType, $fileRealPath, $translationState, $overwrite = false)
    {
        $params['fileUri'] = $fileUri;
        $params['fileType'] = $fileType;
        $params['file'] = $fileRealPath;
        $params['translationState'] = $translationState;
        $params['overwrite'] = $overwrite;

        $requestData = $this->getDefaultRequestData('multipart', $params);

        return $this->sendRequest("/locales/$locale/file/import", $requestData, self::HTTP_METHOD_POST);
    }
public function import($locale, $fileUri, $fileType, $fileRealPath, $translationState, $overwrite = false)
    {
        $params['fileUri'] = $fileUri;
        $params['fileType'] = $fileType;
        $params['file'] = $fileRealPath;
        $params['translationState'] = $translationState;
        $params['overwrite'] = $overwrite;

        $requestData = $this->getDefaultRequestData('multipart', $params);

        return $this->sendRequest("/locales/$locale/file/import", $requestData, self::HTTP_METHOD_POST);
    }
public function import ( $ locale , $ fileUri , $ fileType , $ fileRealPath , $ translationState , $ overwrite = false ) { $ params [ 'fileUri' ] = $ fileUri ; $ params [ 'fileType' ] = $ fileType ; $ params [ 'file' ] = $ fileRealPath ; $ params [ 'translationState' ] = $ translationState ; $ params [ 'overwrite' ] = $ overwrite ; $ requestData = $ this -> getDefaultRequestData ( 'multipart' , $ params ) ; return $ this -> sendRequest ( "/locales/$locale/file/import" , $ requestData , self :: HTTP_METHOD_POST ) ; }
Import files form Service.

@param string $locale
The Smartling locale identifier for the language Smartling is importing.
@param string $fileUri
The Smartling URI for file that contains the original language strings
already uploaded to Smartling.
@param string $fileType
The type of file used for imports. Valid values are: ios, android,
gettext, javaProperties, xml, json, yaml, and csv.
@param string $fileRealPath
Absolute path to the file on your local machine that contains the
translated content,
@param string $translationState
Value indicating the workflow state to import the translations into.
Content will be imported into the language's default workflow.
Could be 'PUBLISHED' or 'POST_TRANSLATION'.
@param boolean $overwrite
(optional) An associative array of additional options, with the following
elements:
- 'overwrite': Boolean indicating whether or not to overwrite existing
translations.

@return string

@throws \Smartling\Exceptions\SmartlingApiException

@see http://docs.smartling.com/pages/API/Translation-Imports/
Import files form Service .