for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* ©[2016] SugarCRM Inc. Licensed by SugarCRM under the Apache 2.0 license.
*/
namespace SugarAPI\SDK\Request;
use SugarAPI\SDK\Request\Abstracts\AbstractRequest;
class POST extends AbstractRequest {
* @inheritdoc
protected static $_TYPE = 'POST';
protected static $_DEFAULT_HEADERS = array(
"Content-Type: application/json"
);
* JSON Encode Body
public function setBody($body){
return parent::setBody(json_encode($body));
}