public function getAPIByType($type)
    {
        switch ($type) {
            case 'news_image':
                $api = self::API_NEWS_IMAGE_UPLOAD;
                break;
            default:
                $api = self::API_UPLOAD;
        }

        return $api;
    }
public function getAPIByType($type)
    {
        switch ($type) {
            case 'news_image':
                $api = self::API_NEWS_IMAGE_UPLOAD;
                break;
            default:
                $api = self::API_UPLOAD;
        }

        return $api;
    }
public function getAPIByType ( $ type ) { switch ( $ type ) { case 'news_image' : $ api = self :: API_NEWS_IMAGE_UPLOAD ; break ; default : $ api = self :: API_UPLOAD ; } return $ api ; }
Get API by type.

@param string $type

@return string
Get API by type .