src/Showpad/Client.php
public function assetsAdd($file)
    {
        $resource = '/assets.json';

        $parameters = array(
            'file' => '@' . $file,
        );

        // Create request
        $data = $this->auth->request(
            'POST',
            $resource,
            $parameters
        );

        return $data;
    }
public function assetsAdd($file)
    {
        $resource = '/assets.json';

        $parameters = array(
            'file' => '@' . $file,
        );

        // Create request
        $data = $this->auth->request(
            'POST',
            $resource,
            $parameters
        );

        return $data;
    }
public function assetsAdd ( $ file ) { $ resource = '/assets.json' ; $ parameters = array ( 'file' => '@' . $ file , ) ; // Create request $ data = $ this -> auth -> request ( 'POST' , $ resource , $ parameters ) ; return $ data ; }
Add an asset

POST /assets.json

@param string $file The path to the file

@return array
Add an asset