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

Integration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDailyUsage() 0 5 1
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