Get Feature Image Url

I am doing wordpress plugin development for firebase notification and i fork a repo from github, link here : https://github.com/Clintal/wp-firebase-push-notification

Now i want add here also some thing like Features image. so whenever new post added it automatically send title, postid and url of features images.

Please tell me how i fetch feature image url