Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2018
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 9.65 KB | None | 0 0
  1. Optional({
  2.   "token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjozNDksImV4cCI6MTUzODM0MjM4NiwianRpIjoiSmlGaXdieWJYS0lEVFVrVSJ9.8K7pIpwCyyR1euswZnVuY5L8mBM5VgK6F8eBIMLZiOU",
  3.   "user" : {
  4.     "height_units" : "metric",
  5.     "email" : "redyday2@gmail.com",
  6.     "birth_date" : "1970-01-01",
  7.     "gender" : 1,
  8.     "device" : null,
  9.     "activity" : {
  10.       "distance_km" : 0,
  11.       "steps" : 0,
  12.       "calories_burned" : 0
  13.     },
  14.     "height" : 30,
  15.     "last_name" : "Petrov",
  16.     "weight_units" : "metric",
  17.     "id" : 349,
  18.     "first_name" : "Alex",
  19.     "status" : "program_finished",
  20.     "created_at" : "2018-06-05T11:06:01.930439Z",
  21.     "last_sync" : null,
  22.     "weight" : 30,
  23.     "employee_id" : "123456"
  24.   },
  25.   "progress" : [
  26.     {
  27.       "time_start" : "2018-05-23T00:55:56.478262Z",
  28.       "status" : "finished",
  29.       "module" : {
  30.         "number" : 1,
  31.         "target_work_session_count" : 1,
  32.         "notifications_sound" : false,
  33.         "id" : 1,
  34.         "notifications_vibration" : false,
  35.         "text" : "Analysis"
  36.       },
  37.       "time_end" : "2018-05-24T06:55:56.478262Z",
  38.       "tutorials_progress" : [
  39.  
  40.       ],
  41.       "time_full" : "2018-05-24T06:55:56.478262Z",
  42.       "accepted_work_session_count" : 1,
  43.       "progress" : 100,
  44.       "diagnosis_report" : {
  45.         "accepted_work_session_count" : 1,
  46.         "bends_count" : 217,
  47.         "bad_bends_count" : 170,
  48.         "risk_twist" : 0,
  49.         "risk_bend" : 3048.3291458573176,
  50.         "risk_static" : 1507.0823143030607
  51.       }
  52.     },
  53.     {
  54.       "time_start" : "2018-05-24T06:55:56.478262Z",
  55.       "status" : "finished",
  56.       "module" : {
  57.         "number" : 2,
  58.         "target_work_session_count" : 5,
  59.         "notifications_sound" : true,
  60.         "id" : 2,
  61.         "notifications_vibration" : true,
  62.         "text" : "Link & Learn"
  63.       },
  64.       "time_end" : "2018-05-31T03:55:56.478262Z",
  65.       "tutorials_progress" : [
  66.         {
  67.           "status" : "completed",
  68.           "user_vote" : 1,
  69.           "tutorial" : {
  70.             "id" : 1,
  71.             "title" : "Introduction",
  72.             "order" : 1
  73.           }
  74.         },
  75.         {
  76.           "status" : "completed",
  77.           "user_vote" : 1,
  78.           "tutorial" : {
  79.             "id" : 2,
  80.             "title" : "Motivation",
  81.             "order" : 2
  82.           }
  83.         },
  84.         {
  85.           "status" : "completed",
  86.           "user_vote" : 1,
  87.           "tutorial" : {
  88.             "id" : 3,
  89.             "title" : "Bends",
  90.             "order" : 3
  91.           }
  92.         },
  93.         {
  94.           "status" : "completed",
  95.           "user_vote" : 1,
  96.           "tutorial" : {
  97.             "id" : 4,
  98.             "title" : "Bend & Twist",
  99.             "order" : 4
  100.           }
  101.         },
  102.         {
  103.           "status" : "completed",
  104.           "user_vote" : 1,
  105.           "tutorial" : {
  106.             "id" : 5,
  107.             "title" : "Bend & Hold",
  108.             "order" : 5
  109.           }
  110.         }
  111.       ],
  112.       "time_full" : "2018-05-31T03:55:56.478262Z",
  113.       "accepted_work_session_count" : 5,
  114.       "progress" : 100,
  115.       "diagnosis_report" : {
  116.         "accepted_work_session_count" : 5,
  117.         "bends_count" : 667,
  118.         "bad_bends_count" : 541,
  119.         "risk_twist" : 0,
  120.         "risk_bend" : 9854.6696558470449,
  121.         "risk_static" : 4920.1889470984397
  122.       }
  123.     },
  124.     {
  125.       "time_start" : "2018-05-31T03:55:56.478262Z",
  126.       "status" : "finished",
  127.       "module" : {
  128.         "number" : 3,
  129.         "target_work_session_count" : 5,
  130.         "notifications_sound" : true,
  131.         "id" : 3,
  132.         "notifications_vibration" : true,
  133.         "text" : "Posture & Position"
  134.       },
  135.       "time_end" : "2018-06-07T06:55:56.478262Z",
  136.       "tutorials_progress" : [
  137.         {
  138.           "status" : "completed",
  139.           "user_vote" : 1,
  140.           "tutorial" : {
  141.             "id" : 6,
  142.             "title" : "Arms & Shoulders",
  143.             "order" : 1
  144.           }
  145.         },
  146.         {
  147.           "status" : "completed",
  148.           "user_vote" : 1,
  149.           "tutorial" : {
  150.             "id" : 7,
  151.             "title" : "Position of the Feet",
  152.             "order" : 2
  153.           }
  154.         },
  155.         {
  156.           "status" : "completed",
  157.           "user_vote" : 1,
  158.           "tutorial" : {
  159.             "id" : 8,
  160.             "title" : "Pelvis vs Lower Back",
  161.             "order" : 3
  162.           }
  163.         },
  164.         {
  165.           "status" : "completed",
  166.           "user_vote" : 1,
  167.           "tutorial" : {
  168.             "id" : 9,
  169.             "title" : "Stabilise & Move",
  170.             "order" : 4
  171.           }
  172.         },
  173.         {
  174.           "status" : "completed",
  175.           "user_vote" : 1,
  176.           "tutorial" : {
  177.             "id" : 10,
  178.             "title" : "Adding a Twist",
  179.             "order" : 5
  180.           }
  181.         }
  182.       ],
  183.       "time_full" : "2018-06-07T06:55:56.478262Z",
  184.       "accepted_work_session_count" : 5,
  185.       "progress" : 100,
  186.       "diagnosis_report" : {
  187.         "accepted_work_session_count" : 5,
  188.         "bends_count" : 814,
  189.         "bad_bends_count" : 646,
  190.         "risk_twist" : 0,
  191.         "risk_bend" : 11519.945904228731,
  192.         "risk_static" : 5763.8288077606185
  193.       }
  194.     },
  195.     {
  196.       "time_start" : "2018-06-07T06:55:56.478262Z",
  197.       "status" : "finished",
  198.       "module" : {
  199.         "number" : 4,
  200.         "target_work_session_count" : 5,
  201.         "notifications_sound" : true,
  202.         "id" : 4,
  203.         "notifications_vibration" : true,
  204.         "text" : "Combine the Spine"
  205.       },
  206.       "time_end" : "2018-06-14T15:55:56.478262Z",
  207.       "tutorials_progress" : [
  208.         {
  209.           "status" : "completed",
  210.           "user_vote" : 1,
  211.           "tutorial" : {
  212.             "id" : 11,
  213.             "title" : "Integration",
  214.             "order" : 1
  215.           }
  216.         },
  217.         {
  218.           "status" : "completed",
  219.           "user_vote" : 1,
  220.           "tutorial" : {
  221.             "id" : 12,
  222.             "title" : "Test Yourself",
  223.             "order" : 2
  224.           }
  225.         },
  226.         {
  227.           "status" : "completed",
  228.           "user_vote" : 1,
  229.           "tutorial" : {
  230.             "id" : 13,
  231.             "title" : "Test your Workplace",
  232.             "order" : 3
  233.           }
  234.         },
  235.         {
  236.           "status" : "completed",
  237.           "user_vote" : 1,
  238.           "tutorial" : {
  239.             "id" : 14,
  240.             "title" : "Increased Risks",
  241.             "order" : 4
  242.           }
  243.         },
  244.         {
  245.           "status" : "completed",
  246.           "user_vote" : 1,
  247.           "tutorial" : {
  248.             "id" : 15,
  249.             "title" : "Summary",
  250.             "order" : 5
  251.           }
  252.         }
  253.       ],
  254.       "time_full" : "2018-06-14T15:55:56.478262Z",
  255.       "accepted_work_session_count" : 5,
  256.       "progress" : 100,
  257.       "diagnosis_report" : {
  258.         "accepted_work_session_count" : 5,
  259.         "bends_count" : 693,
  260.         "bad_bends_count" : 546,
  261.         "risk_twist" : 0,
  262.         "risk_bend" : 9928.916850737467,
  263.         "risk_static" : 4994.3229149478047
  264.       }
  265.     },
  266.     {
  267.       "time_start" : "2018-06-14T15:55:56.478262Z",
  268.       "status" : "finished",
  269.       "module" : {
  270.         "number" : 5,
  271.         "target_work_session_count" : 2,
  272.         "notifications_sound" : false,
  273.         "id" : 5,
  274.         "notifications_vibration" : false,
  275.         "text" : "Measure Improvement"
  276.       },
  277.       "time_end" : "2018-06-17T17:55:56.478262Z",
  278.       "tutorials_progress" : [
  279.  
  280.       ],
  281.       "time_full" : "2018-06-17T17:55:56.478262Z",
  282.       "accepted_work_session_count" : 2,
  283.       "progress" : 100,
  284.       "diagnosis_report" : {
  285.         "accepted_work_session_count" : 2,
  286.         "bends_count" : 263,
  287.         "bad_bends_count" : 207,
  288.         "risk_twist" : 0,
  289.         "risk_bend" : 3694.3001505381353,
  290.         "risk_static" : 1794.8370773503493
  291.       }
  292.     }
  293.   ]
  294. })
  295. *******************************
  296. [Request] GET 'https://new-api.soteranalytics.com/users/progress':
  297.  
  298. [Headers]
  299. {
  300.   "Authorization" : "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjozNDksImV4cCI6MTUzODM0MjM4NiwianRpIjoiSmlGaXdieWJYS0lEVFVrVSJ9.8K7pIpwCyyR1euswZnVuY5L8mBM5VgK6F8eBIMLZiOU"
  301. }
  302.  
  303. [Body]
  304. (null)
  305. *******************************
  306. Optional({
  307.   "message" : "Not Found"
  308. })
  309. Optional({
  310.   "height_units" : "metric",
  311.   "email" : "redyday2@gmail.com",
  312.   "birth_date" : "1970-01-01",
  313.   "gender" : 1,
  314.   "device" : null,
  315.   "activity" : {
  316.     "distance_km" : 0,
  317.     "steps" : 0,
  318.     "calories_burned" : 0
  319.   },
  320.   "height" : 30,
  321.   "last_name" : "Petrov",
  322.   "weight_units" : "metric",
  323.   "id" : 349,
  324.   "first_name" : "Alex",
  325.   "status" : "program_finished",
  326.   "created_at" : "2018-06-05T11:06:01.930439Z",
  327.   "last_sync" : null,
  328.   "weight" : 30,
  329.   "employee_id" : "123456"
  330. })
  331. Optional({
  332.   "height_units" : "metric",
  333.   "email" : "redyday2@gmail.com",
  334.   "birth_date" : "1970-01-01",
  335.   "gender" : 1,
  336.   "device" : null,
  337.   "activity" : {
  338.     "distance_km" : 0,
  339.     "steps" : 0,
  340.     "calories_burned" : 0
  341.   },
  342.   "height" : 30,
  343.   "last_name" : "Petrov",
  344.   "weight_units" : "metric",
  345.   "id" : 349,
  346.   "first_name" : "Alex",
  347.   "status" : "program_finished",
  348.   "created_at" : "2018-06-05T11:06:01.930439Z",
  349.   "last_sync" : null,
  350.   "weight" : 30,
  351.   "employee_id" : "123456"
  352. })
  353. *******************************
  354. [Response Error] 401 'https://new-api.soteranalytics.com/users/progress' [1.1776 s]:
  355.  
  356. [Headers]:
  357. {
  358.   "Content-Type" : "application\/json; charset=UTF-8",
  359.   "Content-Length" : "58",
  360.   "Connection" : "keep-alive",
  361.   "Date" : "Mon, 02 Jul 2018 21:19:47 GMT",
  362.   "Server" : "nginx\/1.10.3 (Ubuntu)"
  363. }
  364.  
  365. [Body]
  366. {
  367.   "error" : {
  368.     "message" : "Authentication required",
  369.     "code" : 101
  370.   }
  371. }
  372. *******************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement