API Update cronjob script

Thanks BarryCarlyon for all your help about the header i read the api already maybe you can give me a example how i can add the header into my script ? thats will be really nice thanks for all