Completed
Push — master ( 2fa89a...128e80 )
by Ryan
07:18 queued 05:09
created

Integration::getDailyUsage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace SevenShores\Hubspot\Resources;
4
5
class Integration extends Resource
6
{
7
8
    /**
9
     * Check daily API usage
10
     *
11
     * @return \SevenShores\Hubspot\Http\Response
12
     *
13
     * @see https://developers.hubspot.com/docs/methods/check-daily-api-usage
14
     */
15
    public function getDailyUsage()
16
    {
17
        $endpoint = "https://api.hubapi.com/integrations/v1/limit/daily";
18
        return $this->client->request('get', $endpoint);
19
    }
20
}
21