Result

View as Markdown

Result

Response as result

get

Get the keys value from the object

NameTypeDescription
key (required)string
use Contentstack\Contentstack;


$stack = Contentstack::Stack('api_key', 'delivery_token', 'environment');

$result = $stack->sync({'init'=> true});


$json = $result->get('key');

toJSON

To convert result object to json

use Contentstack\Contentstack;


$stack = Contentstack::Stack('api_key', 'delivery_token', 'environment');

$result = $stack->sync({'init'=> true});


$json = $result->toJSON();