Backend Architecture
integrateme.co API Docs
Get All unpublished posts:
https://dev.to/api/articles/me/unpublished
-
Headers:
api-key : MiXvYZyVvqCP1oPjg2AdHhQp
Schedule a post:
http://localhost:8080/api/v2/schedule
-
Body:
{ "articleID": "383924", "APIkey": "YOUR_API_KEY", "publishTime": "2021-09-23T20:50:41.751Z" }
Cron Jobs
Run the services/cronJobs.js
file
node cronJobs.js
Post From Dev to Medium or Hashnode
URI : http://localhost:8080/api/v2/dev
Body:
{
"url": "https://dev.to/uzairali10/load-balancer-101-4jl9",
"medium": true,
"hash": true,
"medium_userID": "15663e223356baa043cd6f0816d",
"medium_token":"2615790132f4a47a93d13abd55f96",
"hash_token": "fee010ff-bd64-496a-d28a58e30bb9"
}
url
: URL of the The Blog from Dev.to which is to be cross-posted (String)medium
: (Boolean)medium_userID
: User's medium's user ID can be fetched from (https://api.medium.com/v1/me)medium_token
: User's medium's API tokenhash_token
: User's Hashnode API Token
Post From Medium to Dev or Hashnode
URI: http://localhost:8080/api/v2/medium
Body:
{
"url": "https://medium.com/@amanshri.nitrr/a-job-switch-plan-that-actually-works-e09701c26d88",
"dev_api": "ShVKKiC9AZ1tb",
"dev": true,
"hash": true,
"hash_api": "fee010ff-bde30bb9"
}
url
: URL of the The Blog from Medium which is to be cross-posted (String)dev
: (Boolean)hash
: (Boolean)dev_api
: User's dev.to API tokenhash_api
: User's Hashnode API Token
Post From Hashnode to Dev or Medium
URI: http://localhost:8080/api/v2/hash
Body:
{
"url" : "https://blog.tomaszgil.me/make-the-most-out-of-your-next-migration-project",
"dev": true,
"medium": true,
"dev_api": "ShVKAZ1tb",
"medium_id": "1543cd6f0816d",
"medium_api":"2615790132f4a2d67f81e2696"
}