Class WC_API_JSON_Handler

WC_API_JSON_Handler implements WC_API_Handler
Package: WooCommerce\API
Author: WooThemes
Located at includes/api/class-wc-api-json-handler.php

Methods summary

public string
# get_content_type( )

Get the content type for the response

Get the content type for the response

Returns

string

Since

2.1

Implementation of

WC_API_Handler::get_content_type()
public array|mixed
# parse_body( string $body )

Parse the raw request body entity

Parse the raw request body entity

Parameters

$body
string
$body the raw request body

Returns

array|mixed

Since

2.1

Implementation of

WC_API_Handler::parse_body()
public string
# generate_response( array $data )

Generate a JSON response given an array of data

Generate a JSON response given an array of data

Parameters

$data
array
$data the response data

Returns

string

Since

2.1

Implementation of

WC_API_Handler::generate_response()

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0