Method |
Description |
|
__construct ( $apiResponse ) |
Constructor, parses return values from CURL in factual::request() |
|
getCode ( ) : string |
Get http status code returned by Factual |
|
getHeaders ( ) : string |
Get http headers returned by Factual |
|
getJson ( ) : string |
Get the entire JSON response from Factual |
|
getRawRequest ( ) : string |
Get url-encoded request string, does not include auth. |
|
getRequest ( ) : string |
Get url-decoded request string, does not include auth. |
|
getResponseCode ( ) : integer |
Get HTTP response code |
|
getResponseHeaders ( ) : array |
Get response headers sent by Factual |
|
getStatus ( ) : string |
Get the status returned by the Factual API server, e.g. "ok". |
|
getTable ( ) : string |
Get table name queried |
|
getVersion ( ) : numeric |
Get the version returned by the Factual API server, e.g. "3". |
|
isEmpty ( ) : boolean |
Checks whether data was returned by Factual server. True if Factual's
response did not include any results records for the query, false otherwise. |
|
size ( ) : integer |
Gets count of elements returned in this page of result set (not total count) |
|
success ( ) |
Test for success (200 status return)
Note this tests for a successful http call, not a successful program operation |
|
toString ( ) : string |
Subclasses of FactualResponse must provide access to the original JSON
representation of Factual's response. Alias for getJson() |
|