GET https://whocpa.asia/api/news
Returns a list of news
Request parameters
Parameter |
Type |
Description |
from |
date |
The date after which the news appeared |
to |
date |
Date before which the news appeared |
type |
int |
News type: 1 System news2 Offer news4 My offer news
|
Request example
GET https://whocpa.asia/api/news/?
api_key=wrong_account_type
&per_page=10
Response description
Field |
Description |
id |
News ID |
header |
News title |
body |
News text |
type |
News type: 1 System news2 Offer news4 My offer news
|
date_created |
Date of creation |
img |
Image |
is_important |
Is the news important |
date_start |
ACTUAL_SINCE |
date_end |
Relevant to |
is_active |
Is the news active |
read |
Have you read the news |
offer |
If the news is about the offer, contains the object {offer id: offer name} |
stock |
If the news is about a stock, it contains an object {stock id: stock name} |