Source of file RestClientInterface.php
Size: 1,507 Bytes - Last Modified: 2021-12-23T10:20:09+00:00
/var/www/docs.ssmods.com/process/src/src/Ctct/Util/RestClientInterface.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | <?php namespace Ctct\Util; /** * Interface for issuing HTTP requests * * @package Util * @author Constant Contact */ interface RestClientInterface { /** * Make an Http GET request * @param $url - request url * @param array $headers - array of all http headers to send * @return array - array of the response body, http info, and error (if one exists) */ public function get($url, array $headers); /** * Make an Http POST request * @param $url - request url * @param array $headers - array of all http headers to send * @param $data - data to send with request * @return array - array of the response body, http info, and error (if one exists) */ public function post($url, array $headers = array(), $data = null); /** * Make an Http PUT request * @param $url - request url * @param array $headers - array of all http headers to send * @param $data - data to send with request * @return array - array of the response body, http info, and error (if one exists) */ public function put($url, array $headers = array(), $data = null); /** * Make an Http DELETE request * @param $url - request url * @param array $headers - array of all http headers to send * @param $data - data to send with request * @return array - array of the response body, http info, and error (if one exists) */ public function delete($url, array $headers = array()); } |