'your access token', 'refresh_token' => 'your refresh token'); $wrap = new CS_REST_Campaigns(NULL, $auth); $template_content = array( 'Singlelines' => array( array( 'Content' => 'This is a heading', 'Href' => 'http://example.com/' ) ), 'Multilines' => array( array( 'Content' => '
This is example
multiline content...
' ) ), 'Images' => array( array( 'Content' => 'http://example.com/image.png', 'Alt' => 'This is alt text for an image', 'Href' => 'http://example.com/' ) ), 'Repeaters' => array( array( 'Items' => array( array( 'Layout' => 'My layout', 'Singlelines' => array( array( 'Content' => 'This is a repeater heading', 'Href' => 'http://example.com/' ) ), 'Multilines' => array( array( 'Content' => 'This is example
multiline content...
' ) ), 'Images' => array( array( 'Content' => 'http://example.com/image.png', 'Alt' => 'This is alt text for a repeater image', 'Href' => 'http://example.com/' ) ) ) ) ) ) ); # $template_content as defined above would be used to fill the content of # a template with markup similar to the following: # # #";
var_dump($result->response);
echo '';
}