public function create(Theme &$theme)
    {
        $data = $theme->exportData();
        $endpoint = '/admin/themes.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'theme' => $data
            )
        );
        $theme->setData($response['theme']);
    }
public function create(Theme &$theme)
    {
        $data = $theme->exportData();
        $endpoint = '/admin/themes.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'theme' => $data
            )
        );
        $theme->setData($response['theme']);
    }
public function create ( Theme & $ theme ) { $ data = $ theme -> exportData ( ) ; $ endpoint = '/admin/themes.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'theme' => $ data ) ) ; $ theme -> setData ( $ response [ 'theme' ] ) ; }
Create a new theme

@link   https://help.shopify.com/api/reference/theme#create
@param  Theme $theme
@return void
Create a new theme