Interface WC_API_Handler

Direct known implementers

WC_API_JSON_Handler, WC_API_XML_Handler

Package: WooCommerce\API
Author: WooThemes
Located at includes/api/interface-wc-api-handler.php

Methods summary

public string
# get_content_type( )

Get the content type for the response

Get the content type for the response

This should return the proper HTTP content-type for the response

Returns

string

Since

2.1
public array
# parse_body( string $data )

Parse the raw request body entity into an array

Parse the raw request body entity into an array

Parameters

$data
string
$data

Returns

array

Since

2.1
public string
# generate_response( array $data )

Generate a response from an array of data

Generate a response from an array of data

Parameters

$data
array
$data

Returns

string

Since

2.1

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0