bash cURL scripts for MAPI