Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 2.51 KB

RecentsApi.md

File metadata and controls

79 lines (55 loc) · 2.51 KB

Pipedrive\RecentsApi

All URIs are relative to https://api.pipedrive.com/v1.

Method HTTP request Description
getRecents() GET /recents Get recents

getRecents()

getRecents($since_timestamp, $items, $start, $limit): \Pipedrive\Model\GetRecents

Get recents

Returns data about all recent changes occurred after the given timestamp.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: api_key
$config = (new Pipedrive\Configuration())->setApiKey('api_token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = (new Pipedrive\Configuration())->setApiKeyPrefix('api_token', 'Bearer');

// Configure OAuth2 access token for authorization: oauth2
$config = (new Pipedrive\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Pipedrive\Api\RecentsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$since_timestamp = 'since_timestamp_example'; // string | The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS
$items = 'items_example'; // string | Multiple selection of item types to include in the query (optional)
$start = 0; // int | Pagination start
$limit = 56; // int | Items shown per page

try {
    $result = $apiInstance->getRecents($since_timestamp, $items, $start, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RecentsApi->getRecents: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
since_timestamp string The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS
items string Multiple selection of item types to include in the query (optional) [optional]
start int Pagination start [optional] [default to 0]
limit int Items shown per page [optional]

Return type

\Pipedrive\Model\GetRecents

Authorization

api_key, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]