wp-user-avatar
/
third-party
/
vendor
/
stripe
/
stripe-php
/
lib
/
HttpClient
/
ClientInterface.php
ClientInterface.php
2 months ago
CurlClient.php
2 months ago
StreamingClientInterface.php
2 months ago
ClientInterface.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePressVendor\Stripe\HttpClient; |
| 4 | |
| 5 | interface ClientInterface |
| 6 | { |
| 7 | /** |
| 8 | * @param 'delete'|'get'|'post' $method The HTTP method being used |
| 9 | * @param string $absUrl The URL being requested, including domain and protocol |
| 10 | * @param array $headers Headers to be used in the request (full strings, not KV pairs) |
| 11 | * @param array $params KV pairs for parameters. Can be nested for arrays and hashes |
| 12 | * @param bool $hasFile Whether or not $params references a file (via an @ prefix or |
| 13 | * CURLFile) |
| 14 | * @param 'v1'|'v2' $apiMode Specifies if this is a v1 or v2 request |
| 15 | * |
| 16 | * @throws \Stripe\Exception\ApiConnectionException |
| 17 | * @throws \Stripe\Exception\UnexpectedValueException |
| 18 | * |
| 19 | * @return array an array whose first element is raw request body, second |
| 20 | * element is HTTP status code and third array of HTTP headers |
| 21 | */ |
| 22 | public function request($method, $absUrl, $headers, $params, $hasFile, $apiMode = 'v1'); |
| 23 | } |
| 24 |