Export

Export

GET /v1/{access-token}/export
                            
use \FormSynergy\Init as FS;

$api = FS::Api()->Load($profileid);

// Create a new resource storage for 'data'
$resource = FS::Resource('data');

/** 
 * Available exports:
 *
 * profile, leads, website, strategies, modules, and objectives
 *
 **/
$api->Export([
        'profile', 'modules' ,'websites', 
    ])
    ->As('Export');
 
// Store data in resource storage as exported
$resource->Store( 'exported' )->Data( $api->_Export() );

                            
                            
{
    "profile": [{... }],
    "modules": [{... }, {... }, {... }],
    "websites": [{... }, {... }, {... }]
}