Great opportunity to learn 
Basic principle would be to switch this around and apply the details in this section of the Shortcuts user guide.
You can Google (other search engines are available) x-callback-url and find lots of info about the general principles.
Any specific questions, just post back with them 