You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arcadier edited this page Sep 13, 2019
·
2 revisions
A GET call to the URL returned in the batch resources response_body_url returns a gzipped tar archive of JSON files that contain the results of operations in the following format: More information on Batch Operation [ { "status_code": 200, "operation_id": "my-id", "response": "{...}" },... ]
After a successful export, a gzipped tar archive (json files) holds the results of the exported data. Plugin automatically downloads this file and take care of the json responses.
This function performs the whole operation of managing the response which will be displayed on admin dashboard. function processUserData($clientSecret,$batch_id,$userType,$dir){ getTarFile($batch_id,$clientSecret,$userType,$dir); getJSONFile($batch_id,$dir); extractJSONData($batch_id,$dir); getData($batch_id,$dir); setUserToData($batch_id, $dir, $userType); //added function to modify the json data }