The ACCESS-TOKEN
can be obtained in your personal account.
curl -H "Authorization: Bearer ACCESS-TOKEN" https://yiifeed.com/api/v1
curl https://yiifeed.com/api/v1?access-token=ACCESS-TOKEN
curl -u "login:password" https://yiifeed.com/api/v1
Base URL is https://yiifeed.com/api/v1
.
In order to get current user profile, use the following request:
GET /profile
Each news contains the following fields:
id
- ID.title
- Title.text
- Text.link
- Url to the source. status
- It can take the following values: 1
: proposed; 2
: published;3
: rejected.createdAt
- UNIX timestamp indicating when news was created.user
- Creator as user object.siteUrl
- Url to news page on site.In order to get particular news, use the following request:
GET /news/1
In order to list news use the following request:
GET /news
You may pass additional parameters when querying a list:
GET /news?userId=1
id
- ID.title
- String that should be contained within news title.text
- String that should be contained within news text.link
- String that should be contained within url to source. status
- Status of a news as integer. userId
- ID creator of a news.Each user contains the following fields:
id
- ID.username
- Username.status
- It can take the following values: 0
: deleted;10
: active.siteUrl
- Url to user page on site. In order to get particular user, use the following request:
GET /users/1
In order to list user use the following request:
GET /users