View Taken Activity Cards
An overview of the View Taken Activity Cards endpoint.
Endpoint Description
The View Taken Activity Cards endpoint allows retrieval of the final cards selected and ranked by users for a specific activity. It provides details on the order, category, and content of each card associated with the user activity.
HTTP Method
GET /api/v1/view-taken-activity-cards/{userActivityId}
Headers
Content-Type: application/json
Accept: application/json
Authorization: Bearer {token}
URL Parameters
userActivityId (integer): The unique identifier of the taken activity. This parameter is required to specify the user activity being queried.
Data Dictionary for Response Fields
The response for the "View Taken Activity Cards" endpoint includes detailed information about each card associated with the specified user activity. Below is a breakdown of each field in the response data:
user_activity_id (integer): Unique identifier for the user activity.
cards (array): Array of cards associated with the user activity.
card_id (integer): Unique identifier for a card, indicative of its order.
model_category (string): The model category of the card.
card_detail (string): The detailed content displayed on the card.
Request Examples
curl --request GET \
--get "https://api.r1learning.com/api/v1/view-taken-activity-cards/15" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {token}"
Response Examples
{
"error": 0,
"message": "",
"userActivityId": "6652",
"data": {
"user_activity_id": 6652,
"cards": [
{
"card_id": 1,
"model_category": "Contemplation",
"card_detail": "I often think I should start this behavior"
},
{
"card_id": 2,
"model_category": "Preparation",
"card_detail": "I have recently told others about my plans to start"
},
{
"card_id": 3,
"model_category": "Contemplation",
"card_detail": "I can see the benefits of starting more clearly"
},
{
"card_id": 4,
"model_category": "Pre Contemplation",
"card_detail": "I haven't experienced any negative consequences as a result of not starting this behavior"
},
{
"card_id": 5,
"model_category": "Pre Contemplation",
"card_detail": "I don't think I could start even if I wanted to"
},
{
"card_id": 6,
"model_category": "Action",
"card_detail": "I am taking steps to do this behavior each day"
},
{
"card_id": 7,
"model_category": "Preparation",
"card_detail": "I am seeking resources that will help me get started"
},
{
"card_id": 8,
"model_category": "Action",
"card_detail": "I am asking others for help"
},
{
"card_id": 9,
"model_category": "Pre Contemplation",
"card_detail": "I am not interested in starting this behavior right now"
},
{
"card_id": 10,
"model_category": "Action",
"card_detail": "I am working to reduce my stress and anxiety to help me stay on track"
}
]
}
}
Notes
Authorization Required: Ensure the provided Bearer token is valid and has sufficient privileges to access the company activity details.
Response Handling: Paginate responses to manage data effectively, especially when dealing with large datasets.
Last updated