src/Asana.php
/**
     * createWebhook
     *
     * Creates a webhook with asana based
     * Requires the resource to link with (Workspace, Project)
     * and a Target URL for your API/Application.
     *
     * Note: Will send a handshake to your Application with a
     * X-Security-Header that must be returned with a 200
     * Response to verify the webhook creation. Asana may then
     * follow up with a "heartbeat" request that will contain an
     * empty "events" JSON object and a X-Signature-Header.
     *
     * @param $resourceId
     * @param $targetUrl
     *
     * @return null|string
     * @author Olly Warren https://github.com/ollywarren
     * @version 1.0
     */
createWebhook
Creates a webhook with asana based
Requires the resource to link with (Workspace, Project)
and a Target URL for your API/Application.

Will send a handshake to your Application with a
X-Security-Header that must be returned with a 200
Response to verify the webhook creation. Asana may then
follow up with a "heartbeat" request that will contain an
empty "events" JSON object and a X-Signature-Header.

@param $resourceId
@param $targetUrl


createWebhook Creates a webhook with asana based Requires the resource to link with ( Workspace Project ) and a Target URL for your API / Application . Will send a handshake to your Application with a X - Security - Header that must be returned with a 200 Response to verify the webhook creation . Asana may then follow up with a " heartbeat " request that will contain an empty " events " JSON object and a X - Signature - Header . @param $resourceId @param $targetUrl
public function createWebhook($resourceId, $targetUrl)
    {
        $data = [
            'data' => [
                'resource'  => $resourceId,
                'target'    => $targetUrl
            ]
        ];
        return $this->curl->post("webhooks", $data);
    }
public function createWebhook ( $ resourceId , $ targetUrl ) { $ data = [ 'data' => [ 'resource' => $ resourceId , 'target' => $ targetUrl ] ] ; return $ this -> curl -> post ( " webhooks " , $ data ) ; }
createWebhook
 Creates a webhook with asana based
 Requires the resource to link with (Workspace, Project)
 and a Target URL for your API/Application.
createWebhook Creates a webhook with asana based Requires the resource to link with ( Workspace Project ) and a Target URL for your API / Application .
//Define the Data array to include in the request