Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Optional({
- "token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjozNDksImV4cCI6MTUzODM0MjM4NiwianRpIjoiSmlGaXdieWJYS0lEVFVrVSJ9.8K7pIpwCyyR1euswZnVuY5L8mBM5VgK6F8eBIMLZiOU",
- "user" : {
- "height_units" : "metric",
- "email" : "redyday2@gmail.com",
- "birth_date" : "1970-01-01",
- "gender" : 1,
- "device" : null,
- "activity" : {
- "distance_km" : 0,
- "steps" : 0,
- "calories_burned" : 0
- },
- "height" : 30,
- "last_name" : "Petrov",
- "weight_units" : "metric",
- "id" : 349,
- "first_name" : "Alex",
- "status" : "program_finished",
- "created_at" : "2018-06-05T11:06:01.930439Z",
- "last_sync" : null,
- "weight" : 30,
- "employee_id" : "123456"
- },
- "progress" : [
- {
- "time_start" : "2018-05-23T00:55:56.478262Z",
- "status" : "finished",
- "module" : {
- "number" : 1,
- "target_work_session_count" : 1,
- "notifications_sound" : false,
- "id" : 1,
- "notifications_vibration" : false,
- "text" : "Analysis"
- },
- "time_end" : "2018-05-24T06:55:56.478262Z",
- "tutorials_progress" : [
- ],
- "time_full" : "2018-05-24T06:55:56.478262Z",
- "accepted_work_session_count" : 1,
- "progress" : 100,
- "diagnosis_report" : {
- "accepted_work_session_count" : 1,
- "bends_count" : 217,
- "bad_bends_count" : 170,
- "risk_twist" : 0,
- "risk_bend" : 3048.3291458573176,
- "risk_static" : 1507.0823143030607
- }
- },
- {
- "time_start" : "2018-05-24T06:55:56.478262Z",
- "status" : "finished",
- "module" : {
- "number" : 2,
- "target_work_session_count" : 5,
- "notifications_sound" : true,
- "id" : 2,
- "notifications_vibration" : true,
- "text" : "Link & Learn"
- },
- "time_end" : "2018-05-31T03:55:56.478262Z",
- "tutorials_progress" : [
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 1,
- "title" : "Introduction",
- "order" : 1
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 2,
- "title" : "Motivation",
- "order" : 2
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 3,
- "title" : "Bends",
- "order" : 3
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 4,
- "title" : "Bend & Twist",
- "order" : 4
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 5,
- "title" : "Bend & Hold",
- "order" : 5
- }
- }
- ],
- "time_full" : "2018-05-31T03:55:56.478262Z",
- "accepted_work_session_count" : 5,
- "progress" : 100,
- "diagnosis_report" : {
- "accepted_work_session_count" : 5,
- "bends_count" : 667,
- "bad_bends_count" : 541,
- "risk_twist" : 0,
- "risk_bend" : 9854.6696558470449,
- "risk_static" : 4920.1889470984397
- }
- },
- {
- "time_start" : "2018-05-31T03:55:56.478262Z",
- "status" : "finished",
- "module" : {
- "number" : 3,
- "target_work_session_count" : 5,
- "notifications_sound" : true,
- "id" : 3,
- "notifications_vibration" : true,
- "text" : "Posture & Position"
- },
- "time_end" : "2018-06-07T06:55:56.478262Z",
- "tutorials_progress" : [
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 6,
- "title" : "Arms & Shoulders",
- "order" : 1
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 7,
- "title" : "Position of the Feet",
- "order" : 2
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 8,
- "title" : "Pelvis vs Lower Back",
- "order" : 3
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 9,
- "title" : "Stabilise & Move",
- "order" : 4
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 10,
- "title" : "Adding a Twist",
- "order" : 5
- }
- }
- ],
- "time_full" : "2018-06-07T06:55:56.478262Z",
- "accepted_work_session_count" : 5,
- "progress" : 100,
- "diagnosis_report" : {
- "accepted_work_session_count" : 5,
- "bends_count" : 814,
- "bad_bends_count" : 646,
- "risk_twist" : 0,
- "risk_bend" : 11519.945904228731,
- "risk_static" : 5763.8288077606185
- }
- },
- {
- "time_start" : "2018-06-07T06:55:56.478262Z",
- "status" : "finished",
- "module" : {
- "number" : 4,
- "target_work_session_count" : 5,
- "notifications_sound" : true,
- "id" : 4,
- "notifications_vibration" : true,
- "text" : "Combine the Spine"
- },
- "time_end" : "2018-06-14T15:55:56.478262Z",
- "tutorials_progress" : [
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 11,
- "title" : "Integration",
- "order" : 1
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 12,
- "title" : "Test Yourself",
- "order" : 2
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 13,
- "title" : "Test your Workplace",
- "order" : 3
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 14,
- "title" : "Increased Risks",
- "order" : 4
- }
- },
- {
- "status" : "completed",
- "user_vote" : 1,
- "tutorial" : {
- "id" : 15,
- "title" : "Summary",
- "order" : 5
- }
- }
- ],
- "time_full" : "2018-06-14T15:55:56.478262Z",
- "accepted_work_session_count" : 5,
- "progress" : 100,
- "diagnosis_report" : {
- "accepted_work_session_count" : 5,
- "bends_count" : 693,
- "bad_bends_count" : 546,
- "risk_twist" : 0,
- "risk_bend" : 9928.916850737467,
- "risk_static" : 4994.3229149478047
- }
- },
- {
- "time_start" : "2018-06-14T15:55:56.478262Z",
- "status" : "finished",
- "module" : {
- "number" : 5,
- "target_work_session_count" : 2,
- "notifications_sound" : false,
- "id" : 5,
- "notifications_vibration" : false,
- "text" : "Measure Improvement"
- },
- "time_end" : "2018-06-17T17:55:56.478262Z",
- "tutorials_progress" : [
- ],
- "time_full" : "2018-06-17T17:55:56.478262Z",
- "accepted_work_session_count" : 2,
- "progress" : 100,
- "diagnosis_report" : {
- "accepted_work_session_count" : 2,
- "bends_count" : 263,
- "bad_bends_count" : 207,
- "risk_twist" : 0,
- "risk_bend" : 3694.3001505381353,
- "risk_static" : 1794.8370773503493
- }
- }
- ]
- })
- *******************************
- [Request] GET 'https://new-api.soteranalytics.com/users/progress':
- [Headers]
- {
- "Authorization" : "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjozNDksImV4cCI6MTUzODM0MjM4NiwianRpIjoiSmlGaXdieWJYS0lEVFVrVSJ9.8K7pIpwCyyR1euswZnVuY5L8mBM5VgK6F8eBIMLZiOU"
- }
- [Body]
- (null)
- *******************************
- Optional({
- "message" : "Not Found"
- })
- Optional({
- "height_units" : "metric",
- "email" : "redyday2@gmail.com",
- "birth_date" : "1970-01-01",
- "gender" : 1,
- "device" : null,
- "activity" : {
- "distance_km" : 0,
- "steps" : 0,
- "calories_burned" : 0
- },
- "height" : 30,
- "last_name" : "Petrov",
- "weight_units" : "metric",
- "id" : 349,
- "first_name" : "Alex",
- "status" : "program_finished",
- "created_at" : "2018-06-05T11:06:01.930439Z",
- "last_sync" : null,
- "weight" : 30,
- "employee_id" : "123456"
- })
- Optional({
- "height_units" : "metric",
- "email" : "redyday2@gmail.com",
- "birth_date" : "1970-01-01",
- "gender" : 1,
- "device" : null,
- "activity" : {
- "distance_km" : 0,
- "steps" : 0,
- "calories_burned" : 0
- },
- "height" : 30,
- "last_name" : "Petrov",
- "weight_units" : "metric",
- "id" : 349,
- "first_name" : "Alex",
- "status" : "program_finished",
- "created_at" : "2018-06-05T11:06:01.930439Z",
- "last_sync" : null,
- "weight" : 30,
- "employee_id" : "123456"
- })
- *******************************
- [Response Error] 401 'https://new-api.soteranalytics.com/users/progress' [1.1776 s]:
- [Headers]:
- {
- "Content-Type" : "application\/json; charset=UTF-8",
- "Content-Length" : "58",
- "Connection" : "keep-alive",
- "Date" : "Mon, 02 Jul 2018 21:19:47 GMT",
- "Server" : "nginx\/1.10.3 (Ubuntu)"
- }
- [Body]
- {
- "error" : {
- "message" : "Authentication required",
- "code" : 101
- }
- }
- *******************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement