Learn how to integrate our APIs into your application
The RekoMile API gives you access to pretty much all the features you can use on our site and lets you extend them for use in your application. It strives to be RESTful and is organized around the main resources you would be interacting with - with a few notable exceptions.
We provide sample API calls next to each method using cURL. All you need to do is insert your specific parameters, and you can test the calls from the command line. See this tutorial on using cURL with APIs.
Both request body data and response data are formatted as JSON. Content type for responses will always be application/json
. Generally, all responses will be in the following format:
{
"sucess": [boolean], // Only true if the details provided could be processed and no error occured while processing
"message": [string], // Explains why status is false... Entirely informational. Please only log this but do not use for your checks
"data": [object] // contains actionable result of processing if present
}
While we generally recommend that developers use HTTP status codes to determine the result of an API call, we have provided a handy success
key to let you know upfront if the request was successful or not.
The message key is a string which will contain a summary of the response and its status. For instance when trying to retrieve a list of posts, message might read “Posts retrieved”. In the event of an error, the message key will contain a description of the error as with the authorization header situation above. This is the only key that is universal across requests.
The data key is where you want to look at for the result of your request. It can either be an object, or an array depending on the request made. For instance, a request to retrieve a single post will return a post object in the data key, while the key would be an array of customers if a list is requested instead.
The Blog Posts API allows you get posts on your integration
Get list of all posts in RekoMile
Content-Type | String | Set value to application/json |
limit | Integer | Specify how many records you want to retrieve per page. If not specify we use a default value of 10. |
offset | Integer | Specify exactly what page you want to retrieve. If not specify we use a default value of 0. |
curl https://rekomile.com/api/v1/posts/all
-H "Content-Type: application/json"
-d '{ limit: "10", offset: "0" }'
-X GET
{
"status":true,
"message":"Posts retrieved",
"count":1,
"data":[
{
"id":"7",
"title":"Wizkid new album unleashed",
"desc":"Wizkid new album unleashed",
"image":"https:\/\/RekoMile\/uploads\/small\/6121593380423.png",
"link":"https:\/\/RekoMile\/post\/7\/2017-08-13-wizkid-new-album-unleashed589",
"comment_count":"0",
"view_count":"765",
"time":"2020-06-11T20:00:45Z",
"tag_list":["Music"],
"post_type":"post",
"image_type":[],
"video_type":"",
"read_time":"1 min",
"edittable":true,
"viewer_id":"1",
"is_pinned":true,
"pinned_by":"Rekoblog",
"isbookmarked":false,
"rank":"visitor",
"author":{
"id":"1",
"name":"UdexStudio",
"image":"https:\/\/RekoMile\/uploads\/users\/6591591788383.png",
"follows":1,
"status":"ON"
}
}
...
]
}
Get list of posts by category
Content-Type | String | Set value to application/json |
limit | Integer | Specify how many records you want to retrieve per page. If not specify we use a default value of 10. |
offset | Integer | Specify exactly what page you want to retrieve. If not specify we use a default value of 0. |
id | Integer | Specify the category by ID. |
curl https://rekomile.com/api/v1/posts/category
-H "Content-Type: application/json"
-d '{ limit: "10", offset: "0", id: "1" }'
-X GET
{
"status":true,
"message":"Posts retrieved",
"count":1,
"data":[
{
"id":"7",
"title":"Wizkid new album unleashed",
"desc":"Wizkid new album unleashed",
"image":"https:\/\/RekoMile\/uploads\/small\/6121593380423.png",
"link":"https:\/\/RekoMile\/post\/7\/2017-08-13-wizkid-new-album-unleashed589",
"comment_count":"0",
"view_count":"765",
"time":"2020-06-11T20:00:45Z",
"tag_list":["Music"],
"post_type":"post",
"image_type":[],
"video_type":"",
"read_time":"1 min",
"edittable":true,
"viewer_id":"1",
"is_pinned":true,
"pinned_by":"Rekoblog",
"isbookmarked":false,
"rank":"visitor",
"author":{
"id":"1",
"name":"UdexStudio",
"image":"https:\/\/RekoMile\/uploads\/users\/6591591788383.png",
"follows":1,
"status":"ON"
}
}
...
]
}
Get list of posts by date
Content-Type | String | Set value to application/json |
limit | Integer | Specify how many records you want to retrieve per page. If not specify we use a default value of 10. |
offset | Integer | Specify exactly what page you want to retrieve. If not specify we use a default value of 0. |
from | Date | Specify exactly what date you want to retrieve from (yyyy-mm-dd). |
to | Date | Specify exactly what date you want to retrieve to (yyyy-mm-dd). |
curl https://rekomile.com/api/v1/posts/archive
-H "Content-Type: application/json"
-d '{ limit: "10", offset: "0", from: "2020-06-01", to: "2020-07-01" }'
-X GET
{
"status":true,
"message":"Posts retrieved",
"count":1,
"data":[
{
"id":"7",
"title":"Wizkid new album unleashed",
"desc":"Wizkid new album unleashed",
"image":"https:\/\/RekoMile\/uploads\/small\/6121593380423.png",
"link":"https:\/\/RekoMile\/post\/7\/2017-08-13-wizkid-new-album-unleashed589",
"comment_count":"0",
"view_count":"765",
"time":"2020-06-11T20:00:45Z",
"tag_list":["Music"],
"post_type":"post",
"image_type":[],
"video_type":"",
"read_time":"1 min",
"edittable":true,
"viewer_id":"1",
"is_pinned":true,
"pinned_by":"Rekoblog",
"isbookmarked":false,
"rank":"visitor",
"author":{
"id":"1",
"name":"UdexStudio",
"image":"https:\/\/RekoMile\/uploads\/users\/6591591788383.png",
"follows":1,
"status":"ON"
}
}
...
]
}
Get list of all trending posts
Content-Type | String | Set value to application/json |
limit | Integer | Specify how many records you want to retrieve per page. If not specify we use a default value of 10. |
offset | Integer | Specify exactly what page you want to retrieve. If not specify we use a default value of 0. |
curl https://rekomile.com/api/v1/posts/trending
-H "Content-Type: application/json"
-d '{ limit: "10", offset: "0" }'
-X GET
{
"status":true,
"message":"Posts retrieved",
"count":1,
"data":[
{
"id":"7",
"title":"Wizkid new album unleashed",
"desc":"Wizkid new album unleashed",
"image":"https:\/\/RekoMile\/uploads\/small\/6121593380423.png",
"link":"https:\/\/RekoMile\/post\/7\/2017-08-13-wizkid-new-album-unleashed589",
"comment_count":"0",
"view_count":"765",
"time":"2020-06-11T20:00:45Z",
"tag_list":["Music"],
"post_type":"post",
"image_type":[],
"video_type":"",
"read_time":"1 min",
"edittable":true,
"viewer_id":"1",
"is_pinned":true,
"pinned_by":"Rekoblog",
"isbookmarked":false,
"rank":"visitor",
"author":{
"id":"1",
"name":"UdexStudio",
"image":"https:\/\/RekoMile\/uploads\/users\/6591591788383.png",
"follows":1,
"status":"ON"
}
}
...
]
}
Get list of all posts related to a hash tag
Content-Type | String | Set value to application/json |
limit | Integer | Specify how many records you want to retrieve per page. If not specify we use a default value of 10. |
offset | Integer | Specify exactly what page you want to retrieve. If not specify we use a default value of 0. |
tag | String | Specify the hash tag. |
curl https://rekomile.com/api/v1/posts/tag
-H "Content-Type: application/json"
-d '{ limit: "10", offset: "0", tag: '#Politics' }'
-X GET
{
"status":true,
"message":"Posts retrieved",
"count":1,
"data":[
{
"id":"7",
"title":"Wizkid new album unleashed",
"desc":"Wizkid new album unleashed",
"image":"https:\/\/RekoMile\/uploads\/small\/6121593380423.png",
"link":"https:\/\/RekoMile\/post\/7\/2017-08-13-wizkid-new-album-unleashed589",
"comment_count":"0",
"view_count":"765",
"time":"2020-06-11T20:00:45Z",
"tag_list":["Music"],
"post_type":"post",
"image_type":[],
"video_type":"",
"read_time":"1 min",
"edittable":true,
"viewer_id":"1",
"is_pinned":true,
"pinned_by":"Rekoblog",
"isbookmarked":false,
"rank":"visitor",
"author":{
"id":"1",
"name":"UdexStudio",
"image":"https:\/\/RekoMile\/uploads\/users\/6591591788383.png",
"follows":1,
"status":"ON"
}
}
...
]
}
Get list of posts by a users
Content-Type | String | Set value to application/json |
limit | Integer | Specify how many records you want to retrieve per page. If not specify we use a default value of 10. |
offset | Integer | Specify exactly what page you want to retrieve. If not specify we use a default value of 0. |
curl https://rekomile.com/api/v1/posts/user/all/1
-H "Content-Type: application/json"
-d '{ limit: "10", offset: "0" }'
-X GET
{
"status":true,
"message":"Posts retrieved",
"count":1,
"data":[
{
"id":"7",
"title":"Wizkid new album unleashed",
"desc":"Wizkid new album unleashed",
"image":"https:\/\/RekoMile\/uploads\/small\/6121593380423.png",
"link":"https:\/\/RekoMile\/post\/7\/2017-08-13-wizkid-new-album-unleashed589",
"comment_count":"0",
"view_count":"765",
"time":"2020-06-11T20:00:45Z",
"tag_list":["Music"],
"post_type":"post",
"image_type":[],
"video_type":"",
"read_time":"1 min",
"edittable":true,
"viewer_id":"1",
"is_pinned":true,
"pinned_by":"Rekoblog",
"isbookmarked":false,
"rank":"visitor",
"author":{
"id":"1",
"name":"UdexStudio",
"image":"https:\/\/RekoMile\/uploads\/users\/6591591788383.png",
"follows":1,
"status":"ON"
}
}
...
]
}
The PodCasts API allows you get podcasts on your integration
Get list of all podcast in RekoMile
Content-Type | String | Set value to application/json |
limit | Integer | Specify how many records you want to retrieve per page. If not specify we use a default value of 10. |
offset | Integer | Specify exactly what page you want to retrieve. If not specify we use a default value of 0. |
curl https://rekomile.com/api/v1/podcasts/all
-H "Content-Type: application/json"
-d '{ limit: "10", offset: "0" }'
-X GET
{
"status":true,
"count":2,
"data":[
{
"id":"1",
"link":"https:\/\/rekoblog.com\/podcasts\/business\/2020-06-16-business-of-entertainment",
"title":"Business of Entertainment",
"image":"https:\/\/rekoblog.com\/uploads\/small\/3971592831188.png",
"category":"Business",
"desc":"In this podcast, Earnest takes you through the financial performance of all that's buzzing in the entertainment world, be it films or shows from your favourite TV channel or streaming platform. This is a RekoBlog production, brought to you by UdexStudio.",
"edittable":true,
"is_pinned":true,
"last_episode_url":
"https:\/\/rekoblog.com\/include\/functions\/download-podcast.php?id=22"
},
...
]
}
Get list of all podcast by category in RekoMile
Content-Type | String | Set value to application/json |
limit | Integer | Specify how many records you want to retrieve per page. If not specify we use a default value of 10. |
offset | Integer | Specify exactly what page you want to retrieve. If not specify we use a default value of 0. |
id | String | Specify the Podcast Category you want to retrieve by slug. |
curl https://rekomile.com/api/v1/podcasts/category
-H "Content-Type: application/json"
-d '{ limit: "10", offset: "0", id: "business" }'
-X GET
{
"status":true,
"count":2,
"data":[
{
"id":"1",
"link":"https:\/\/rekoblog.com\/podcasts\/business\/2020-06-16-business-of-entertainment",
"title":"Business of Entertainment",
"image":"https:\/\/rekoblog.com\/uploads\/small\/3971592831188.png",
"category":"Business",
"desc":"In this podcast, Earnest takes you through the financial performance of all that's buzzing in the entertainment world, be it films or shows from your favourite TV channel or streaming platform. This is a RekoBlog production, brought to you by UdexStudio.",
"edittable":true,
"is_pinned":true,
"last_episode_url":
"https:\/\/rekoblog.com\/include\/functions\/download-podcast.php?id=22"
},
...
]
}
We use cookies to offer an improved online experience and offer you content and services adopted to your interests. By using RekoMile you are giving your consent to our cookie policy.