Can any one help me how to setup PHP blog API to fetch blog posts from Hubspot


I am trying to integrate API but i am unable to setup.
I want to copy the posts from hubspot database and i want to insert each post in my wordpress database by PHP code. So please help to get all posts.