I made corrections to the compiler plugin based on suggestions from S.O.
Everything works now. I added the url api for the printful.