Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SecureCloud-biz/38303503ce5b26c7a2c4 to your computer and use it in GitHub Desktop.
Save SecureCloud-biz/38303503ce5b26c7a2c4 to your computer and use it in GitHub Desktop.
<?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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment