@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @param string $token The API token to authenticate with |
| 22 | 22 | * @param string $version The API version to use |
| 23 | 23 | * @param string $host The Host URL |
| 24 | - * @param string $client The Client instance that will handle the http request |
|
| 24 | + * @param Client $client The Client instance that will handle the http request |
|
| 25 | 25 | */ |
| 26 | 26 | public function __construct($token, $version = self::V3, $host = "api-ssl.bitly.com", Client $client = null){ |
| 27 | 27 | $this->client = $client; |
@@ -95,6 +95,7 @@ discard block |
||
| 95 | 95 | * Builds the request URL to the Bitly API for a specified action |
| 96 | 96 | * @param string $action The long URL |
| 97 | 97 | * @param string $action The API action |
| 98 | + * @param string $url |
|
| 98 | 99 | * @return string The URL |
| 99 | 100 | */ |
| 100 | 101 | protected function buildRequestUrl($url,$action = "shorten"){ |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace LeadThread\Bitly; |
| 4 | 4 | |
| 5 | +use GuzzleHttp\Client; |
|
| 5 | 6 | use LeadThread\Bitly\Exceptions\BitlyAuthException; |
| 6 | 7 | use LeadThread\Bitly\Exceptions\BitlyErrorException; |
| 7 | 8 | use LeadThread\Bitly\Exceptions\BitlyRateLimitException; |
| 8 | -use GuzzleHttp\Client; |
|
| 9 | 9 | |
| 10 | 10 | class Bitly |
| 11 | 11 | { |