PHP 클래스 OAuth2\HttpClient

파일 보기 프로젝트 열기: vznet/oauth_2.0_client_php

공개 메소드들

메소드 설명
__construct ( string $url, string $method, string $parameters = null, array $header = [] )
execute ( ) executes the curl request
getHeaders ( ) : array
getResponse ( ) : string
parseStringToArray ( string $string, string $firstDelimiter, string $secondDelimiter ) : array parses a string with two delimiters to an array
setDebug ( boolean $debug )

메소드 상세

__construct() 공개 메소드

public __construct ( string $url, string $method, string $parameters = null, array $header = [] )
$url string
$method string
$parameters string
$header array any additional header which should be set

execute() 공개 메소드

executes the curl request
public execute ( )

getHeaders() 공개 메소드

public getHeaders ( ) : array
리턴 array

getResponse() 공개 메소드

public getResponse ( ) : string
리턴 string

parseStringToArray() 공개 정적인 메소드

example: param1=value1¶m2=value2 will result with delimiters & and = to array( 'param1' => 'value1', 'param2' => 'value2', )
public static parseStringToArray ( string $string, string $firstDelimiter, string $secondDelimiter ) : array
$string string
$firstDelimiter string
$secondDelimiter string
리턴 array

setDebug() 공개 메소드

public setDebug ( boolean $debug )
$debug boolean