You are here

public function SmsParserBase::getResponse in SMS Framework 7

Retrieves the response if any.

Some SMS provider modules offer a HTTP response content. Lacking an HTTP response object this just provides simple options.

Return value

array Array of header values keyed by header name and body. Example:


    array('headers' => array('name' => 'value), 'body' => 'text');
  

Overrides SmsParserInterface::getResponse

File

./sms.parser.inc, line 184

Class

SmsParserBase
Base implementation of SmsParserInterface().

Code

public function getResponse() {
  return array(
    'headers' => array(
      // Even though we should have a body entity to return.
      'Status' => '202 Accepted',
    ),
    'body' => '',
  );
}