PHP code example of wedocreatives / wrike-php-guzzle
1. Go to this page and download the library: Download wedocreatives/wrike-php-guzzle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wedocreatives / wrike-php-guzzle example snippets
/**
* Standard usage
*/
$client = ClientFactory::create();
/**
* @param string $requestMethod GET/POST/PUT/DELETE/UPLOAD
* @param string $path full path to REST resource without domain, ex. 'contacts'
* @param array $params optional params for GET/POST request
* @param string $accessToken Access Token for Wrike access
*
* @see \wedocreatives\WrikePhpLibrary\Enum\Api\RequestMethodEnum
* @see \wedocreatives\WrikePhpLibrary\Enum\Api\RequestPathFormatEnum
*
* @return \Psr\Http\Message\ResponseInterface
*/
$client->executeRequestForParams($requestMethod, $path, $params, $accessToken);
// + all methods from \GuzzleHttp\Client
bash
git clone [email protected]:wedocreatives/wrike-php-guzzle.git
cd wrike-php-guzzle