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