RenrenRestApiService::rr_post_fopen PHP Method

rr_post_fopen() public method

public rr_post_fopen ( )
    public function rr_post_fopen()
    {
        $args = func_get_args();
        $this->_currentMethod = trim($args[0]);
        #Method
        $this->paramsMerge($args[1])->getCallId()->setConfigToMapping()->generateSignature();
        #Invoke
        unset($args);
        return $this->_POST_FOPEN($this->_config->APIURL, $this->_params);
    }

Usage Example

Example #1
0
 /**
  * renren发布一条新鲜事
  */
 public function addRenrenFeed($bindinfo, $params)
 {
     include_once BasePath . DS . 'api' . DS . 'snsapi' . DS . 'renren' . DS . 'class' . DS . 'RenrenRestApiService.class.php';
     $params_renren = array();
     $params_renren['access_token'] = $bindinfo['snsbind_accesstoken'];
     $params_renren['name'] = $params['title'];
     $params_renren['description'] = $params['comment'];
     $params_renren['url'] = $params['url'];
     $params_renren['image'] = $params['images'];
     $renren_obj = new RenrenRestApiService();
     $renren_obj->rr_post_fopen('feed.publishFeed', $params_renren);
 }