SecureCloud-biz
7/13/2014 - 12:17 AM

parse_php_hide_sensitive_info.php

<?php

require_once( 'parse/parse.php' );

$parseQuery = new parseQuery('_User');
$result = $parseQuery->find();
foreach ( $result->results as $user ) {
    unset( $user->email );
    if ( isset( $user->authData->facebook ) ) {
        unset( $user->authData->facebook->access_token );
    }
}

// display the final data in json format
echo json_encode( $result );