Gravity_Forms\Gravity_Forms\External_API\GF_API_Response
Class GF_API_Response
An abstracted Response class used to standardize the responses we send back from an API Connector. Includes standardized serialization and JSON methods to support saving the class to the Database.
Since: 2.5
Source: includes/external-api/class-gf-api-response.php:15
Details
-
Kind:
class -
Namespace:
Gravity_Forms\Gravity_Forms\External_API -
Implements:
JsonSerializable,Serializable
Properties
| Property | Type | Description |
|---|---|---|
$data | array | The data for this response. |
$status | array | The status for this response. |
$errors | array | The errors (if any) for this response. |
$meta | array | The meta data (if any) for this response. |
Methods
| Method | Description |
|---|---|
get_data() | Get the data for this response |
get_errors() | Get any errors on this response. |
get_status() | Get the response status. |
get_meta() | Get the response meta. |
has_errors() | Determine if the response has any errors. |
get_data_value() | Get a specific piece of the data. |
serialize() | Standardization of the class when serialized and unserialized. Useful for standardizing how it |
__serialize() | Prepares the object for serializing. |
unserialize() | Hydrate the Response data when unserializing. |
__unserialize() | Hydrates the object when unserializing. |
Method Reference
get_data()
public function get_data()
Get the data for this response
Returns
array
Source: includes/external-api/class-gf-api-response.php:87
get_errors()
public function get_errors()
Get any errors on this response.