<?php /** * @copyright 2001-2015 Kayako * @license https://www.freebsd.org/copyright/freebsd-license.html * @link https://github.com/kayako/basecamp-integration */ /** * Base class for oauth2 grant type * * @author Atul Atri */ SWIFT_Loader::LoadInterface('OAuth2:OAuth2GrantType'); SWIFT_Loader::LoadLibrary('OAuth2:OAuth2Exception'); SWIFT_Loader::LoadLibrary('HTTP:HttpCurl'); class SWIFT_OAuth2GrantTypeBase extends SWIFT_Library implements SWIFT_OAuth2GrantType_Interface { protected $_paramNames = array(); /** * Constructor * * @author Atul Atri * * @throws SWIFT_Exception */ public function __construct() { parent::__construct(); return true; } /**
<?php /** * @copyright 2001-2015 Kayako * @license https://www.freebsd.org/copyright/freebsd-license.html * @link https://github.com/kayako/jira-integration */ SWIFT_Loader::LoadLibrary('HTTP:HTTPBase'); SWIFT_Loader::LoadInterface('HTTP:HTTPAdapter', false, false); /** * Curl wrapper for SWIFT_HTTP family of classes * * @author Abhinav Kumar */ class SWIFT_HTTPAdapter_Curl extends SWIFT_HTTPBase implements SWIFT_HTTPAdapter_Interface { //Configuration Options /** * Determines whether or not the requests should follow redirects * * @var bool */ private $_followRedirects = true; /** * Ascociative array of Request Headers * * @todo some refactoring to see if we can have only one Headers array * @var array */ private $_headers = array(); /**