Ignore:
Timestamp:
Mar 18, 2015 2:34:17 PM (10 years ago)
Author:
quyenla
Message:

preview

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/www/deploy/20150304/application/libraries/vservices.php

    r787 r788  
    3737                return $this->_curlObj->execute();
    3838        }
    39         public function getPreview () {
     39        public function getPreview ($fileId) {
    4040                $this->_curlObj->create($this->_apiUrl. 'space/preview/');
    4141                $this->_curlObj->option(CURLOPT_BUFFERSIZE, 10);
    4242                $this->_curlObj->options(array(CURLOPT_BUFFERSIZE => 10));
    43                 $post =  $this->_userId ? array('fileid' => 575) : array();
     43                $post =  $this->_userId ? array('fileId' => $fileId,'userId' => $this->_userId) : array();
    4444                $this->_curlObj->post($post);
    4545                return $this->_curlObj->execute();
Note: See TracChangeset for help on using the changeset viewer.