PHP Class Instagram\API\Framework\Response

Show file Open project: liamcottle/instagram-sdk-php

Public Methods

Method Description
__construct ( $curl, $data )
getCode ( ) : integer Get Response Code
getContentDispositionFilename ( )
getContentType ( ) : string Get Content Type
getCookies ( ) : array Get Response Cookies
getData ( ) : object Get Response Data
getHeaders ( ) : array Get Response Headers
isJson ( ) : boolean Check if Content Type is Json
isOK ( ) : boolean Check if the Response was 200 OK

Method Details

__construct() public method

public __construct ( $curl, $data )
$curl Curl
$data

getCode() public method

Get Response Code
public getCode ( ) : integer
return integer Response Code

getContentDispositionFilename() public method

getContentType() public method

Get Content Type
public getContentType ( ) : string
return string

getCookies() public method

Get Response Cookies
public getCookies ( ) : array
return array Response Data

getData() public method

Get Response Data
public getData ( ) : object
return object Response Data

getHeaders() public method

Get Response Headers
public getHeaders ( ) : array
return array Response Data

isJson() public method

Check if Content Type is Json
public isJson ( ) : boolean
return boolean

isOK() public method

Check if the Response was 200 OK
public isOK ( ) : boolean
return boolean