SevenShores\Hubspot\Resources\Workflows::create PHP 메소드

create() 공개 메소드

Create a new workflow.
public create ( array $workflow ) : Response
$workflow array The workflow properties
리턴 SevenShores\Hubspot\Http\Response
    function create($workflow)
    {
        $endpoint = "https://api.hubapi.com/automation/v2/workflows";
        $options['json'] = $workflow;
        return $this->client->request('post', $endpoint, $options);
    }