public function pubcall($uri, $auth_header, $items)
    {
        $uri .= '/publish/';
        $content = array();
        $content['items'] = $items;
        $headers = array('Content-Type: application/json');
        if (!is_null($auth_header))
            $headers[] = 'Authorization: ' . $auth_header;
        $results = $this->make_http_request($uri, $headers, $content);
        $this->verify_http_status_code($results[0], $results[1]);
    }
public function pubcall($uri, $auth_header, $items)
    {
        $uri .= '/publish/';
        $content = array();
        $content['items'] = $items;
        $headers = array('Content-Type: application/json');
        if (!is_null($auth_header))
            $headers[] = 'Authorization: ' . $auth_header;
        $results = $this->make_http_request($uri, $headers, $content);
        $this->verify_http_status_code($results[0], $results[1]);
    }
public function pubcall ( $ uri , $ auth_header , $ items ) { $ uri .= '/publish/' ; $ content = array ( ) ; $ content [ 'items' ] = $ items ; $ headers = array ( 'Content-Type: application/json' ) ; if ( ! is_null ( $ auth_header ) ) $ headers [ ] = 'Authorization: ' . $ auth_header ; $ results = $ this -> make_http_request ( $ uri , $ headers , $ content ) ; $ this -> verify_http_status_code ( $ results [ 0 ] , $ results [ 1 ] ) ; }
header, and a list of items to publish.
header and a list of items to publish .