1 2 /* 3 Run with -box_refresh_token XXX to allow access to Box or else it will prompt you to enter log in information for Box. 4 5 Have not yet written the code to actually upload files 6 7 */ 8 9 #include <petscsys.h> 10 11 int main(int argc, char **argv) 12 { 13 char access_token[512], new_refresh_token[512]; 14 15 PetscFunctionBeginUser; 16 PetscCall(PetscInitialize(&argc, &argv, NULL, NULL)); 17 PetscCall(PetscBoxRefresh(PETSC_COMM_WORLD, NULL, access_token, new_refresh_token, sizeof(access_token))); 18 PetscCall(PetscFinalize()); 19 return 0; 20 } 21 22 /*TEST 23 24 build: 25 requires: ssl saws 26 27 test: 28 TODO: determine how to run this test without making a box refresh token public 29 30 TEST*/ 31