Host | api.eksisozluk.com |
Protocol | SSL |
Header | Example |
---|---|
authorization | bearer $token |
Content-type | application/json |
User-agent | okhttp/2.3.0 |
Endpoint | Purpose | Headers | Method | Parameters/Data |
---|---|---|---|---|
/token | Returns bearer token. | content-type: application/x-www-form-urlencoded | GET/POST | {'grant_type': 'password', 'username': 'INSERT_USERNAME', 'password': 'INSERT_PW', 'client_secret': 'INSERT_CS_HERE'} |
/v1/topic/$topic-id | Returns a page of topic. | (optional) accept-encoding: gzip | GET | p=$page_number |
/v1/entry/$entry-id | Returns an entry. | (optional) accept-encoding: gzip | GET | |
/v1/index/popular | Returns a page of popular/gündem topics. | (optional) accept-encoding: gzip | GET | |
/v1/index/feed/entry | Returns entries of people you follow. | (optional) accept-encoding: gzip | GET | |
/v1/index/feed/favorites | Returns favorites of people you follow. | (optional) accept-encoding: gzip | GET | |
/v1/index/caylak | Returns çaylak topics. | (optional) accept-encoding: gzip | GET | |
/v1/index/todayinpast/$year | Returns todayinpast/tarihte bugün topics from $year (e.g. /v1/index/todayinpast/1999). | (optional) accept-encoding: gzip | GET | |
/v1/index/olay | Returns 'olan biten'. | (optional) accept-encoding: gzip | GET | |
/v1/message/send | Posts message to a user. | content-type: application/x-www-form-urlencoded | POST | {'To': RECIPIENT, 'Message': MESSAGE} |
/v1/message | Returns messages. | (optional) accept-encoding: gzip | GET | |
/v1/user/$username | Returns $username's profile (e.g. /v1/user/ssg). | (optional) accept-encoding: gzip | GET |
Status Code | Explanation |
---|---|
200 | OK. |
500 | Error in parameters. |
404 | The server didn't find the resource you tried to access. |
503 | Back-end server is at capacity. |