Storing Article Views POST
The DynaMed/DynaMedex API POST /user/article-views endpoint stores one or more sets of viewing information for the user. These sets of viewing information can later be used by the caller to show recent activity for that user. Before you can execute a store article views call, you must have an ID token for the request header. The user ID and product family will be obtained from the token.
Basic Storing of Article Views
Request
POST https://apis.ebsco.com/medsapi-dynamed/v1/user/article-viewsRequest Body
{
"items": [
{
"article": {
"id": "T116388",
"title": "Overview",
"section": {
"title": "Acute Lymphoblastic Leukemia/Lymphome (ALL)"
}
},
"eventType": "OPEN_ITEM",
"prevSearchTerm": "",
"timestamp": "2020-10-19T19:04:03Z"
}
]
}Request Body
| Field | Description |
|---|---|
| article.id | The id of the article that is being updated. |
| title | The title of the article. |
| section | Section of the article that was viewed. |
| eventType | Type of event that is being added. Please use one of the following : OPEN_ITEM, CLOSE_ITEM, or OPEN_SECTION. |
| prevSearchTerm | Search term last executed by the user, if any. |
| timestamp | UTC date and time when the event occurred. |
Response
content-length: 0
date: Tue, 20 Oct 2023 19:10:42 GMTError Response Codes
The DynaMed API POST article views endpoint can return one of the error response codes.
Updated 3 days ago
