Evaluate the actual HTTP status instead of JSON status codes.
200 : success.
401 : unauthorized (auth creds not correct, cannot login)
403 : Exceeded max access count for api.
403 : forbidden (client can only modify own records, trainer can modifies group's records)
404 : user or entity ID not found
406 : unable to parse params, or params don't make sense or give errors
500 : error occured(any error or crashes)
The API may send the following error codes. Other codes may be added in the future.
rate_limit_exceeded : The rate limit for the App has been exceeded| referral (www.trainerize.com/referral.aspx) | mobile | mobile behaviour | web | web behaviour |
|---|---|---|---|---|
| action=msg.new&recipients=1,2,3 | trainerize://?action=msg.new&recipients=1,2,3 | opens msg dialog and adds userID as recipients | /app/messages/?view=inbox#mode=newMsg&recipients=1,2,3 | open new mesage dialog |
| action=clients.viewNotSetupAfter3Days | trainerize://?action=clients.viewNotSetupAfter3Days | opens client grid | /app/group/client.aspx#mode=clients.viewNotSetupAfter3Days | opens client grid - goes to tag not setup after 3 days |
| action=clients.viewNeedNewTrainingPlan | trainerize://?action=clients.viewNeedNewTrainingPlan | opens client grid | /app/group/client.aspx#mode=clients.viewNeedNewTrainingPlan | opens client grid - goes to tag needs new training plan |
| action=clients.viewNotSignedInLately | trainerize://?action=clients.viewNotSignedInLately | opens client grid | /app/group/client.aspx#mode=clients.viewNotSignedInLately | opens client grid - goes to tag not signed in lately |
| action=clients.viewLastMessaged | trainerize://?action=clients.viewLastMessaged | opens client grid | /app/group/client.aspx#mode=clients.viewLastMessaged | opens client grid - goes to all activated (last message) |
| action=clients.viewActive | trainerize://?action=clients.viewActive | opens client grid | /app/group/client.aspx#mode=clients.viewActive | opens client grid - goes to all activated |
| action=msg.open | trainerize://?action=msg.open&threadID=123 | opens up msg dialog for the thread | not implemented | |
| action=group.open | trainerize://?action=group.open&groupID=123 | opens up group dialog from groupID | not implemented | |
| action=dailyWorkout.open | trainerize://?action=dailyWorkout.open&dailyWorkoutID=123 | (For client)opens up workout dialog | not implemented | |
| not implemented | trainerize://?action=trainerUpdate.calendar | opens up calendar and updates | not implemented | |
| not implemented | trainerize://?action=trainerUpdate.trainingPlan | opens up training plan and updates | not implemented |